|
@@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
+import com.goafanti.common.constant.AFTConstants;
|
|
|
import com.goafanti.common.dao.AdminMapper;
|
|
import com.goafanti.common.dao.AdminMapper;
|
|
|
import com.goafanti.common.dao.JtMessageConsumerMapper;
|
|
import com.goafanti.common.dao.JtMessageConsumerMapper;
|
|
|
import com.goafanti.common.dao.JtMessageProducerMapper;
|
|
import com.goafanti.common.dao.JtMessageProducerMapper;
|
|
@@ -133,7 +134,7 @@ public class JtMessageProducerServiceImpl extends BaseMybatisDao<JtMessageProdu
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public int MobileMessage(String messageCode) {
|
|
|
|
|
|
|
+ public int saveMobileMessage(String messageCode) {
|
|
|
String regex = "^(1[1-9][0-9])\\d{8}$";
|
|
String regex = "^(1[1-9][0-9])\\d{8}$";
|
|
|
Pattern p = Pattern.compile(regex);
|
|
Pattern p = Pattern.compile(regex);
|
|
|
List<String> mobileList=userMapper.getUserListMobile();
|
|
List<String> mobileList=userMapper.getUserListMobile();
|
|
@@ -150,6 +151,8 @@ public class JtMessageProducerServiceImpl extends BaseMybatisDao<JtMessageProdu
|
|
|
MobileMessageUtils.sendMessage(messageCode, null, mobile, accessKey, accessSecret);
|
|
MobileMessageUtils.sendMessage(messageCode, null, mobile, accessKey, accessSecret);
|
|
|
JtMessageProducer producer=new JtMessageProducer();
|
|
JtMessageProducer producer=new JtMessageProducer();
|
|
|
producer.setId(UUID.randomUUID().toString());
|
|
producer.setId(UUID.randomUUID().toString());
|
|
|
|
|
+ producer.setCreater(AFTConstants.DEFAULT_INITIATOR);
|
|
|
|
|
+ producer.setTitle("");
|
|
|
producer.setSubject(2);
|
|
producer.setSubject(2);
|
|
|
producer.setIsSend(true);
|
|
producer.setIsSend(true);
|
|
|
producer.setIsDraft(false);
|
|
producer.setIsDraft(false);
|