Commit fbc267e0 authored by Quxl's avatar Quxl

x

parent e2fd00ce
...@@ -34,6 +34,7 @@ public class QiyeWxMsgTask { ...@@ -34,6 +34,7 @@ public class QiyeWxMsgTask {
@Scheduled(cron="${qiyewx.msg.timer}") @Scheduled(cron="${qiyewx.msg.timer}")
public void execute() { public void execute() {
List<Map<String, Object>> list = jdbcTemplate.queryForList("select nID, sSMS from tSMS where sSendType = '2' and sChannelID = 'qywx' and sSendGroup = '6'"); List<Map<String, Object>> list = jdbcTemplate.queryForList("select nID, sSMS from tSMS where sSendType = '2' and sChannelID = 'qywx' and sSendGroup = '6'");
if(list.size() > 0) {
List<String> ids = list.stream().map(o -> (String)o.get("sSMS")).collect(Collectors.toList()); List<String> ids = list.stream().map(o -> (String)o.get("sSMS")).collect(Collectors.toList());
List<Map<String, Object>> subOrderList = jdbcTemplate.queryForList("select * from tSalesOrderSub where sSubOrderID in (" + StringUtil.join("', '", "'", "'", "''", ids) + ")"); List<Map<String, Object>> subOrderList = jdbcTemplate.queryForList("select * from tSalesOrderSub where sSubOrderID in (" + StringUtil.join("', '", "'", "'", "''", ids) + ")");
Map<String, Map<String, Object>> mm = Util.listToMM(list, "sSMS"); Map<String, Map<String, Object>> mm = Util.listToMM(list, "sSMS");
...@@ -48,6 +49,7 @@ public class QiyeWxMsgTask { ...@@ -48,6 +49,7 @@ public class QiyeWxMsgTask {
} }
} }
} }
}
private void sendMessage(Map<String, Object> subOrderMap) { private void sendMessage(Map<String, Object> subOrderMap) {
String sSubOrderID = (String)subOrderMap.get("sSubOrderID"); String sSubOrderID = (String)subOrderMap.get("sSubOrderID");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment