Browse Source

app接口修改

wang_xy 2 years ago
parent
commit
45b534835d

+ 1 - 1
src/main/java/com/jeeplus/modules/leader/org/mapper/xml/LeaderOrgNoMapper.xml

@@ -209,7 +209,7 @@
     </select>
 
 	<select id="getChildrenByType" parameterType="Map" resultMap="leaderOrgResult">
-		select * from leader_org_no a where del_flag = 0  AND ( party_org_type = '1'  or parent_id = '0')
+		select * from leader_org_no a where del_flag = 0  AND parent_id = #{id} and ( party_org_type = '1'  or parent_id = '0')
 		<if test="type != null and type != ''">
 			AND a.type = #{type}
 		</if>

+ 3 - 3
src/main/java/com/jeeplus/modules/leader/org/web/LeaderOrgNoController.java

@@ -197,15 +197,15 @@ public class LeaderOrgNoController extends BaseController {
     @RequestMapping(value = "getService", method = RequestMethod.POST)
     public Map<String, Object> getService( @ApiParam(name = "name", value = "名称", required = true) @RequestParam String name) {
         Map<String, Object> result = new HashMap<>();
-       /* try {
-            List<DictValue> list = DictUtils.getServiceDictList("org_no_service",name);
+        try {
+            List<DictValue> list = DictUtils.getServiceDictList("org_no_service");
             result.put("success", true);
             result.put("rows", list);
         } catch (Exception e) {
             e.printStackTrace();
             result.put("success", false);
             result.put("rows", Arrays.asList());
-        }*/
+        }
         return result;
     }