This commit is contained in:
linfso 2024-07-02 11:13:57 +08:00
parent 4db56fd77a
commit f91e1dadef
3 changed files with 12 additions and 7 deletions

View File

@ -38,6 +38,9 @@ public interface EmisWaybillAttachmentMapper extends BaseMapper<EmisWaybillAttac
*/
public List<EmisWaybillAttachment> selectEmisWaybillAttachmentList(EmisWaybillAttachment emisWaybillAttachment);
public List<EmisWaybillAttachment> selectAttachmentListByBillCode(String billCode);
/**
* 新增
*

View File

@ -197,18 +197,13 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
queryCargo.setWaybillId(dbEmisWaybill.getId());
List<EmisWaybillCargo> dbCargoList=emisWaybillCargoMapper.selectEmisWaybillCargoList(queryCargo);
// 附件清单
EmisWaybillAttachment queryAttachment = new EmisWaybillAttachment();
queryAttachment.setWaybillId(dbEmisWaybill.getId());
List<EmisWaybillAttachment> dbAttachmentList=emisWaybillAttachmentMapper.selectEmisWaybillAttachmentList(queryAttachment);
List<EmisWaybillAttachment> dbAttachmentList=emisWaybillAttachmentMapper.selectAttachmentListByBillCode(dbEmisWaybill.getBillCode());
String goodsImgBmk="";
String signImgBmk="";
String gotImgBmk="";
// 赋值货物图片清单
for (EmisWaybillAttachment attachment:dbAttachmentList
) {
for (EmisWaybillAttachment attachment:dbAttachmentList) {
if(WaybillAttachType.SIGNED_PIC.typeCode.equals(attachment.getAttachType())){
signImgBmk=signImgBmk+attachment.getFileUrl()+",";
}

View File

@ -69,6 +69,13 @@
order by create_time desc
</select>
<select id="selectAttachmentListByBillCode" parameterType="String" resultMap="EmisWaybillAttachmentResult">
select id, waybill_id, bill_code, attach_type, file_name, file_url, file_siez, file_desc, order_num, data_from, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_waybill_attachment a
where a.bill_code = #{billCode}
</select>
<select id="checkUnique" parameterType="EmisWaybillAttachment" resultType="int">
select count(1) from emis_waybill_attachment
where del_flag='0'