|
|
@@ -1251,6 +1251,13 @@ public class ContractInfoServiceImpl extends BaseServiceImpl<ContractInfoMapper,
|
|
|
@Override
|
|
|
public ContractInfoVO2 selectByCondition(ContractInfo contractInfo) {
|
|
|
ContractInfo contractInfo1 = baseMapper.selectById(contractInfo.getId());
|
|
|
+ if(contractInfo1!=null&&StringUtils.isEmpty(contractInfo1.getProjectPlace())){
|
|
|
+ //查询area表里面的数据
|
|
|
+ ProjectContractArea projectContractArea = projectContractAreaMapper.selectOne(Wrappers.<ProjectContractArea>query().lambda().eq(ProjectContractArea::getContractId, contractInfo1.getId()).last("LIMIT 1"));
|
|
|
+ if(projectContractArea!=null){
|
|
|
+ contractInfo1.setProjectPlace(projectContractArea.getProvince()+projectContractArea.getCity()+projectContractArea.getCounty());
|
|
|
+ }
|
|
|
+ }
|
|
|
ContractInfoVO2 contractInfoVO2 = new ContractInfoVO2();
|
|
|
contractInfoVO2.setContractInfo(contractInfo1);
|
|
|
Integer contractType = contractInfo1.getContractType();
|