Forráskód Böngészése

1.新增根据appId和InsCode查询科室

zjh 2 éve
szülő
commit
b32993ad81

BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/controller/sysApp/SysDepartmentController.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/mapper/sysApp/SysDepartmentMapper.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/service/sysApp/SysDepartmentService.java


+ 13 - 0
cbkj_web_parameter/src/main/resources/mappers/sysApp/SysDepartmentMapper.xml

@@ -164,5 +164,18 @@
           and dept_parent_id = #{depParentId}
     </select>
 
+    <select id="queryByAppIdInsCode" resultType="java.util.Map" parameterType="SysDepartment">
+        select
+        dept_name as name,
+        dept_id as id
+        from sys_department where 1=1
+        <if test="appId != null and appId != ''">
+            and app_id=#{appId}
+        </if>
+        <if test="insCode != null and insCode != ''">
+            and ins_code=#{insCode}
+        </if>
+    </select>
+
 
 </mapper>