|
|
@@ -43,6 +43,7 @@ import org.jeecg.modules.hlgplatform.entity.HlgPlatform;
|
|
|
import org.jeecg.modules.hlgplatform.mapper.HlgPlatformMapper;
|
|
|
import org.jeecg.modules.hlgsubcontractor.entity.HlgSubcontractor;
|
|
|
import org.jeecg.modules.hlguser.entity.HlgUser;
|
|
|
+import org.jeecg.modules.hlguser.entity.HlgUserSubcontract;
|
|
|
import org.jeecg.modules.hlguser.service.IHlgUserSubcontractService;
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
|
@@ -355,8 +356,11 @@ public class HlgCompanyController {
|
|
|
HlgSubcontractor hlgSubcontractor=new HlgSubcontractor();
|
|
|
hlgSubcontractor.setId((Integer)list.get(i).get("id"));
|
|
|
hlgSubcontractor.setName((String) list.get(i).get("name"));
|
|
|
- String subcontract=hlgUserSubcontractService.getByUserIdAndSubId(hlgUser.getId(),(Integer)list.get(i).get("id"));
|
|
|
- hlgSubcontractor.setSubcontract(subcontract);
|
|
|
+ HlgUserSubcontract hlgUserSubcontract=hlgUserSubcontractService.getByUserIdAndSubId(hlgUser.getId(),(Integer)list.get(i).get("id"));
|
|
|
+ if(hlgUserSubcontract!=null){
|
|
|
+ hlgSubcontractor.setSubcontract(hlgUserSubcontract.getSubcontract());
|
|
|
+ hlgSubcontractor.setUserContractId(hlgUserSubcontract.getId());
|
|
|
+ }
|
|
|
list1.add(hlgSubcontractor);
|
|
|
}
|
|
|
}
|