| | |
| | | /** |
| | | * 控管 |
| | | */ |
| | | if (Cools.isEmpty(item.getHostId()) || item.getHostId() == 0){ |
| | | item.setHostId(1L); |
| | | } |
| | | if (Cools.isEmpty(item)) { |
| | | return R.error("参数为空,请联系管理员"); |
| | | } |
| | |
| | | throw new CoolException("请选择客户"); |
| | | } |
| | | Cstmr cstmr = cstmrService.selectOne(new EntityWrapper<Cstmr>() |
| | | .eq("id",Long.parseLong(item.getUuid()))); |
| | | .eq("id",Long.parseLong(item.getCstmrUuid()))); |
| | | if (Cools.isEmpty(cstmr)) { |
| | | throw new CoolException("找不到该客户,请检查"); |
| | | } |
| | | |
| | | item.setCustMan(cstmr.getName()); |
| | | item.setCustMobile(cstmr.getTel()); |
| | | item.setCustAdress(cstmr.getAddr()); |
| | |
| | | if (Cools.isEmpty(item)) { |
| | | return R.error("参数为空,请联系管理员"); |
| | | } |
| | | |
| | | // item.setType("1"); |
| | | // if (!item.getType().equals("1")) { |
| | | // throw new CoolException("目前仅支持集成项目"); |