正式合同定时任务;

This commit is contained in:
王奎兴
2026-09-04 15:40:19 +08:00
parent c25a9a5f68
commit 5a329904c3
11 changed files with 187 additions and 26 deletions
@@ -84,4 +84,11 @@ public class SettlementCustomersParametersApplicationService {
Long[] ids = idSet.stream().map(Long::valueOf).toArray(Long[]::new);
return settlementCustomersParametersDomainService.delete(ids);
}
}
/**
* 根据结算对象id查询结算对象参数列表
*/
public List<SettlementCustomersParametersPO> getListBySettlementCustomersId(Long settlementCustomersId) {
return settlementCustomersParametersDomainService.getListBySettlementCustomersId(settlementCustomersId);
}
}
@@ -39,4 +39,9 @@ public interface ISettlementCustomersParametersService extends IService<Settleme
* 查询结算对象参数
*/
public SettlementCustomersParametersPO getInfo(Long id);
}
/**
* 根据结算对象id查询结算对象参数列表
*/
public List<SettlementCustomersParametersPO> getListBySettlementCustomersId(Long settlementCustomersId);
}
@@ -1,5 +1,6 @@
package com.mhd.bms.domain.settlementCustomersParameters.repository.persistence;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mhd.bms.domain.settlementCustomersParameters.entity.SettlementCustomersParameters;
import com.mhd.bms.domain.settlementCustomersParameters.repository.facade.ISettlementCustomersParametersService;
@@ -12,6 +13,7 @@ import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* 结算对象参数Service业务层处理
@@ -78,4 +80,16 @@ public class SettlementCustomersParametersImpl extends ServiceImpl<SettlementCus
BeanUtils.copyProperties(settlementCustomersParameters, settlementCustomersParametersPO);
return settlementCustomersParametersPO;
}
}
@Override
public List<SettlementCustomersParametersPO> getListBySettlementCustomersId(Long settlementCustomersId) {
List<SettlementCustomersParameters> list = this.list(new LambdaQueryWrapper<SettlementCustomersParameters>()
.eq(SettlementCustomersParameters::getSettlementCustomersId, settlementCustomersId)
.eq(SettlementCustomersParameters::getDelFlag, 1));
return list.stream().map(item -> {
SettlementCustomersParametersPO po = new SettlementCustomersParametersPO();
BeanUtils.copyProperties(item, po);
return po;
}).collect(Collectors.toList());
}
}
@@ -56,4 +56,11 @@ public class SettlementCustomersParametersDomainService {
public SettlementCustomersParametersPO getInfo(Long id) {
return settlementCustomersParametersService.getInfo(id);
}
}
/**
* 根据结算对象id查询结算对象参数列表
*/
public List<SettlementCustomersParametersPO> getListBySettlementCustomersId(Long settlementCustomersId) {
return settlementCustomersParametersService.getListBySettlementCustomersId(settlementCustomersId);
}
}
@@ -89,4 +89,13 @@ public class SettlementCustomersParametersApi extends BaseController {
public AjaxResult getInfoById(SettlementCustomersParametersDTO settlementCustomersParametersDTO) {
return AjaxResult.success(settlementCustomersParametersApplicationService.getInfo(settlementCustomersParametersDTO.getId()));
}
}
/**
* 根据结算对象id查询结算对象参数列表
*/
@ApiOperation("根据结算对象id查询结算对象参数列表")
@GetMapping(value = "/getListBySettlementCustomersId")
public AjaxResult getListBySettlementCustomersId(@RequestParam("settlementCustomersId") Long settlementCustomersId) {
return AjaxResult.success(settlementCustomersParametersApplicationService.getListBySettlementCustomersId(settlementCustomersId));
}
}