fix: 修复阻盘修改数据报错问题, 优化物料图片显示
This commit is contained in:
@@ -94,7 +94,7 @@ public class SchBaseVehiclematerialgroupServiceImpl extends ServiceImpl<SchBaseV
|
||||
.ne(SchBaseVehiclematerialgroup::getGroup_id, item.getGroup_id()));
|
||||
if (CollUtil.isNotEmpty(schBaseVehiclematerialgroups)) {
|
||||
item.setHasChildren(true);
|
||||
item.setChildren(schBaseVehiclematerialgroups);
|
||||
/*item.setChildren(schBaseVehiclematerialgroups);*/
|
||||
}
|
||||
item.setHas_work(true);
|
||||
});
|
||||
@@ -192,6 +192,13 @@ public class SchBaseVehiclematerialgroupServiceImpl extends ServiceImpl<SchBaseV
|
||||
List<SchBaseVehiclematerialgroup> schBaseVehiclematerialgroups = vehiclematerialgroupMapper.selectList(Wrappers.lambdaQuery(SchBaseVehiclematerialgroup.class)
|
||||
.eq(SchBaseVehiclematerialgroup::getVehicle_code, entity.getString("vehicle_code"))
|
||||
.ne(SchBaseVehiclematerialgroup::getGroup_id, entity.getString("group_id")));
|
||||
if(ObjectUtil.isNotEmpty(schBaseVehiclematerialgroups)){
|
||||
schBaseVehiclematerialgroups.forEach(item->{
|
||||
if(StrUtil.isEmpty(item.getRegion_code())){
|
||||
item.setRegion_code("未知");
|
||||
}
|
||||
});
|
||||
}
|
||||
return schBaseVehiclematerialgroups;
|
||||
}
|
||||
|
||||
|
||||
@@ -173,7 +173,9 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
|
||||
entity.setUpdate_time(now);
|
||||
// 获取region_name
|
||||
SchBaseRegion baseRegion = regionMapper.selectById(entity.getRegion_code());
|
||||
entity.setRegion_name(baseRegion.getRegion_name());
|
||||
if (ObjectUtil.isNotEmpty(baseRegion)) {
|
||||
entity.setRegion_name(baseRegion.getRegion_name());
|
||||
}
|
||||
String pointStatus = entity.getPoint_status();
|
||||
String vehicle_code = entity.getVehicle_code();
|
||||
// 根据点位状态来判断更新内容
|
||||
|
||||
@@ -2,6 +2,7 @@ package org.nl.wms.sch.task.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -86,4 +87,12 @@ public class SchBaseTaskController {
|
||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/upload")
|
||||
@Log("导出数据")
|
||||
@ApiOperation("导出数据")
|
||||
public ResponseEntity<Object> upload(@RequestBody JSONObject json) {
|
||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user