入库修改入库类型

This commit is contained in:
2026-03-12 14:56:28 +08:00
parent ef0c52b6df
commit 676ab34c1b
3 changed files with 34 additions and 1 deletions

View File

@@ -190,4 +190,6 @@ public interface RkInfoMapper
@Param("warehouseCode") String warehouseCode,
@Param("sceneId") String sceneId
);
int updateInfoByBillNo(RkInfo rkInfo);
}

View File

@@ -466,6 +466,20 @@ public class RkBillServiceImpl implements IRkBillService
// 执行批量更新
rkRecordMapper.updateRecordByBillNo(updateRecord);
// ====================== 3. 同步更新 rk_info ======================
RkInfo updateInfo = new RkInfo();
updateInfo.setBillNo(rkBill.getBillNo());
// 同步字段
updateInfo.setUpdateTime(DateUtils.getNowDate());
updateInfo.setOperationType(rkBill.getOperationType());
updateInfo.setTeamCode(rkBill.getTeamCode());
updateInfo.setOperator(rkBill.getOperator());
updateInfo.setIsDelivery(rkBill.getIsDelivery());
rkInfoMapper.updateInfoByBillNo(updateInfo);
return rows;
}

View File

@@ -676,5 +676,22 @@
AND ri.cangku = #{warehouseCode}
AND ri.scene = #{sceneId}
</select>
<update id="updateInfoByBillNo">
UPDATE rk_info
<set>
<if test="operationType != null">
operation_type = #{operationType},
</if>
<if test="teamCode != null">
team_code = #{teamCode},
</if>
<if test="operator != null">
operator = #{operator},
</if>
<if test="isDelivery != null">
is_delivery = #{isDelivery},
</if>
</set>
WHERE bill_no = #{billNo}
</update>
</mapper>