md
This commit is contained in:
parent
4db56fd77a
commit
f91e1dadef
@ -38,6 +38,9 @@ public interface EmisWaybillAttachmentMapper extends BaseMapper<EmisWaybillAttac
|
|||||||
*/
|
*/
|
||||||
public List<EmisWaybillAttachment> selectEmisWaybillAttachmentList(EmisWaybillAttachment emisWaybillAttachment);
|
public List<EmisWaybillAttachment> selectEmisWaybillAttachmentList(EmisWaybillAttachment emisWaybillAttachment);
|
||||||
|
|
||||||
|
public List<EmisWaybillAttachment> selectAttachmentListByBillCode(String billCode);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
*
|
*
|
||||||
|
|||||||
@ -197,18 +197,13 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
queryCargo.setWaybillId(dbEmisWaybill.getId());
|
queryCargo.setWaybillId(dbEmisWaybill.getId());
|
||||||
List<EmisWaybillCargo> dbCargoList=emisWaybillCargoMapper.selectEmisWaybillCargoList(queryCargo);
|
List<EmisWaybillCargo> dbCargoList=emisWaybillCargoMapper.selectEmisWaybillCargoList(queryCargo);
|
||||||
|
|
||||||
|
|
||||||
// 附件清单
|
// 附件清单
|
||||||
EmisWaybillAttachment queryAttachment = new EmisWaybillAttachment();
|
List<EmisWaybillAttachment> dbAttachmentList=emisWaybillAttachmentMapper.selectAttachmentListByBillCode(dbEmisWaybill.getBillCode());
|
||||||
queryAttachment.setWaybillId(dbEmisWaybill.getId());
|
|
||||||
List<EmisWaybillAttachment> dbAttachmentList=emisWaybillAttachmentMapper.selectEmisWaybillAttachmentList(queryAttachment);
|
|
||||||
|
|
||||||
String goodsImgBmk="";
|
String goodsImgBmk="";
|
||||||
String signImgBmk="";
|
String signImgBmk="";
|
||||||
String gotImgBmk="";
|
String gotImgBmk="";
|
||||||
// 赋值货物图片清单
|
// 赋值货物图片清单
|
||||||
for (EmisWaybillAttachment attachment:dbAttachmentList
|
for (EmisWaybillAttachment attachment:dbAttachmentList) {
|
||||||
) {
|
|
||||||
if(WaybillAttachType.SIGNED_PIC.typeCode.equals(attachment.getAttachType())){
|
if(WaybillAttachType.SIGNED_PIC.typeCode.equals(attachment.getAttachType())){
|
||||||
signImgBmk=signImgBmk+attachment.getFileUrl()+",";
|
signImgBmk=signImgBmk+attachment.getFileUrl()+",";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -69,6 +69,13 @@
|
|||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</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 id="checkUnique" parameterType="EmisWaybillAttachment" resultType="int">
|
||||||
select count(1) from emis_waybill_attachment
|
select count(1) from emis_waybill_attachment
|
||||||
where del_flag='0'
|
where del_flag='0'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user