|  | @ -224,9 +224,9 @@ public class WechatService {
 | 
	
		
			
				|  |  |     //====================图文素材管理============================
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public MixEnvelop findWechatCombo(String saasId){
 | 
	
		
			
				|  |  |         String sql ="SELECT t.id,t.`name`," +
 | 
	
		
			
				|  |  |                 "t.app_origin_id AS appOriginId," +
 | 
	
		
			
				|  |  |                 "t.public_type AS publicType " +
 | 
	
		
			
				|  |  |         String sql ="SELECT t.id AS \"id\",t.name as \"name\"," +
 | 
	
		
			
				|  |  |                 "t.app_origin_id AS \"appOriginId\"," +
 | 
	
		
			
				|  |  |                 "t.public_type AS \"publicType\" " +
 | 
	
		
			
				|  |  |                 "from wx_wechat t";
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(saasId)){
 | 
	
		
			
				|  |  |             sql += " JOIN wx_wechat_saas s ON s.wechat_id = t.id " +
 | 
	
	
		
			
				|  | @ -252,7 +252,7 @@ public class WechatService {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String sql = "SELECT " +
 | 
	
		
			
				|  |  |                 " g.id,g.wechat_id AS wechatId,g.scene " +
 | 
	
		
			
				|  |  |                 " g.id as \"id\",g.wechat_id AS \"wechatId\",g.scene AS \"scene\" " +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " wx_graphic_scene g " +
 | 
	
		
			
				|  |  |                 " WHERE " +
 | 
	
	
		
			
				|  | @ -325,7 +325,7 @@ public class WechatService {
 | 
	
		
			
				|  |  |     public MixEnvelop findImg(String wechatId,String title,String scene,Integer page,Integer size){
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String sqlTotal = "SELECT " +
 | 
	
		
			
				|  |  |                 " COUNT(1) AS total " +
 | 
	
		
			
				|  |  |                 " COUNT(1) AS \"total\" " +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " wx_graphic_message m ";
 | 
	
		
			
				|  |  |                 if(StringUtils.isNotBlank(scene)){
 | 
	
	
		
			
				|  | @ -347,13 +347,13 @@ public class WechatService {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String sql = "SELECT " +
 | 
	
		
			
				|  |  |                 " m.id, " +
 | 
	
		
			
				|  |  |                 " m.wechat_id AS wechatId, " +
 | 
	
		
			
				|  |  |                 " m.title, " +
 | 
	
		
			
				|  |  |                 " m.description, " +
 | 
	
		
			
				|  |  |                 " m.url, " +
 | 
	
		
			
				|  |  |                 " m.pic_url AS picUrl, " +
 | 
	
		
			
				|  |  |                 " m.`status` " +
 | 
	
		
			
				|  |  |                 " m.id as \"id\", " +
 | 
	
		
			
				|  |  |                 " m.wechat_id AS \"wechatId\", " +
 | 
	
		
			
				|  |  |                 " m.title as \"title\", " +
 | 
	
		
			
				|  |  |                 " m.description \"description\", " +
 | 
	
		
			
				|  |  |                 " m.url as \"url\", " +
 | 
	
		
			
				|  |  |                 " m.pic_url AS \"picUrl\", " +
 | 
	
		
			
				|  |  |                 " m.status AS \"status\" " +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " wx_graphic_message m ";
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(scene)){
 | 
	
	
		
			
				|  | @ -460,7 +460,7 @@ public class WechatService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public MixEnvelop findWxReplyScene(String wechatId,String msgType,String event,String content,Integer status,Integer page,Integer size){
 | 
	
		
			
				|  |  |         String totalSql = "SELECT " +
 | 
	
		
			
				|  |  |                 " COUNT(1) AS total " +
 | 
	
		
			
				|  |  |                 " COUNT(1) AS \"total\" " +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " wx_reply_scene s " +
 | 
	
		
			
				|  |  |                 " WHERE " +
 | 
	
	
		
			
				|  | @ -485,15 +485,15 @@ public class WechatService {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String sql = "SELECT " +
 | 
	
		
			
				|  |  |                 " s.id," +
 | 
	
		
			
				|  |  |                 " s.wechat_id AS wechatId," +
 | 
	
		
			
				|  |  |                 " s.scene, " +
 | 
	
		
			
				|  |  |                 " s.`status`, " +
 | 
	
		
			
				|  |  |                 " s.id, " +
 | 
	
		
			
				|  |  |                 " s.content, " +
 | 
	
		
			
				|  |  |                 " s.app_origin_id AS appOriginId, " +
 | 
	
		
			
				|  |  |                 " s.`event`, " +
 | 
	
		
			
				|  |  |                 " s.msg_type AS msgType" +
 | 
	
		
			
				|  |  |                 " s.id AS \"id\"," +
 | 
	
		
			
				|  |  |                 " s.wechat_id AS \"wechatId\"," +
 | 
	
		
			
				|  |  |                 " s.scene AS \"scene\", " +
 | 
	
		
			
				|  |  |                 " s.status as \"status\", " +
 | 
	
		
			
				|  |  |                 " s.id as \"id\", " +
 | 
	
		
			
				|  |  |                 " s.content as \"content\", " +
 | 
	
		
			
				|  |  |                 " s.app_origin_id AS \"appOriginId\", " +
 | 
	
		
			
				|  |  |                 " s.event as \"event\", " +
 | 
	
		
			
				|  |  |                 " s.msg_type AS \"msgType\"" +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " wx_reply_scene s " +
 | 
	
		
			
				|  |  |                 " WHERE " +
 | 
	
	
		
			
				|  | @ -560,7 +560,7 @@ public class WechatService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public MixEnvelop findWxtemp(String wechatId,Integer status,String name,String key,Integer page,Integer size){
 | 
	
		
			
				|  |  |         String totalSql = "SELECT " +
 | 
	
		
			
				|  |  |                 " COUNT(1) AS total " +
 | 
	
		
			
				|  |  |                 " COUNT(1) AS \"total\" " +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " wx_template t" +
 | 
	
		
			
				|  |  |                 " WHERE t.wechat_id= '"+wechatId+"' ";
 | 
	
	
		
			
				|  | @ -580,13 +580,13 @@ public class WechatService {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String sql = "SELECT " +
 | 
	
		
			
				|  |  |                 " t.id, " +
 | 
	
		
			
				|  |  |                 " t.title, " +
 | 
	
		
			
				|  |  |                 " t.wechat_id AS wechatId, " +
 | 
	
		
			
				|  |  |                 " t.template_id AS templateId, " +
 | 
	
		
			
				|  |  |                 " t.template_name AS templateName, " +
 | 
	
		
			
				|  |  |                 " t.content, " +
 | 
	
		
			
				|  |  |                 " t.`status` " +
 | 
	
		
			
				|  |  |                 " t.id as \"id\", " +
 | 
	
		
			
				|  |  |                 " t.title AS \"title\", " +
 | 
	
		
			
				|  |  |                 " t.wechat_id AS \"wechatId\", " +
 | 
	
		
			
				|  |  |                 " t.template_id AS \"templateId\", " +
 | 
	
		
			
				|  |  |                 " t.template_name AS \"templateName\", " +
 | 
	
		
			
				|  |  |                 " t.content as \"content\", " +
 | 
	
		
			
				|  |  |                 " t.status as \"status\" " +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " wx_template t" +
 | 
	
		
			
				|  |  |                 " WHERE t.wechat_id= '"+wechatId+"' ";
 | 
	
	
		
			
				|  | @ -621,7 +621,7 @@ public class WechatService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public MixEnvelop findWxTempConfigList(String wechatId,String templateId,String scene,Integer page,Integer size){
 | 
	
		
			
				|  |  |         String totalSql ="SELECT " +
 | 
	
		
			
				|  |  |                 " COUNT(1) AS total " +
 | 
	
		
			
				|  |  |                 " COUNT(1) AS \"total\" " +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " wx_template_config g " +
 | 
	
		
			
				|  |  |                 " WHERE " +
 | 
	
	
		
			
				|  | @ -639,29 +639,29 @@ public class WechatService {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String sql ="SELECT " +
 | 
	
		
			
				|  |  |                 " g.id, " +
 | 
	
		
			
				|  |  |                 " g.wechat_id AS wechatId, " +
 | 
	
		
			
				|  |  |                 " g.template_id AS templateId, " +
 | 
	
		
			
				|  |  |                 " g.template_name AS template_name, " +
 | 
	
		
			
				|  |  |                 " g.scene, " +
 | 
	
		
			
				|  |  |                 " g.scene_description AS sceneDescription, " +
 | 
	
		
			
				|  |  |                 " g.`first`, " +
 | 
	
		
			
				|  |  |                 " g.url, " +
 | 
	
		
			
				|  |  |                 " g.remark, " +
 | 
	
		
			
				|  |  |                 " g.keyword1, " +
 | 
	
		
			
				|  |  |                 " g.keyword2, " +
 | 
	
		
			
				|  |  |                 " g.keyword3, " +
 | 
	
		
			
				|  |  |                 " g.keyword4, " +
 | 
	
		
			
				|  |  |                 " g.keyword5, " +
 | 
	
		
			
				|  |  |                 " g.keyword6, " +
 | 
	
		
			
				|  |  |                 " g.keyword7, " +
 | 
	
		
			
				|  |  |                 " g.create_time AS createTime, " +
 | 
	
		
			
				|  |  |                 " g.create_user AS createUser, " +
 | 
	
		
			
				|  |  |                 " g.create_user_name AS createUserName, " +
 | 
	
		
			
				|  |  |                 " g.update_time AS updateTime, " +
 | 
	
		
			
				|  |  |                 " g.update_user AS updateUser, " +
 | 
	
		
			
				|  |  |                 " g.update_user_name AS updateUserName, " +
 | 
	
		
			
				|  |  |                 " g.status " +
 | 
	
		
			
				|  |  |                 " g.id as \"id\", " +
 | 
	
		
			
				|  |  |                 " g.wechat_id AS \"wechatId\", " +
 | 
	
		
			
				|  |  |                 " g.template_id AS \"templateId\", " +
 | 
	
		
			
				|  |  |                 " g.template_name AS \"template_name\", " +
 | 
	
		
			
				|  |  |                 " g.scene AS \"scene\", " +
 | 
	
		
			
				|  |  |                 " g.scene_description AS \"sceneDescription\", " +
 | 
	
		
			
				|  |  |                 " g.first AS \"first\", " +
 | 
	
		
			
				|  |  |                 " g.url AS \"url\", " +
 | 
	
		
			
				|  |  |                 " g.remark AS \"remark\", " +
 | 
	
		
			
				|  |  |                 " g.keyword1 AS \"keyword1\", " +
 | 
	
		
			
				|  |  |                 " g.keyword2 AS \"keyword2\", " +
 | 
	
		
			
				|  |  |                 " g.keyword3 AS \"keyword3\", " +
 | 
	
		
			
				|  |  |                 " g.keyword4 AS \"keyword4\", " +
 | 
	
		
			
				|  |  |                 " g.keyword5 AS \"keyword5\", " +
 | 
	
		
			
				|  |  |                 " g.keyword6 AS \"keyword6\", " +
 | 
	
		
			
				|  |  |                 " g.keyword7 AS \"keyword7\", " +
 | 
	
		
			
				|  |  |                 " g.create_time AS \"createTime\", " +
 | 
	
		
			
				|  |  |                 " g.create_user AS \"createUser\", " +
 | 
	
		
			
				|  |  |                 " g.create_user_name AS \"createUserName\", " +
 | 
	
		
			
				|  |  |                 " g.update_time AS \"updateTime\", " +
 | 
	
		
			
				|  |  |                 " g.update_user AS \"updateUser\", " +
 | 
	
		
			
				|  |  |                 " g.update_user_name AS \"updateUserName\", " +
 | 
	
		
			
				|  |  |                 " g.status AS \"status\"" +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " wx_template_config g " +
 | 
	
		
			
				|  |  |                 " WHERE " +
 |