审批付款申请加重量

jg-waiwang-pro
XI_TENG\xixi_ 3 months ago
parent 93d14bd460
commit 751eed929b

@ -324,4 +324,9 @@
select SUM(delivery_num) from jg_delivery_product_relation
where f_delete_mark is null and order_id = #{processId}
</select>
<select id="getNetWeightBypayment" resultType="java.math.BigDecimal">
select apply_weight from jg_cw_payment_application
where f_delete_mark is null and id = #{processId}
</select>
</mapper>

@ -216,5 +216,14 @@ public interface FlowTaskService extends SuperService<FlowTaskEntity> {
*/
BigDecimal getNetWeight(String flowName,String processId);
/**
*
* @return
*/
BigDecimal getNetWeightPayment(String flowName,String processId);
/**
*
* @return
*/
void remove(FlowTaskEntity flowTaskEntity);
}

@ -55,4 +55,11 @@ public interface FlowTaskMapper extends SuperMapper<FlowTaskEntity> {
* @return
*/
BigDecimal getNetWeightByReceiptOrder(@Param("processId") String processId);
/**
*
*
* @return
*/
BigDecimal getNetWeightBypayment(@Param("processId") String processId);
}

@ -867,6 +867,13 @@ public class FlowTaskServiceImpl extends SuperServiceImpl<FlowTaskMapper, FlowTa
return this.baseMapper.getNetWeightByReceiptOrder(processId);
}
}
/**
*
*/
@Override
public BigDecimal getNetWeightPayment(String flowName, String processId) {
return this.baseMapper.getNetWeightBypayment(processId);
}
@Override
public void remove(FlowTaskEntity entity) {

@ -108,10 +108,14 @@ public class FlowBeforeController {
boolean isBatch = FlowNature.BATCH.equals(category);
for (FlowTaskListModel task : data) {
FlowBeforeListVO vo = JsonUtil.getJsonToBean(task, FlowBeforeListVO.class);
if (vo.getFlowName().equals("采购订单") || vo.getFlowName().equals("销售订单") || vo.getFlowName().equals("采购收货单") || vo.getFlowName().equals("销售发货单")){
if (vo.getFlowName().equals("采购订单") || vo.getFlowName().equals("销售订单") || vo.getFlowName().equals("采购收货单") || vo.getFlowName().equals("销售发货单")|| vo.getFlowName().equals("销售发货单")){
BigDecimal netWeight = flowTaskService.getNetWeight(vo.getFlowName(),vo.getProcessId());
vo.setNetWeight(netWeight);
}
if ( vo.getFlowName().equals("付款申请单")){
BigDecimal netWeight = flowTaskService.getNetWeightPayment(vo.getFlowName(),vo.getProcessId());
vo.setNetWeight(netWeight);
}
//用户名称赋值
UserEntity user = userList.stream().filter(t -> t.getId().equals(vo.getCreatorUserId())).findFirst().orElse(null);
vo.setUserName(user != null ? user.getRealName() + "/" + user.getAccount() : "");

Loading…
Cancel
Save