Browse Source

2026-01-21

【标签导入】优化
master
fengyuan_yang 1 month ago
parent
commit
1844819702
  1. 2
      src/main/java/com/gaotao/modules/inboundNotification/controller/InboundNotificationController.java
  2. 2
      src/main/java/com/gaotao/modules/inboundNotification/service/InboundNotificationService.java
  3. 3
      src/main/java/com/gaotao/modules/inboundNotification/service/impl/InboundNotificationServiceImpl.java
  4. 1
      src/main/resources/mapper/inboundNotification/InboundNotificationHeadMapper.xml

2
src/main/java/com/gaotao/modules/inboundNotification/controller/InboundNotificationController.java

@ -520,7 +520,7 @@ public class InboundNotificationController extends AbstractController {
} }
// 调用Service处理导入 // 调用Service处理导入
String result = inboundNotificationService.labelImport(site, buNo, orderNo, dataList);
String result = inboundNotificationService.labelImport(site, buNo, orderNo, orderType, dataList);
if ("200".equals(result)) { if ("200".equals(result)) {
return R.ok("导入成功,共导入 " + dataList.size() + " 条数据"); return R.ok("导入成功,共导入 " + dataList.size() + " 条数据");

2
src/main/java/com/gaotao/modules/inboundNotification/service/InboundNotificationService.java

@ -138,5 +138,5 @@ public interface InboundNotificationService {
* @param dataList 导入的数据列表 * @param dataList 导入的数据列表
* @return 处理结果 "200"成功 "400"失败 * @return 处理结果 "200"成功 "400"失败
*/ */
String labelImport(String site, String buNo, String orderNo, List<Map<String, Object>> dataList);
String labelImport(String site, String buNo, String orderNo, String orderType, List<Map<String, Object>> dataList);
} }

3
src/main/java/com/gaotao/modules/inboundNotification/service/impl/InboundNotificationServiceImpl.java

@ -848,7 +848,7 @@ public class InboundNotificationServiceImpl implements InboundNotificationServic
*/ */
@Override @Override
@Transactional @Transactional
public String labelImport(String site, String buNo, String orderNo, List<Map<String, Object>> dataList) {
public String labelImport(String site, String buNo, String orderNo, String orderType, List<Map<String, Object>> dataList) {
try { try {
// 1. 清空临时表中该单据的数据 // 1. 清空临时表中该单据的数据
headMapper.deleteLabelImportTemp(site, buNo, orderNo); headMapper.deleteLabelImportTemp(site, buNo, orderNo);
@ -863,6 +863,7 @@ public class InboundNotificationServiceImpl implements InboundNotificationServic
params.put("site", site); params.put("site", site);
params.put("buNo", buNo); params.put("buNo", buNo);
params.put("orderNo", orderNo); params.put("orderNo", orderNo);
params.put("orderType", orderType);
headMapper.callUspImportRoll(params); headMapper.callUspImportRoll(params);

1
src/main/resources/mapper/inboundNotification/InboundNotificationHeadMapper.xml

@ -288,6 +288,7 @@
#{site, mode=IN, jdbcType=VARCHAR}, #{site, mode=IN, jdbcType=VARCHAR},
#{buNo, mode=IN, jdbcType=VARCHAR}, #{buNo, mode=IN, jdbcType=VARCHAR},
#{orderNo, mode=IN, jdbcType=VARCHAR}, #{orderNo, mode=IN, jdbcType=VARCHAR},
#{orderType, mode=IN, jdbcType=VARCHAR},
#{resultCode, mode=OUT, jdbcType=VARCHAR}, #{resultCode, mode=OUT, jdbcType=VARCHAR},
#{resultMsg, mode=OUT, jdbcType=VARCHAR} #{resultMsg, mode=OUT, jdbcType=VARCHAR}
)} )}

Loading…
Cancel
Save