|
|
@ -762,9 +762,9 @@ public class CrmCustomerTempService extends MybatisBaseService<CrmCustomerTempMa |
|
|
|
//微信号
|
|
|
|
String weixin = dto.getWeixin(); |
|
|
|
if ("1".equals(dto.getCustomerType())) { |
|
|
|
if (!mobile.matches("^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\\d{8}$")) { |
|
|
|
/* if (!mobile.matches("^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\\d{8}$")) { |
|
|
|
return rb.setMsg("手机号格式不正确"); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
if (StringUtils.isNotBlank(dto.getIDNumber())) { |
|
|
|
if (!weixin.matches("^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$")) { |
|
|
|
return rb.setMsg("证件号码格式不正确"); |
|
|
@ -1063,21 +1063,4 @@ public class CrmCustomerTempService extends MybatisBaseService<CrmCustomerTempMa |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean updateCompany(String sid, String companyName) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
int i = baseMapper.updateCompany(sid,companyName); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean updateEmail(String sid, String email) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
int i = baseMapper.updateEmail(sid,email); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean updateRemarks(String sid, String remarks) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
int i = baseMapper.updateRemarks(sid,remarks); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
} |