This commit is contained in:
linfso 2025-01-06 17:46:00 +08:00
parent 8836fe091a
commit dd0187465c

View File

@ -11,6 +11,10 @@
package com.xdadan.erp.emis.service.impl; package com.xdadan.erp.emis.service.impl;
import java.util.List; import java.util.List;
import com.xdadan.erp.emis.domain.EmisWaybill;
import com.xdadan.erp.emis.domain.enumtype.WaybillAttachType;
import com.xdadan.erp.emis.mapper.EmisWaybillMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.xdadan.erp.emis.domain.EmisWaybillAttachment; import com.xdadan.erp.emis.domain.EmisWaybillAttachment;
@ -29,6 +33,9 @@ public class EmisWaybillAttachmentServiceImpl implements IEmisWaybillAttachmentS
@Autowired @Autowired
private EmisWaybillAttachmentMapper emisWaybillAttachmentMapper; private EmisWaybillAttachmentMapper emisWaybillAttachmentMapper;
@Autowired
private EmisWaybillMapper emisWaybillMapper;
/** /**
* 查询运单附件 * 查询运单附件
* *
@ -62,7 +69,18 @@ public class EmisWaybillAttachmentServiceImpl implements IEmisWaybillAttachmentS
@Override @Override
public int insertEmisWaybillAttachment(EmisWaybillAttachment emisWaybillAttachment) public int insertEmisWaybillAttachment(EmisWaybillAttachment emisWaybillAttachment)
{ {
return emisWaybillAttachmentMapper.insertEmisWaybillAttachment(emisWaybillAttachment);
// 插入货物图片
emisWaybillAttachmentMapper.insertEmisWaybillAttachment(emisWaybillAttachment);
// 如果是货物图片,需要给运单加上货物图片标识
if(WaybillAttachType.GOODS_PIC.typeCode.equals(emisWaybillAttachment.getAttachType())){
EmisWaybill emisWaybill = new EmisWaybill();
emisWaybill.setId(emisWaybillAttachment.getWaybillId());
emisWaybill.setGoodsPics("1");
emisWaybillMapper.updateEmisWaybill(emisWaybill);
}
return 1;
} }
/** /**