|
|
|
@@ -270,6 +270,14 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
String message; |
|
|
|
boolean hasFlow = true; |
|
|
|
if (record.getId() == null) { |
|
|
|
if (record.getOperationType().equals(EnumContractOperationType.WHOLE.getCode())) { |
|
|
|
WxPropertyContract propertyContractQuery = new WxPropertyContract(); |
|
|
|
propertyContractQuery.setRentContractId(record.getRentContractId()); |
|
|
|
int propertyContractCount = wxPropertyContractMapper.selectCount(propertyContractQuery); |
|
|
|
if (propertyContractCount > 0) { |
|
|
|
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR); |
|
|
|
} |
|
|
|
} |
|
|
|
hasFlow = false; |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
record.setId(idWorker.nextId()); |
|
|
|
|