|
@@ -12,9 +12,11 @@ import com.jzg.commons.entity.enums.YesNoEnum;
|
|
|
import com.jzg.commons.entity.po.*;
|
|
import com.jzg.commons.entity.po.*;
|
|
|
import com.jzg.commons.entity.vo.*;
|
|
import com.jzg.commons.entity.vo.*;
|
|
|
import com.jzg.commons.exception.SystemException;
|
|
import com.jzg.commons.exception.SystemException;
|
|
|
|
|
+import com.jzg.commons.util.AssertionUtils;
|
|
|
import com.jzg.commons.util.MinioUtils;
|
|
import com.jzg.commons.util.MinioUtils;
|
|
|
import com.jzg.commons.util.StringUtils;
|
|
import com.jzg.commons.util.StringUtils;
|
|
|
import com.jzg.organization.client.EsmInsCompanyClient;
|
|
import com.jzg.organization.client.EsmInsCompanyClient;
|
|
|
|
|
+import com.jzg.organization.mapper.PtlAgreementCostExternalMapper;
|
|
|
import com.jzg.organization.mapper.PtlAgreementMapper;
|
|
import com.jzg.organization.mapper.PtlAgreementMapper;
|
|
|
import com.jzg.organization.mapper.SysUploadFilesMapper;
|
|
import com.jzg.organization.mapper.SysUploadFilesMapper;
|
|
|
import com.jzg.organization.mapper.SysUserMapper;
|
|
import com.jzg.organization.mapper.SysUserMapper;
|
|
@@ -78,6 +80,9 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private SysUploadFilesMapper sysUploadFilesMapper;
|
|
private SysUploadFilesMapper sysUploadFilesMapper;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private PtlAgreementCostExternalService ptlAgreementCostExternalService;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public Page<AgreementVo> queryPage(AgreementParam param) {
|
|
public Page<AgreementVo> queryPage(AgreementParam param) {
|
|
|
param.setSystemCode(baseController.getUserSystemCode());
|
|
param.setSystemCode(baseController.getUserSystemCode());
|
|
@@ -511,6 +516,27 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
return byCompanyId;
|
|
return byCompanyId;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<PtlAgreement> getContactAgreement(String companyId) {
|
|
|
|
|
+ List<PtlAgreement> agreements = baseMapper.selectList(new LambdaQueryWrapper<PtlAgreement>()
|
|
|
|
|
+ .eq(PtlAgreement::getIsExternal,1)
|
|
|
|
|
+ .eq(PtlAgreement::getIsDelete,0)
|
|
|
|
|
+ .le(PtlAgreement::getStartDate, LocalDateTime.now())
|
|
|
|
|
+ .ge(PtlAgreement::getEndDate, LocalDateTime.now())
|
|
|
|
|
+ .eq(PtlAgreement::getCompanyId, companyId));
|
|
|
|
|
+ return agreements;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<PtlAgreementCostExternal> getContactAgreementCost(String agreementId, String productId,String isInquiry) {
|
|
|
|
|
+ CostExternalParam param = new CostExternalParam();
|
|
|
|
|
+ param.setPtlAgreementId(agreementId);
|
|
|
|
|
+ HttpResult<List<PtlAgreementCostExternal>> httpResult = ptlAgreementCostExternalService.costExternalList(agreementId,productId, isInquiry);
|
|
|
|
|
+ AssertionUtils.isFail(httpResult.getCode() != 200,"获取费用列表失败");
|
|
|
|
|
+
|
|
|
|
|
+ return httpResult.getData();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|