|
@@ -33,17 +33,11 @@ public interface MzZdInstructionCodeMapper {
|
|
|
"<when test='mzZdInstructionCode.code!=null'>",
|
|
|
" and code = #{mzZdInstructionCode.code}",
|
|
|
"</when>",
|
|
|
- "<when test='mzZdInstructionCode.instructionText!=null'>",
|
|
|
- " and instruction_text like '%${mzZdInstructionCode.instructionText}%'",
|
|
|
- "</when>",
|
|
|
"<when test='mzZdInstructionCode.delFlag!=null'>",
|
|
|
" and del_flag = #{mzZdInstructionCode.delFlag}",
|
|
|
"</when>",
|
|
|
- "<when test='mzZdInstructionCode.pyCode!=null'>",
|
|
|
- " and py_code = #{mzZdInstructionCode.pyCode}",
|
|
|
- "</when>",
|
|
|
- "<when test='mzZdInstructionCode.wbCode!=null'>",
|
|
|
- " and d_code = #{mzZdInstructionCode.wbCode}",
|
|
|
+ "<when test='searchText!=null'>",
|
|
|
+ " and (py_code like '${searchText}%' or d_code like '${searchText}%' or instruction_text like '%${searchText}%')",
|
|
|
"</when>",
|
|
|
"<when test='mzZdInstructionCode.instructionType!=null'>",
|
|
|
" and instruction_type = #{mzZdInstructionCode.instructionType}",
|
|
@@ -56,31 +50,25 @@ public interface MzZdInstructionCodeMapper {
|
|
|
/**
|
|
|
* 统计嘱托数量
|
|
|
*
|
|
|
- * @param mzZdInstructionCode 嘱托查询条件
|
|
|
+ * @param mzZdInstructionCodePageDto 嘱托查询条件
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>",
|
|
|
"select count(1) from mz_zd_instruction_code where 1=1 ",
|
|
|
- "<when test='code!=null'>",
|
|
|
- " and code = #{code}",
|
|
|
- "</when>",
|
|
|
- "<when test='instructionText!=null'>",
|
|
|
- " and instruction_text like '%${instructionText}%'",
|
|
|
- "</when>",
|
|
|
- "<when test='delFlag!=null'>",
|
|
|
- " and del_flag = #{delFlag}",
|
|
|
+ "<when test='mzZdInstructionCode.code!=null'>",
|
|
|
+ " and code = #{mzZdInstructionCode.code}",
|
|
|
"</when>",
|
|
|
- "<when test='pyCode!=null'>",
|
|
|
- " and py_code = #{pyCode}",
|
|
|
+ "<when test='mzZdInstructionCode.delFlag!=null'>",
|
|
|
+ " and del_flag = #{mzZdInstructionCode.delFlag}",
|
|
|
"</when>",
|
|
|
- "<when test='wbCode!=null'>",
|
|
|
- " and d_code = #{wbCode}",
|
|
|
+ "<when test='mzZdInstructionCode.pyCode!=null'>",
|
|
|
+ " and (py_code like '${searchText}%' or d_code like '${searchText}%' or instruction_text like '%${searchText}%')",
|
|
|
"</when>",
|
|
|
- "<when test='instructionType!=null'>",
|
|
|
- " and instruction_type = #{instructionType}",
|
|
|
+ "<when test='mzZdInstructionCode.instructionType!=null'>",
|
|
|
+ " and instruction_type = #{mzZdInstructionCode.instructionType}",
|
|
|
"</when>",
|
|
|
"</script>"})
|
|
|
- int selectMzZdInstructionCount(MzZdInstructionCode mzZdInstructionCode);
|
|
|
+ int selectMzZdInstructionCount(MzZdInstructionCodePageDto mzZdInstructionCodePageDto);
|
|
|
|
|
|
/**
|
|
|
* 修改嘱托
|