ソースを参照

application push channel

sunmingan 4 年 前
コミット
21187f9fc2

+ 4 - 3
UI/src/pages/sellmanage/appManagement.js

@@ -141,7 +141,7 @@ class AddminiFans extends Component {
     request({
       url: WXMpAPI + "/wx/application/save",
       method: "post",
-      data: daval
+      data: dto
     }).then(function(result) {
       if (result.success === 1) {
         message.success("操作成功!");
@@ -390,7 +390,8 @@ class AddminiFans extends Component {
 
                         tempList.splice(1,tempList.length);
                         for(var i in result){
-                          tempList.push(result[i]);
+                         tempList.push(result[i]);
+                          // tempList.push({label:'企业微信',value: 1});
                         }
 
                         self.setState((prevState) =>{
@@ -405,7 +406,7 @@ class AddminiFans extends Component {
                     }},source:{multi:false,data:[
                     {label:'企业微信',value:'1'},
                     {label:'公众号',value:'0'},
-                    {label:'小程序',value:'2'},
+                    {label:'小程序',value:'2'}
                   ]}
                   },
                   { title: "发布端口", data: "portId", type: "dropdown", query: false, source: { 

+ 1 - 1
mpwechatApp/src/main/java/com/liangjian11/wx/mp/controller/channelport/ChannelPortController.java

@@ -89,7 +89,7 @@ public class ChannelPortController {
      * @return
      */
     @GetMapping("/getAllName")
-    public List<Map<String,Object>> getAllName(@Param("type") String type){
+    public List<Map<String,String>> getAllName(@Param("type") String type){
 
         return portService.selectAllPortName(type);
     }

+ 2 - 2
mpwechatApp/src/main/java/com/liangjian11/wx/mp/mapper/ChannelPortMapper.java

@@ -98,7 +98,7 @@ public interface ChannelPortMapper extends BaseMapper<ChannelPort> {
      * 查询返回所有的端口
      * @return
      */
-    @Select("select id as 'value',portName as label from channel_port where state = '0' and type = #{type}")
-    List<Map<String,Object>> selectAllPort(@Param("type")String type);
+    @Select("select convert(varchar,id) as 'value',portName as label from channel_port where state = '0' and type = #{type}")
+    List<Map<String,String>> selectAllPort(@Param("type")String type);
 
 }

+ 1 - 1
mpwechatApp/src/main/java/com/liangjian11/wx/mp/service/ChannelPortService.java

@@ -40,5 +40,5 @@ public interface ChannelPortService {
      * 查询所有的端口名称 只有id 和名称
      * @return
      */
-    List<Map<String,Object>> selectAllPortName(String type);
+    List<Map<String,String>> selectAllPortName(String type);
 }

+ 1 - 1
mpwechatApp/src/main/java/com/liangjian11/wx/mp/service/impl/ChannelPortServiceImpl.java

@@ -104,7 +104,7 @@ public class ChannelPortServiceImpl implements ChannelPortService {
     }
 
     @Override
-    public List<Map<String, Object>> selectAllPortName(String type) {
+    public List<Map<String, String>> selectAllPortName(String type) {
         return portMapper.selectAllPort(type);
     }
 }