入库修改入库类型
This commit is contained in:
@@ -190,4 +190,6 @@ public interface RkInfoMapper
|
||||
@Param("warehouseCode") String warehouseCode,
|
||||
@Param("sceneId") String sceneId
|
||||
);
|
||||
|
||||
int updateInfoByBillNo(RkInfo rkInfo);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user