|
@@ -1,10 +1,8 @@
|
|
|
package com.java110.store.bmo.contract.impl;
|
|
package com.java110.store.bmo.contract.impl;
|
|
|
|
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.java110.dto.contract.ContractDto;
|
|
import com.java110.dto.contract.ContractDto;
|
|
|
import com.java110.dto.contractAttr.ContractAttrDto;
|
|
import com.java110.dto.contractAttr.ContractAttrDto;
|
|
|
import com.java110.dto.contractChangePlan.ContractChangePlanDto;
|
|
import com.java110.dto.contractChangePlan.ContractChangePlanDto;
|
|
|
-import com.java110.dto.purchaseApply.PurchaseApplyDto;
|
|
|
|
|
import com.java110.entity.audit.AuditUser;
|
|
import com.java110.entity.audit.AuditUser;
|
|
|
import com.java110.intf.common.IContractApplyUserInnerServiceSMO;
|
|
import com.java110.intf.common.IContractApplyUserInnerServiceSMO;
|
|
|
import com.java110.intf.common.IContractChangeUserInnerServiceSMO;
|
|
import com.java110.intf.common.IContractChangeUserInnerServiceSMO;
|
|
@@ -13,8 +11,6 @@ import com.java110.intf.store.IContractInnerServiceSMO;
|
|
|
import com.java110.store.bmo.contract.IGetContractBMO;
|
|
import com.java110.store.bmo.contract.IGetContractBMO;
|
|
|
import com.java110.utils.util.BeanConvertUtil;
|
|
import com.java110.utils.util.BeanConvertUtil;
|
|
|
import com.java110.vo.ResultVo;
|
|
import com.java110.vo.ResultVo;
|
|
|
-import com.java110.vo.api.resourceOrder.ApiResourceOrderDataVo;
|
|
|
|
|
-import com.java110.vo.api.resourceOrder.ApiResourceOrderVo;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.http.ResponseEntity;
|
|
@@ -37,6 +33,7 @@ public class GetContractBMOImpl implements IGetContractBMO {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IContractChangeUserInnerServiceSMO contractChangeUserInnerServiceSMO;
|
|
private IContractChangeUserInnerServiceSMO contractChangeUserInnerServiceSMO;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @param contractDto
|
|
* @param contractDto
|
|
|
* @return 订单服务能够接受的报文
|
|
* @return 订单服务能够接受的报文
|
|
@@ -60,14 +57,15 @@ public class GetContractBMOImpl implements IGetContractBMO {
|
|
|
|
|
|
|
|
return responseEntity;
|
|
return responseEntity;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public ResponseEntity<String> queryContractChangeTask(AuditUser auditUser) {
|
|
public ResponseEntity<String> queryContractChangeTask(AuditUser auditUser) {
|
|
|
long count = contractChangeUserInnerServiceSMO.getUserTaskCount(auditUser);
|
|
long count = contractChangeUserInnerServiceSMO.getUserTaskCount(auditUser);
|
|
|
|
|
|
|
|
- List<ContractChangePlanDto> contractChangePlanDtos = null;
|
|
|
|
|
|
|
+ List<ContractChangePlanDto> contractChangePlanDtos = null;
|
|
|
|
|
|
|
|
if (count > 0) {
|
|
if (count > 0) {
|
|
|
- contractChangePlanDtos = contractChangeUserInnerServiceSMO.getUserTasks(auditUser);
|
|
|
|
|
|
|
+ contractChangePlanDtos = contractChangeUserInnerServiceSMO.getUserTasks(auditUser);
|
|
|
} else {
|
|
} else {
|
|
|
contractChangePlanDtos = new ArrayList<>();
|
|
contractChangePlanDtos = new ArrayList<>();
|
|
|
}
|
|
}
|
|
@@ -83,15 +81,14 @@ public class GetContractBMOImpl implements IGetContractBMO {
|
|
|
|
|
|
|
|
long count = contractChangeUserInnerServiceSMO.getUserHistoryTaskCount(auditUser);
|
|
long count = contractChangeUserInnerServiceSMO.getUserHistoryTaskCount(auditUser);
|
|
|
|
|
|
|
|
- List<ContractDto> contractDtos = null;
|
|
|
|
|
|
|
+ List<ContractChangePlanDto> contractChangePlanDtos = null;
|
|
|
|
|
|
|
|
if (count > 0) {
|
|
if (count > 0) {
|
|
|
- List<ContractChangePlanDto> purchaseApplyDtos = contractChangeUserInnerServiceSMO.getUserHistoryTasks(auditUser);
|
|
|
|
|
- contractDtos = BeanConvertUtil.covertBeanList(purchaseApplyDtos, ContractDto.class);
|
|
|
|
|
|
|
+ contractChangePlanDtos = contractChangeUserInnerServiceSMO.getUserHistoryTasks(auditUser);
|
|
|
} else {
|
|
} else {
|
|
|
- contractDtos = new ArrayList<>();
|
|
|
|
|
|
|
+ contractChangePlanDtos = new ArrayList<>();
|
|
|
}
|
|
}
|
|
|
- ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) auditUser.getRow()), new Long(count).intValue(), contractDtos);
|
|
|
|
|
|
|
+ ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) auditUser.getRow()), new Long(count).intValue(), contractChangePlanDtos);
|
|
|
|
|
|
|
|
ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
|
|
ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
|
|
|
|
|
|
|
@@ -99,7 +96,6 @@ public class GetContractBMOImpl implements IGetContractBMO {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public ResponseEntity<String> queryContractTask(AuditUser auditUser) {
|
|
public ResponseEntity<String> queryContractTask(AuditUser auditUser) {
|
|
|
long count = contractApplyUserInnerServiceSMOImpl.getUserTaskCount(auditUser);
|
|
long count = contractApplyUserInnerServiceSMOImpl.getUserTaskCount(auditUser);
|