|
@@ -97,6 +97,7 @@ import com.ruoyi.framework.config.ThreadPoolConfig;
|
|
|
import com.ruoyi.system.service.ISysUserService;
|
|
|
import com.ruoyi.system.utils.UserUtil;
|
|
|
import org.apache.commons.collections4.MapUtils;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
import org.springframework.security.core.context.SecurityContext;
|
|
@@ -369,6 +370,8 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
public Page<ContractBudgetVo> getProfitBudgetPage(ContractSelectDto dto) {
|
|
|
IWrapper<Contract> wrapper = getWrapper();
|
|
|
wrapper.orderByDesc("t1", Contract::getCreateTime);
|
|
|
+ wrapper.eq("t1", Contract::getIsChange, "0");//列表只展示未变更得数据
|
|
|
+ wrapper.ne("t1", Contract::getIsShow, 1);
|
|
|
wrapper.between("t1", Contract::getStatus, FlowStatusEnum1.PASS.getKey(), FlowStatusEnum1.CANCELLATION.getKey() - 1);
|
|
|
if (StringUtils.isNotEmpty(dto.getCustomerId())) {
|
|
|
wrapper.eq("t1", Contract::getBuyCorporationId, dto.getCustomerId());
|
|
@@ -480,6 +483,8 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
public Page<ContractBudgetVo> getProfitClearingPage(ContractSelectDto dto) {
|
|
|
IWrapper<Contract> wrapper = getWrapper();
|
|
|
wrapper.orderByDesc("t1", Contract::getCreateTime);
|
|
|
+ wrapper.eq("t1", Contract::getIsChange, "0");//列表只展示未变更得数据
|
|
|
+ wrapper.ne("t1", Contract::getIsShow, 1);
|
|
|
wrapper.between("t1", Contract::getStatus, FlowStatusEnum1.PASS.getKey(), FlowStatusEnum1.CANCELLATION.getKey() - 1);
|
|
|
if (StringUtils.isNotEmpty(dto.getCustomerId())) {
|
|
|
wrapper.eq("t1", Contract::getBuyCorporationId, dto.getCustomerId());
|
|
@@ -753,8 +758,8 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
* @param id (买方公司ID)
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<ContractVo> getSalesTotalList(Long id) {
|
|
|
- return baseMapper.getSalesTotalList(id);
|
|
|
+ public Page<ContractVo> getSalesTotalList(Page<Object> page, Long id) {
|
|
|
+ return baseMapper.getSalesTotalList(page,id);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1608,10 +1613,10 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
* @return
|
|
|
*/
|
|
|
private void getSumPurchaseContractMoney(ContractBudgetVo v, List<EhsdPurchase> purchaseList, Map<String, BigDecimal> assignCurrencyRatesMap) {
|
|
|
+ v.setAccountPaid(BigDecimal.ZERO);
|
|
|
BigDecimal purchaseSumMoney = BigDecimal.ZERO;
|
|
|
if (CollectionUtils.isEmpty(purchaseList)) {
|
|
|
v.setSumPurchaseContractMoney(BigDecimal.ZERO);
|
|
|
- v.setAccountPaid(BigDecimal.ZERO);
|
|
|
return;
|
|
|
}
|
|
|
List<Long> purchaseIds = purchaseList.stream().map(EhsdPurchase::getId).collect(Collectors.toList());
|