|
|
|
@ -2090,7 +2090,13 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public R updateReceivedImage(BillLadingAppDTO billLadingAppDTO) { |
|
|
|
|
|
|
|
|
|
//修改数据
|
|
|
|
|
if(ObjectUtils.isNotNull(billLadingAppDTO.getRemark())){ |
|
|
|
|
DistrilbutionBillLadingEntity billLadingEntity = new DistrilbutionBillLadingEntity(); |
|
|
|
|
billLadingEntity.setId(billLadingAppDTO.getBillLadingId()); |
|
|
|
|
billLadingEntity.setRemark(billLadingAppDTO.getRemark()); |
|
|
|
|
baseMapper.updateById(billLadingEntity); |
|
|
|
|
} |
|
|
|
|
//查询全部的图片
|
|
|
|
|
List<DistributionPrintEntity> printEntityList = distributionPrintService.list(Wrappers.<DistributionPrintEntity>query().lambda() |
|
|
|
|
.eq(DistributionPrintEntity::getBillLadingId, billLadingAppDTO.getBillLadingId()) |
|
|
|
@ -2146,7 +2152,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
List<DistributionPrintEntity> list = distributionPrintService.list(Wrappers.<DistributionPrintEntity>query().lambda() |
|
|
|
|
.eq(DistributionPrintEntity::getBillLadingId, billLadingAppDTO.getBillLadingId()) |
|
|
|
|
); |
|
|
|
|
Map<String,List<BillLadingAppDTO.Print>> map = new HashMap<>(); |
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
if(!list.isEmpty()){ |
|
|
|
|
List<BillLadingAppDTO.Print> list1 = new ArrayList<>(); |
|
|
|
|
list.forEach(i ->{ |
|
|
|
@ -2158,9 +2164,13 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
list1.add(print); |
|
|
|
|
}); |
|
|
|
|
map.put("list",list1); |
|
|
|
|
//查询提货备注
|
|
|
|
|
DistrilbutionBillLadingEntity billLadingEntity = baseMapper.selectById(billLadingAppDTO.getBillLadingId()); |
|
|
|
|
map.put("remark",billLadingEntity.getRemark()); |
|
|
|
|
return R.data(map); |
|
|
|
|
} |
|
|
|
|
map.put("list",null); |
|
|
|
|
map.put("remark",null); |
|
|
|
|
return R.data(map); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|