md
This commit is contained in:
parent
b5bb52cb8b
commit
1f8af927a2
@ -499,15 +499,25 @@ public class EmisWaybill extends BaseEntity
|
|||||||
@DataAuditField(fieldComment = "扩展信息")
|
@DataAuditField(fieldComment = "扩展信息")
|
||||||
private String extInfo;
|
private String extInfo;
|
||||||
|
|
||||||
|
// 体积信息
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private List<EmisWaybillCargo> cargoList;
|
private List<EmisWaybillCargo> cargoList;
|
||||||
|
|
||||||
|
// 费用列表信息
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private List<EmisWaybillFeeitem> feeitemList;
|
private List<EmisWaybillFeeitem> feeitemList;
|
||||||
|
|
||||||
|
// 附件信息
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private List<EmisWaybillAttachment> attachmentList;
|
private List<EmisWaybillAttachment> attachmentList;
|
||||||
|
|
||||||
|
// 快递报关资料信息
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<EmisWaybillDeclareGoods> declareGoodsList;
|
||||||
|
|
||||||
|
// 陆运报关附件信息
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<EmisWaybillDeclareAttachment> declareAttachmentList;
|
||||||
|
|
||||||
/* 扩展信息 */
|
/* 扩展信息 */
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
|
|||||||
@ -85,4 +85,6 @@ public interface EmisWaybillDeclareAttachmentMapper extends BaseMapper<EmisWaybi
|
|||||||
|
|
||||||
public int deleteByBillCodeAndAttachType(@Param("billCode") String billCode, @Param("attachType") String attachType);
|
public int deleteByBillCodeAndAttachType(@Param("billCode") String billCode, @Param("attachType") String attachType);
|
||||||
|
|
||||||
|
public int deleteEmisWaybillDeclareAttachmentByWaybillId(Long waybillId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -77,4 +77,7 @@ public interface EmisWaybillDeclareGoodsMapper extends BaseMapper<EmisWaybillDec
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteEmisWaybillDeclareGoodsByIds(Long[] ids);
|
public int deleteEmisWaybillDeclareGoodsByIds(Long[] ids);
|
||||||
|
|
||||||
|
|
||||||
|
public int deleteEmisWaybillDeclareGoodsByWaybillId(Long waybillId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,9 +84,15 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
@Autowired
|
@Autowired
|
||||||
private EmisWaybillCargoMapper emisWaybillCargoMapper;
|
private EmisWaybillCargoMapper emisWaybillCargoMapper;
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmisWaybillAttachmentMapper emisWaybillAttachmentMapper;
|
private EmisWaybillAttachmentMapper emisWaybillAttachmentMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmisWaybillDeclareGoodsMapper emisWaybillDeclareGoodsMapper;
|
||||||
|
@Autowired
|
||||||
|
private EmisWaybillDeclareAttachmentMapper emisWaybillDeclareAttachmentMapper;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmisTransLineMapper emisTransLineMapper;
|
private EmisTransLineMapper emisTransLineMapper;
|
||||||
|
|
||||||
@ -2739,15 +2745,35 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 插入商品信息
|
// 插入件模体信息
|
||||||
if(!CollectionUtil.isEmpty(emisWaybillSave.getCargoList() )){
|
if(!CollectionUtil.isEmpty(emisWaybillSave.getCargoList() )){
|
||||||
List<EmisWaybillCargo> cargoList=emisWaybillSave.getCargoList();
|
List<EmisWaybillCargo> cargoList=emisWaybillSave.getCargoList();
|
||||||
for (EmisWaybillCargo cargoItem:cargoList) {
|
for (EmisWaybillCargo cargoItem:cargoList) {
|
||||||
cargoItem.setWaybillId(emisWaybillSave.getId());
|
cargoItem.setWaybillId(emisWaybillSave.getId());
|
||||||
|
cargoItem.setBillCode(emisWaybillSave.getBillCode());
|
||||||
emisWaybillCargoMapper.insertEmisWaybillCargo(cargoItem);
|
emisWaybillCargoMapper.insertEmisWaybillCargo(cargoItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 插入申报货物信息
|
||||||
|
if(!CollectionUtil.isEmpty(emisWaybillSave.getDeclareGoodsList() )){
|
||||||
|
List<EmisWaybillDeclareGoods> declareGoodsList=emisWaybillSave.getDeclareGoodsList();
|
||||||
|
for (EmisWaybillDeclareGoods declareGoodsItem:declareGoodsList) {
|
||||||
|
declareGoodsItem.setWaybillId(emisWaybillSave.getId());
|
||||||
|
declareGoodsItem.setBillCode(emisWaybillSave.getBillCode());
|
||||||
|
emisWaybillDeclareGoodsMapper.insertEmisWaybillDeclareGoods(declareGoodsItem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 插入申报资料信息
|
||||||
|
if(!CollectionUtil.isEmpty(emisWaybillSave.getDeclareAttachmentList() )){
|
||||||
|
List<EmisWaybillDeclareAttachment> declareAttachmentList=emisWaybillSave.getDeclareAttachmentList();
|
||||||
|
for (EmisWaybillDeclareAttachment declareAttachmentItem:declareAttachmentList) {
|
||||||
|
declareAttachmentItem.setWaybillId(emisWaybillSave.getId());
|
||||||
|
declareAttachmentItem.setBillCode(emisWaybillSave.getBillCode());
|
||||||
|
emisWaybillDeclareAttachmentMapper.insertEmisWaybillDeclareAttachment(declareAttachmentItem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 通知网点有新的订单
|
// 通知网点有新的订单
|
||||||
@ -2972,12 +2998,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 删除旧信息
|
// 删除旧信息
|
||||||
emisWaybillFeeitemMapper.deleteEmisWaybillFeeitemByWaybillId(emisWaybillSave.getId());
|
|
||||||
|
|
||||||
emisWaybillCargoMapper.deleteEmisWaybillCargoByWaybillId(emisWaybillSave.getId());
|
|
||||||
|
|
||||||
// 产生主键插入其他数据
|
|
||||||
// 插入费用
|
// 插入费用
|
||||||
|
emisWaybillFeeitemMapper.deleteEmisWaybillFeeitemByWaybillId(emisWaybillSave.getId());
|
||||||
List<EmisWaybillFeeitem> feeitemList=emisWaybillSave.getFeeitemList();
|
List<EmisWaybillFeeitem> feeitemList=emisWaybillSave.getFeeitemList();
|
||||||
if(!CollectionUtils.isEmpty(feeitemList)){
|
if(!CollectionUtils.isEmpty(feeitemList)){
|
||||||
for (EmisWaybillFeeitem feeItem:feeitemList) {
|
for (EmisWaybillFeeitem feeItem:feeitemList) {
|
||||||
@ -2986,7 +3008,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 插入商品信息
|
// 插入件模体信息
|
||||||
|
emisWaybillCargoMapper.deleteEmisWaybillCargoByWaybillId(emisWaybillSave.getId());
|
||||||
if(!CollectionUtil.isEmpty(emisWaybillSave.getCargoList() )){
|
if(!CollectionUtil.isEmpty(emisWaybillSave.getCargoList() )){
|
||||||
List<EmisWaybillCargo> cargoList=emisWaybillSave.getCargoList();
|
List<EmisWaybillCargo> cargoList=emisWaybillSave.getCargoList();
|
||||||
for (EmisWaybillCargo cargoItem:cargoList) {
|
for (EmisWaybillCargo cargoItem:cargoList) {
|
||||||
@ -2995,6 +3018,28 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 插入申报货物信息
|
||||||
|
emisWaybillDeclareGoodsMapper.deleteEmisWaybillDeclareGoodsByWaybillId(emisWaybillSave.getId());
|
||||||
|
if(!CollectionUtil.isEmpty(emisWaybillSave.getDeclareGoodsList() )){
|
||||||
|
List<EmisWaybillDeclareGoods> declareGoodsList=emisWaybillSave.getDeclareGoodsList();
|
||||||
|
for (EmisWaybillDeclareGoods declareGoodsItem:declareGoodsList) {
|
||||||
|
declareGoodsItem.setWaybillId(emisWaybillSave.getId());
|
||||||
|
declareGoodsItem.setBillCode(emisWaybillSave.getBillCode());
|
||||||
|
emisWaybillDeclareGoodsMapper.insertEmisWaybillDeclareGoods(declareGoodsItem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 插入申报资料信息
|
||||||
|
emisWaybillDeclareAttachmentMapper.deleteEmisWaybillDeclareAttachmentByWaybillId(emisWaybillSave.getId());
|
||||||
|
if(!CollectionUtil.isEmpty(emisWaybillSave.getDeclareAttachmentList() )){
|
||||||
|
List<EmisWaybillDeclareAttachment> declareAttachmentList=emisWaybillSave.getDeclareAttachmentList();
|
||||||
|
for (EmisWaybillDeclareAttachment declareAttachmentItem:declareAttachmentList) {
|
||||||
|
declareAttachmentItem.setWaybillId(emisWaybillSave.getId());
|
||||||
|
declareAttachmentItem.setBillCode(emisWaybillSave.getBillCode());
|
||||||
|
emisWaybillDeclareAttachmentMapper.insertEmisWaybillDeclareAttachment(declareAttachmentItem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -216,4 +216,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
update emis_waybill_declare_attachment set del_flag='1' where bill_code = #{billCode} and attach_type = #{attachType}
|
update emis_waybill_declare_attachment set del_flag='1' where bill_code = #{billCode} and attach_type = #{attachType}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEmisWaybillDeclareAttachmentByWaybillId" parameterType="Long">
|
||||||
|
update emis_waybill_declare_attachment set del_flag='1' where waybill_id = #{waybillId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -271,4 +271,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEmisWaybillDeclareGoodsByWaybillId" parameterType="Long">
|
||||||
|
update emis_waybill_declare_goods set del_flag='1' where waybill_id = #{waybillId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user