|
|
@@ -65,11 +65,11 @@ public class ProdBatchController extends CommonController {
|
|
|
String productName = getPara("productName");
|
|
|
String wmsStatus = getPara("wmsStatus");
|
|
|
try {
|
|
|
- StringBuilder whereSql = new StringBuilder(" from jinzai_upload_master_copy where 1=1");
|
|
|
+ StringBuilder whereSql = new StringBuilder(" from jinzai_upload_master where 1=1");
|
|
|
List<Object> params = new ArrayList<>();
|
|
|
if(StrKit.notBlank(createTime)){
|
|
|
//创建时间 =
|
|
|
- whereSql.append(" and create_time = ?");
|
|
|
+ whereSql.append(" and upload_time = ?");
|
|
|
params.add(createTime);
|
|
|
}
|
|
|
// if(StrKit.notBlank(factoryId)){
|
|
|
@@ -318,7 +318,7 @@ public class ProdBatchController extends CommonController {
|
|
|
//单号/箱码/托码 对应的修改之前的 品项sku
|
|
|
Map<String,String> referenceCodeAndSku = new HashMap<>();
|
|
|
if(modifyType.compareTo(1) == 0){
|
|
|
- Record first = Db.findFirst("select * from jinzai_upload_master_copy where task_no = ?", referenceCodes.get(0));
|
|
|
+ Record first = Db.findFirst("select * from jinzai_upload_master where task_no = ?", referenceCodes.get(0));
|
|
|
if(first == null){
|
|
|
return ApiResponse.error("单号不存在");
|
|
|
}
|
|
|
@@ -327,7 +327,7 @@ public class ProdBatchController extends CommonController {
|
|
|
String codeList = referenceCodes.stream()
|
|
|
.map(code -> "'" + code + "'")
|
|
|
.collect(java.util.stream.Collectors.joining(","));
|
|
|
- List<Record> masterRecords = Db.find("select * from jinzai_upload_master_copy where id in(" + codeList + ")");
|
|
|
+ List<Record> masterRecords = Db.find("select * from jinzai_upload_master where id in(" + codeList + ")");
|
|
|
if(masterRecords.size() != referenceCodes.size()){
|
|
|
return ApiResponse.error("有箱码不存在");
|
|
|
}
|
|
|
@@ -338,7 +338,7 @@ public class ProdBatchController extends CommonController {
|
|
|
String codeList = referenceCodes.stream()
|
|
|
.map(code -> "'" + code + "'")
|
|
|
.collect(java.util.stream.Collectors.joining(","));
|
|
|
- List<Record> duoRecords = Db.find("select * from jinzai_upload_master_copy where duo_code in(" + codeList + ")");
|
|
|
+ List<Record> duoRecords = Db.find("select * from jinzai_upload_master where duo_code in(" + codeList + ")");
|
|
|
if(duoRecords.size() != referenceCodes.size()){
|
|
|
return ApiResponse.error("有托码不存在");
|
|
|
}
|
|
|
@@ -398,11 +398,11 @@ public class ProdBatchController extends CommonController {
|
|
|
Db.save("t_item_modify_record", record);
|
|
|
}
|
|
|
if (modifyType.compareTo(1) == 0) {
|
|
|
- Db.update("update jinzai_upload_master_copy set upload_time = null,pinxiang = ?,kouwei = ?,sku = ? where task_no = ?", itemName, itemKouWei,sku, referenceCodes.get(0));
|
|
|
+ Db.update("update jinzai_upload_master set upload_time = null,pinxiang = ?,kouwei = ?,sku = ? where task_no = ?", itemName, itemKouWei,sku, referenceCodes.get(0));
|
|
|
} else if (modifyType.compareTo(2) == 0) {
|
|
|
- Db.update("update jinzai_upload_master_copy set upload_time = null,pinxiang = ?,kouwei = ?,sku = ? where id in(" + addReferenceCode + ")", itemName, itemKouWei,sku);
|
|
|
+ Db.update("update jinzai_upload_master set upload_time = null,pinxiang = ?,kouwei = ?,sku = ? where id in(" + addReferenceCode + ")", itemName, itemKouWei,sku);
|
|
|
} else if (modifyType.compareTo(3) == 0) {
|
|
|
- Db.update("update jinzai_upload_master_copy set upload_time = null,pinxiang = ?,kouwei = ?,sku = ? where duo_code in(" + addReferenceCode + ")", itemName, itemKouWei,sku);
|
|
|
+ Db.update("update jinzai_upload_master set upload_time = null,pinxiang = ?,kouwei = ?,sku = ? where duo_code in(" + addReferenceCode + ")", itemName, itemKouWei,sku);
|
|
|
}
|
|
|
return true;
|
|
|
} catch (Exception e) {
|