src/main/resources/mapper/CstmrMapper.xml
@@ -113,4 +113,13 @@ update man_cstmr set dept_id = #{deptId} where user_id = #{userId} </update> <select id="selectByName" resultMap="BaseResultMap"> select * from man_cstmr where 1=1 and name = #{name} <if test="hostId != null"> and host_id = #{hostId} </if> </select> </mapper>