Commit e6a318f9 by huluobin

# 更新

parent d2119fea
...@@ -279,6 +279,8 @@ public class CostApiServiceImpl implements CostApiService { ...@@ -279,6 +279,8 @@ public class CostApiServiceImpl implements CostApiService {
@Override @Override
public List<ManageCostDto> manageCostList(ManageCostListReq req) { public List<ManageCostDto> manageCostList(ManageCostListReq req) {
List<CostDomain> manageCostList = costDao.manageCostList(req); List<CostDomain> manageCostList = costDao.manageCostList(req);
costService.setPrimaryDepartment(manageCostList);
return manageCostList.stream() return manageCostList.stream()
.map(costDomain -> { .map(costDomain -> {
ManageCostDto manageCostDto = new ManageCostDto(); ManageCostDto manageCostDto = new ManageCostDto();
...@@ -299,8 +301,9 @@ public class CostApiServiceImpl implements CostApiService { ...@@ -299,8 +301,9 @@ public class CostApiServiceImpl implements CostApiService {
manageCostDto.setReceiveUnit(costDomain.getBankCompany()); manageCostDto.setReceiveUnit(costDomain.getBankCompany());
manageCostDto.setPayTime(costDomain.getPayTime()); manageCostDto.setPayTime(costDomain.getPayTime());
manageCostDto.setFeeSuperType(costDomain.getTypeName()); manageCostDto.setFeeSuperType(costDomain.getTypeName());
manageCostDto.setDepartmentName(costDomain.getPrimaryDepartmentName());
return manageCostDto; return manageCostDto;
}) })
.collect(Collectors.toList()); .collect(Collectors.toList());
......
...@@ -326,12 +326,12 @@ ...@@ -326,12 +326,12 @@
</select> </select>
<select id="manageCostList" resultType="com.blt.other.module.cost.model.CostDomain"> <select id="manageCostList" resultType="com.blt.other.module.cost.model.CostDomain">
select * select t1.*
from cost t1 from cost t1
left join cost_type ct on t1.type_id = ct.id left join cost_type ct on t1.type_id = ct.id
where t1.cost_status = 4 where t1.cost_status = 4
and ct.is_manage_cost = 1 and ct.is_manage_cost = 1
and last_modify_date between #{startDateStr} and #{endDateStr} and t1.last_modify_date between #{startDateStr} and #{endDateStr}
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment