Explorar el Código

fix:修改渠道类型BugFix

zack hace 1 mes
padre
commit
06a4d2d42c

+ 1 - 1
yt-agent/agent-service/src/main/java/com/ytpm/controller/AgentDitchController.java

@@ -61,7 +61,7 @@ public class AgentDitchController {
     @PostMapping("/updateOne")
     public Result<?> updateOne(@RequestBody AgentDitchParam param){
         YtDitch ytDitch = new YtDitch();
-        ytDitch.setAppType(param.getAppType());
+        ytDitch.setAppType(param.getDitchType());
         ytDitch.setDitchName(param.getDitchName());
         ytDitch.setDitchId(param.getDitchId());
         return agentDitchService.updateOne(ytDitch);

+ 3 - 0
yt-agent/agent-service/src/main/resources/mapper/AgentDitchMapper.xml

@@ -30,6 +30,9 @@
             <if test="ditchName !=null">
                 ditch_name = #{ditchName},
             </if>
+            <if test="appType  !=null">
+                app_type = #{appType},
+            </if>
             <if test="isDelete !=null">
                 is_delete = #{isDelete}
             </if>