姜永辉 2 years ago
parent
commit
18b9b69df6

+ 1 - 1
src/main/java/com/dk/mdm/controller/core/StaffController.java

@@ -50,7 +50,7 @@ public class StaffController {
      */
      */
     @PostMapping({"/{id}"})
     @PostMapping({"/{id}"})
     public ResponseResultVO selectById(@PathVariable String id) {
     public ResponseResultVO selectById(@PathVariable String id) {
-        return staffService.selectByStringId(id);
+        return staffService.selectById(id);
     }
     }
 
 
 
 

+ 1 - 1
src/main/java/com/dk/mdm/mapper/core/StaffMapper.xml

@@ -111,7 +111,7 @@
     </select>
     </select>
 
 
     <!--员工-->
     <!--员工-->
-    <select id="selectByStringId" resultType="com.dk.mdm.model.response.core.StaffResponse">
+    <select id="selectByStringId" resultMap="BaseResultMap">
         select <include refid="Base_Column_List"/>
         select <include refid="Base_Column_List"/>
         from dkic_b.t_mst_staff t
         from dkic_b.t_mst_staff t
         where  t.staff_id = #{staffId,typeHandler=UuidTypeHandler}
         where  t.staff_id = #{staffId,typeHandler=UuidTypeHandler}