update “签订联系人”编辑后根据邮寄信息判断是否修改
This commit is contained in:
+2
-1
@@ -334,8 +334,9 @@ public class PayIncomeContractServiceImpl extends ServiceImpl<PayIncomeContractM
|
|||||||
}
|
}
|
||||||
//如果已邮寄,判断是否修改联系人
|
//如果已邮寄,判断是否修改联系人
|
||||||
if (postStatus.equals(PayIncomeContractCommon.POST_STATUS1)){
|
if (postStatus.equals(PayIncomeContractCommon.POST_STATUS1)){
|
||||||
String oldContactsId = payIncomeContractStatus.getSignedContactsId();
|
String oldContactsId = payIncomeContractStatus.getSignedContactsTemporaryId();
|
||||||
String newContactsId = payIncomeContract.getSignedContactsId();
|
String newContactsId = payIncomeContract.getSignedContactsId();
|
||||||
|
|
||||||
if (!Objects.equals(oldContactsId,newContactsId)){
|
if (!Objects.equals(oldContactsId,newContactsId)){
|
||||||
throw new JeroBootException("已邮寄,不允许修改签订联系人");
|
throw new JeroBootException("已邮寄,不允许修改签订联系人");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user