Browse Source

任务转交不提示营销员BUG修复

anderx 7 years ago
parent
commit
1da2cdc7d7

+ 1 - 0
src/main/java/com/goafanti/common/mapper/TOrderMapper.xml

@@ -1231,6 +1231,7 @@
 			a.buyer_id as buyerId,
 			a.seller_id as sellerId,
 			a.buyer_id as buyerId,
+			a.salesman_id as salesmanId,
 			b.type as buyerType,
 			b.nickname as buyerName,
 			c.name as salesmanName,

+ 8 - 7
src/main/java/com/goafanti/techproject/service/impl/TechProjectServiceImpl.java

@@ -449,6 +449,7 @@ public class TechProjectServiceImpl extends BaseMybatisDao<TechProjectMapper> im
 		String mobile = "";
 		if (null!=tb&&tb.getOrderNo()!=null) {
 			ServiceOrderDetailBo t=tOrderMapper.selectServiceOrderDetail(tb.getOrderNo());
+			System.out.println(t.getSalesmanId());
 			if (null!=t&&t.getSalesmanId()!=null) {
 				ad=adminMapper.selectByPrimaryKey(t.getSalesmanId());
 				Matcher s1 = p.matcher(ad.getContactMobile());
@@ -461,15 +462,15 @@ public class TechProjectServiceImpl extends BaseMybatisDao<TechProjectMapper> im
 			Matcher m = p.matcher(a.getContactMobile());
 			if ( m.matches()) {
 			mobile=mobile+","+a.getContactMobile();
-			String paramString = "{\"number\":\"" + tb.getOrderNo() 
-			+ "\",\"operator\":\"" + TokenManager.getAdminToken().getName()
-			+ "\",\"time\":\"" +   sdf.format(new Date())
-			+ "\",\"name\":\"" +  tb.getBuyerName()
-			+ "\",\"type\":\"" +  OrderFlowState.RWPD.getDesc() +
-			"\"}";
-			MobileMessageUtils.sendMessage(mobileRemindCodeTemplate, paramString, mobile, accessKey, accessSecret);
 				}
 			}
+		String paramString = "{\"number\":\"" + tb.getOrderNo() 
+		+ "\",\"operator\":\"" + TokenManager.getAdminToken().getName()
+		+ "\",\"time\":\"" +   sdf.format(new Date())
+		+ "\",\"name\":\"" +  tb.getBuyerName()
+		+ "\",\"type\":\"" +  OrderFlowState.RWPD.getDesc() +
+		"\"}";
+		MobileMessageUtils.sendMessage(mobileRemindCodeTemplate, paramString, mobile, accessKey, accessSecret);
 		return contractTaskMapper.updateByPrimaryKeySelective(task);
 	}