|
@@ -286,11 +286,20 @@ public class CustomerInterLowerServiceImpl implements CustomerInterLowerService
|
|
|
customerRec2.setCustomerName(appKey);
|
|
|
customerRec2.setCompanyNum(companyNum);
|
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec2);
|
|
|
- if (null == customerRec1 || customerRec1.getRecStatus() != 1){
|
|
|
+ if (null == customerRec1){
|
|
|
result.setMsg("企业还未备案成功!");
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ if (null != customerRec1 && customerRec1.getRecStatus() != 1){
|
|
|
+ result.setMsg("企业还未备案成功!");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (null != customerRec1 && customerRec1.getContractSuc() == 1){
|
|
|
+ result.setMsg("协议已上传成功,审批中,请勿重复上传协议!");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
|
|
|
String fileType = contractFileName.substring(contractFileName.lastIndexOf(".") + 1, contractFileName.length()).toLowerCase();
|
|
|
if(!PDF.equals(fileType)){
|