|
|
@@ -442,18 +442,21 @@ public class TechProjectServiceImpl extends BaseMybatisDao<TechProjectMapper> im
|
|
|
//contractTaskMapper.updateByPrimaryKeySelective(task);
|
|
|
Admin a=adminMapper.selectByPrimaryKey(task.getTaskReceiver());
|
|
|
Admin ad=null;
|
|
|
+ String regex = "^(1[1-9][0-9])\\d{8}$";
|
|
|
+ Pattern p = Pattern.compile(regex);
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
TaskDetailBo tb= contractTaskMapper.selectProjectTaskDetail(task.getId());
|
|
|
- String mobile = null;
|
|
|
+ String mobile = "";
|
|
|
if (null!=tb&&tb.getOrderNo()!=null) {
|
|
|
ServiceOrderDetailBo t=tOrderMapper.selectServiceOrderDetail(tb.getOrderNo());
|
|
|
if (null!=t&&t.getSalesmanId()!=null) {
|
|
|
ad=adminMapper.selectByPrimaryKey(t.getSalesmanId());
|
|
|
- mobile=ad.getContactMobile();
|
|
|
+ Matcher s1 = p.matcher(ad.getContactMobile());
|
|
|
+ if (s1.matches()) {
|
|
|
+ mobile=ad.getContactMobile();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- String regex = "^(1[1-9][0-9])\\d{8}$";
|
|
|
- Pattern p = Pattern.compile(regex);
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
if (null!=a&&null!=a.getContactMobile()) {
|
|
|
Matcher m = p.matcher(a.getContactMobile());
|
|
|
if ( m.matches()) {
|