|
@@ -18,6 +18,7 @@ import cn.ezhizao.project.business.workOrder.service.IBizWorkOrderRecordService;
|
|
import cn.ezhizao.project.business.workOrder.service.IBizWorkOrderService;
|
|
import cn.ezhizao.project.business.workOrder.service.IBizWorkOrderService;
|
|
import cn.ezhizao.project.system.domain.SysUser;
|
|
import cn.ezhizao.project.system.domain.SysUser;
|
|
import cn.ezhizao.project.system.mapper.SysUserMapper;
|
|
import cn.ezhizao.project.system.mapper.SysUserMapper;
|
|
|
|
+import cn.ezhizao.project.system.service.ISysDictDataService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -42,7 +43,8 @@ public class OnceWorkOrderProductionController extends BaseController {
|
|
@Resource
|
|
@Resource
|
|
private SysUserMapper sysUserMapper;
|
|
private SysUserMapper sysUserMapper;
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private ISysDictDataService sysDictDataService;
|
|
@ApiOperation(value = "带条件List 分页查询",notes= "带条件List 分页查询")
|
|
@ApiOperation(value = "带条件List 分页查询",notes= "带条件List 分页查询")
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
@PreAuthorize("@ss.hasPermi('business:production:onceWork:list')")
|
|
@PreAuthorize("@ss.hasPermi('business:production:onceWork:list')")
|
|
@@ -52,6 +54,22 @@ public class OnceWorkOrderProductionController extends BaseController {
|
|
startPage();
|
|
startPage();
|
|
startOrderBy();
|
|
startOrderBy();
|
|
List<BizWorkOrder> list = workOrderService.getList(conditions);
|
|
List<BizWorkOrder> list = workOrderService.getList(conditions);
|
|
|
|
+ list.forEach(v ->{
|
|
|
|
+ Integer style = v.getAddressStyle();
|
|
|
|
+ if(style ==null){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (v.getTaskTypeId() == 5L && style == 1){
|
|
|
|
+ //自有地址
|
|
|
|
+ v.setExplain("自有地址:"+v.getInputProvince()+v.getInputCity()+v.getInputDistrict());
|
|
|
|
+ }else if (v.getTaskTypeId() == 5L && style == 2){
|
|
|
|
+ //虚拟地址
|
|
|
|
+ v.setExplain("虚拟地址:"+sysDictDataService.selectDictDataById(v.getFictionAddressId()).getDictLabel());
|
|
|
|
+ }else {
|
|
|
|
+ v.setExplain("办理地区:"+v.getInputProvince()+v.getInputCity()+v.getInputDistrict());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ });
|
|
// .stream().filter(s -> s.getCompanyName().contains(companyName)).collect(Collectors.toList())
|
|
// .stream().filter(s -> s.getCompanyName().contains(companyName)).collect(Collectors.toList())
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|