|
|
|
@ -147,6 +147,11 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
public Boolean ownSaveOrUpdate(DistrilbutionBillLadingDTO distrilbutionBillLading) { |
|
|
|
|
Boolean las = false; |
|
|
|
|
if (ObjectUtils.isNotNull(distrilbutionBillLading.getId())) { |
|
|
|
|
//判断是否已签收
|
|
|
|
|
DistrilbutionBillLadingEntity billLadingEntity = baseMapper.selectById(distrilbutionBillLading.getId()); |
|
|
|
|
if(ObjectUtils.isNotNull(billLadingEntity) && billLadingEntity.getConditions().equals(BillLadingStatusConstant.yiqianshou.getValue())){ |
|
|
|
|
throw new ServiceException("已签收,无法修改计划!!!"); |
|
|
|
|
} |
|
|
|
|
las = true; |
|
|
|
|
//修改
|
|
|
|
|
this.updateById(distrilbutionBillLading); |
|
|
|
|