正式合同定时任务;
This commit is contained in:
+8
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
+6
-1
@@ -39,4 +39,9 @@ public interface ISettlementCustomersParametersService extends IService<Settleme
|
||||
* 查询结算对象参数
|
||||
*/
|
||||
public SettlementCustomersParametersPO getInfo(Long id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据结算对象id查询结算对象参数列表
|
||||
*/
|
||||
public List<SettlementCustomersParametersPO> getListBySettlementCustomersId(Long settlementCustomersId);
|
||||
}
|
||||
+15
-1
@@ -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());
|
||||
}
|
||||
}
|
||||
+8
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
+10
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user