收费项目,单据类型修改

dev_kcyj
anthonywj 1 year ago
parent 0887580f38
commit 160d36b0a0

@ -69,14 +69,14 @@ public class BasicDestinyRelController {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
List<BasicSkProjectResponse> basicSkProjectResponses = basicSkProjectService.filterList(basicSkProjectRequest);
if (CollectionUtil.isNotEmpty(basicSkProjectResponses)) {
List<Long> pId = basicSkProjectResponses.stream().map(BasicSkProjectResponse::getId).collect(Collectors.toList());
Map<Long, BigDecimal> priceMap = basicDestinyRelService.sumPriceByRedIds(pId);
basicSkProjectResponses.forEach(x -> {
BigDecimal price = priceMap.get(x.getId());
x.setPrice(String.valueOf(price));
});
}
// if (CollectionUtil.isNotEmpty(basicSkProjectResponses)) {
// List<Long> pId = basicSkProjectResponses.stream().map(BasicSkProjectResponse::getId).collect(Collectors.toList());
// Map<Long, BigDecimal> priceMap = basicDestinyRelService.sumPriceByRedIds(pId);
// basicSkProjectResponses.forEach(x -> {
// BigDecimal price = priceMap.get(x.getId());
// x.setPrice(String.valueOf(price));
// });
// }
PageInfo<BasicSkProjectResponse> pageInfo = new PageInfo<>(basicSkProjectResponses);
PageSimpleResponse<BasicSkProjectResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());

@ -4,7 +4,7 @@
<resultMap id="BaseResultMap" autoMapping="true" type="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity">
<!--@mbg.generated-->
<!--@Table auth_warehouse_bustype-->
<!-- <id column="id" jdbcType="INTEGER" property="id"/>-->
<!-- <id column="id" jdbcType="INTEGER" property="id"/>-->
<result column="code" jdbcType="VARCHAR" property="code"/>
<result column="action" jdbcType="VARCHAR" property="action"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
@ -226,13 +226,14 @@
where code = #{code}
</select>
<select id="selectListByCodeEnable" parameterType="com.glxp.api.req.auth.FilterInvBusUserRequest" resultMap="BaseResultMap">
<select id="selectListByCodeEnable" parameterType="com.glxp.api.req.auth.FilterInvBusUserRequest"
resultMap="BaseResultMap">
select awb.id,
awb.code,
awb.action,
bbt.name
from auth_warehouse_bustype awb
inner join basic_bussiness_type bbt on awb.action = bbt.action
inner join basic_bussiness_type bbt on awb.action = bbt.action
<where>
<if test="subInvCode != '' and subInvCode != null">
AND awb.code = #{subInvCode}
@ -241,6 +242,7 @@
AND enable = #{enable}
</if>
</where>
group by awb.action
</select>

Loading…
Cancel
Save