Merge pull request 'demand: TMS系统 - 客户账单管理 - 业务出账确认 - 逻辑优化 TMS系统 - 客户账单管理 - 业务开票申请/财务开票处理 - 按运单号查询 不支持多个运单号查询数据' (#286) from test1 into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/286
This commit is contained in:
commit
add8a2a212
@ -145,7 +145,7 @@ public class EmisSettleSubBillController extends EmisBaseController
|
||||
{
|
||||
setPrivParams(emisSettleSubBill);
|
||||
|
||||
if(!org.apache.commons.lang3.StringUtils.isEmpty(emisSettleSubBill.getBillCode())){
|
||||
if(!StringUtils.isEmpty(emisSettleSubBill.getBillCode())){
|
||||
emisSettleSubBill.setBillCode(WaybillHelper.formatQueryValue(emisSettleSubBill.getBillCode()));
|
||||
String[] billCodeSortList = emisSettleSubBill.getBillCode().split(",");
|
||||
if(billCodeSortList.length>1){
|
||||
@ -440,6 +440,13 @@ public class EmisSettleSubBillController extends EmisBaseController
|
||||
return AjaxResult.error("账单不存在:"+old.getBillCode());
|
||||
}
|
||||
|
||||
EmisWaybill waybill = emisBaseService.getWaybillByBillCode(old.getBillNo());
|
||||
if(waybill==null){
|
||||
return AjaxResult.error("运单不存在:"+old.getBillCode());
|
||||
}
|
||||
if ("6".equals(waybill.getPaymentType())) {
|
||||
return AjaxResult.error(old.getBillCode() + "支付方式是其他,不允许确认账单,请修改正确的支付方式");
|
||||
}
|
||||
if(!"0086".equals(old.getWaybillDetail().getSendCountry()) && "0086".equals(old.getWaybillDetail().getReceiveCountry())
|
||||
&& (
|
||||
"2".equals(old.getWaybillDetail().getPaymentType())
|
||||
@ -467,7 +474,6 @@ public class EmisSettleSubBillController extends EmisBaseController
|
||||
bug:1688
|
||||
调整为现金保留自动确认,月结调整为不自动确认
|
||||
*/
|
||||
EmisWaybill waybill = emisBaseService.getWaybillByBillCode(old.getBillNo());
|
||||
if (waybill.getRealFee() == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -191,7 +191,7 @@
|
||||
|
||||
and EXISTS(
|
||||
select 1 from emis_settle_invoice_rel rel
|
||||
where rel.del_flag = '0' and rel.bill_no=#{params.billCode}
|
||||
where rel.del_flag = '0' and FIND_IN_SET(rel.bill_no, #{params.billCode})
|
||||
and rel.apply_seq_no = a.apply_seq_no
|
||||
)
|
||||
|
||||
@ -350,7 +350,7 @@
|
||||
<if test="params.billCode != null and params.billCode != ''">
|
||||
and EXISTS(
|
||||
select 1 from emis_settle_invoice_rel rel
|
||||
where rel.del_flag = '0' and rel.bill_no=#{params.billCode}
|
||||
where rel.del_flag = '0' and FIND_IN_SET(rel.bill_no, #{params.billCode})
|
||||
and rel.apply_seq_no = a.apply_seq_no
|
||||
)
|
||||
</if>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user