From 5f5f07db32be63e6112ddff7722c1ada10472da5 Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期一, 14 八月 2023 18:43:41 +0800
Subject: [PATCH] Merge branch 'master' of ssh://139.186.142.91:29418/productDev/dmMes

---
 server/src/main/resources/mappers/SalaryParamMapper.xml |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/server/src/main/resources/mappers/SalaryParamMapper.xml b/server/src/main/resources/mappers/SalaryParamMapper.xml
new file mode 100644
index 0000000..45c8024
--- /dev/null
+++ b/server/src/main/resources/mappers/SalaryParamMapper.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="doumeemes.dao.business.SalaryParamMapper">
+
+
+    <select id="selectPage" resultType="doumeemes.dao.business.vo.SalaryParamVO">
+        SELECT
+            sp.*,
+            m.`NAME` as materialName,
+            m.`CODE` as materialCode,
+            p.`NAME` as procedureName,
+            su.REALNAME as createUserName
+        from
+            salary_param sp
+        LEFT JOIN procedures p on p.ID = sp.PROCEDURE_ID
+        LEFT JOIN material m on m.ID = sp.MATERIAL_ID
+        LEFT JOIN `system_user` su  on su.ID = sp.CREATE_USER
+        where
+        sp.DELETED = 0
+        <if test="model.keyWord != null and model.keyWord != ''">
+           ( and  p`NAME` like concat('%',#{model.keyWord},'%')
+            or   p.`CODE` = #{model.keyWord})</if>
+        <if test="model.procedureName != null and model.procedureName != ''"> and p.`NAME` like concat('%',#{model.procedureName},'%')</if>
+        <if test="model.type != null"> and sp.`TYPE` = #{model.type}</if>
+    </select>
+</mapper>

--
Gitblit v1.9.3