hidewnd 1 місяць тому
батько
коміт
fe5a61ed48

+ 2 - 2
yt-agent/agent-service/src/main/resources/mapper/AppMapper.xml

@@ -202,13 +202,13 @@
         select
             app_id, app_key, app_name, user_id, app_type, apk_url, qr_code, version_code, update_tips, enabled, store_on_sale, store_type, store_url, package_name, domain, category, sub_category, coppa, screen_orientation, ccpa, feign_path, ditch_id, ditch_name, superior_id
         from yt_app
-        where superior_id = #{superiorId} and ditch_id = #{ditchId}
+        where superior_id = #{superiorId} and ditch_id = #{ditchId} and enabled = 1
     </select>
     <select id="getBySuperiorId" resultType="com.ytpm.agent.model.YtApp">
         select
             app_id, app_key, app_name, user_id, app_type, apk_url, qr_code, version_code, update_tips, enabled, store_on_sale, store_type, store_url, package_name, domain, category, sub_category, coppa, screen_orientation, ccpa, feign_path, ditch_id, ditch_name, superior_id
         from yt_app
-        where superior_id = #{superiorId}
+        where superior_id = #{superiorId} and enabled = 1
     </select>
     <select id="getByAppName" resultType="com.ytpm.agent.model.YtApp">
         select

+ 2 - 1
yt-question/yt-question-feign/src/main/java/com/ytpm/question/base/BaseFeign.java

@@ -21,6 +21,7 @@ import com.ytpm.general.ResultTable;
 import com.ytpm.middle.view.DashboardRankingListVO;
 import com.ytpm.middle.view.DashboardRevenueVO;
 import com.ytpm.middle.view.DashboardRiskVO;
+import org.springframework.web.bind.annotation.DeleteMapping;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -120,7 +121,7 @@ public interface BaseFeign {
     @PostMapping("/user/getRevenueByTime")
     BigDecimal getRevenueByTime(@RequestBody YtAppUserListParam param);
 
-    @PostMapping("/wx/delDefaultConfig")
+    @GetMapping("/wx/delDefaultConfig")
     void delAppConfig(@RequestParam("appId") String appId);
 
     @PostMapping("/user/unLockUser")