|
|
@@ -262,6 +262,12 @@ public class ItemServiceImpl implements IItemService {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
+ if (StrKit.isBlank(importDto.getKouWei())) {
|
|
|
+ importDto.setErrorMsg("口味不能为空");
|
|
|
+ errorList.add(importDto);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
int status = 0;
|
|
|
// 状态转换: 启用->1, 禁用->0
|
|
|
if ("启用".equals(importDto.getStatus())) {
|
|
|
@@ -297,6 +303,7 @@ public class ItemServiceImpl implements IItemService {
|
|
|
item.set("bip", importDto.getBipCode());
|
|
|
item.set("status", status);
|
|
|
item.set("item_no", importDto.getItemNo());
|
|
|
+ item.set("kouwei", importDto.getKouWei());
|
|
|
boolean result = Db.save("t_jz_item", item);
|
|
|
if (result) {
|
|
|
successCount++;
|