md
This commit is contained in:
parent
4dc37fbb0a
commit
6f4f5125cf
@ -150,7 +150,7 @@ public interface IEmisWaybillService extends IDataAuditService
|
||||
* @param emisWaybillSave
|
||||
* @throws EmisBizError
|
||||
*/
|
||||
public void reUpdateWayBill(EmisWaybill oldEmisWaybill,EmisWaybill emisWaybillSave) throws EmisBizError ;
|
||||
public void reUpdateWayBill(EmisWaybill oldEmisWaybill,EmisWaybill emisWaybillSave,boolean needUpdateAttach) throws EmisBizError ;
|
||||
|
||||
|
||||
|
||||
|
||||
@ -275,7 +275,7 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
|
||||
);
|
||||
|
||||
|
||||
emisWaybillService.reUpdateWayBill(emisWaybillOld,emisWaybillSave);
|
||||
emisWaybillService.reUpdateWayBill(emisWaybillOld,emisWaybillSave,false);
|
||||
|
||||
String title="费用调整已审批通过,单号【"+emisWaybillAjustApply.getBillCode()+"】";
|
||||
sendNoticeToEmpUser(emisWaybillAjustApply.getApplyManCode(), title, "", "/d24/expenseRecognitionManagemen/WaybillAjustApplyList");
|
||||
|
||||
@ -1480,7 +1480,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
}
|
||||
|
||||
emisWaybillSave.setId(emisWaybillOld.getId());
|
||||
reUpdateWayBillByOms(emisWaybillOld,emisWaybillSave);
|
||||
reUpdateWayBillByOms(emisWaybillOld,emisWaybillSave,true);
|
||||
}
|
||||
|
||||
return 1;
|
||||
@ -3462,7 +3462,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
* @throws EmisBizError
|
||||
*/
|
||||
@Override
|
||||
public void reUpdateWayBill(EmisWaybill oldEmisWaybill,EmisWaybill emisWaybillSave) throws EmisBizError {
|
||||
public void reUpdateWayBill(EmisWaybill oldEmisWaybill,EmisWaybill emisWaybillSave,boolean needUpdateAttach) throws EmisBizError {
|
||||
|
||||
// 公共计算部分
|
||||
emisWaybillSave.setId(oldEmisWaybill.getId());
|
||||
@ -3516,28 +3516,29 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
}
|
||||
}
|
||||
|
||||
// 插入商品信息
|
||||
if(!CollectionUtil.isEmpty(emisWaybillSave.getCargoList() )){
|
||||
List<EmisWaybillCargo> cargoList=emisWaybillSave.getCargoList();
|
||||
for (EmisWaybillCargo cargoItem:cargoList) {
|
||||
cargoItem.setWaybillId(emisWaybillSave.getId());
|
||||
emisWaybillCargoMapper.insertEmisWaybillCargo(cargoItem);
|
||||
if(needUpdateAttach) {
|
||||
// 插入商品信息
|
||||
if(!CollectionUtil.isEmpty(emisWaybillSave.getCargoList() )){
|
||||
List<EmisWaybillCargo> cargoList=emisWaybillSave.getCargoList();
|
||||
for (EmisWaybillCargo cargoItem:cargoList) {
|
||||
cargoItem.setWaybillId(emisWaybillSave.getId());
|
||||
emisWaybillCargoMapper.insertEmisWaybillCargo(cargoItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 保存货物图片
|
||||
if(!StringUtils.isEmpty(goodsPicsStr)){
|
||||
// 删除图片插入新图片
|
||||
emisWaybillAttachmentMapper.deleteByBillCodeAndAttachType(emisWaybillSave.getBillCode(),WaybillAttachType.GOODS_PIC.typeCode);
|
||||
// 保存货物图片
|
||||
if (!StringUtils.isEmpty(goodsPicsStr)) {
|
||||
// 删除图片插入新图片
|
||||
emisWaybillAttachmentMapper.deleteByBillCodeAndAttachType(emisWaybillSave.getBillCode(), WaybillAttachType.GOODS_PIC.typeCode);
|
||||
|
||||
EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment();
|
||||
goodsPicAttachment.setWaybillId(emisWaybillSave.getId());
|
||||
goodsPicAttachment.setAttachType(WaybillAttachType.GOODS_PIC.typeCode);
|
||||
goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode());
|
||||
goodsPicAttachment.setFileUrl(goodsPicsStr);
|
||||
|
||||
emisWaybillAttachmentMapper.insertEmisWaybillAttachment(goodsPicAttachment);
|
||||
EmisWaybillAttachment goodsPicAttachment = new EmisWaybillAttachment();
|
||||
goodsPicAttachment.setWaybillId(emisWaybillSave.getId());
|
||||
goodsPicAttachment.setAttachType(WaybillAttachType.GOODS_PIC.typeCode);
|
||||
goodsPicAttachment.setBillCode(emisWaybillSave.getBillCode());
|
||||
goodsPicAttachment.setFileUrl(goodsPicsStr);
|
||||
|
||||
emisWaybillAttachmentMapper.insertEmisWaybillAttachment(goodsPicAttachment);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -159,7 +159,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
||||
and EXISTS(
|
||||
select 1 from emis_settle_bill x2,emis_settle_invoice_bill_rel x3
|
||||
|
||||
Loading…
Reference in New Issue
Block a user