From 5698783410b463ac5a228fc37eb516a6d13fa047 Mon Sep 17 00:00:00 2001
From: jiaosong <jiaosong6760@dingtalk.com>
Date: 星期一, 14 八月 2023 15:24:50 +0800
Subject: [PATCH] # 工资表配置表 工资单价数据代码合并
---
server/src/main/resources/mappers/SalaryParamMapper.xml | 23 +++++++++++++++++++++++
1 files changed, 23 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..a91bf95
--- /dev/null
+++ b/server/src/main/resources/mappers/SalaryParamMapper.xml
@@ -0,0 +1,23 @@
+<?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.model.SalaryParam">
+ SELECT
+ sp.*,
+ m.`NAME` as materialName,
+ p.`NAME` as proceduresName
+ from
+ salary_param sp
+ LEFT JOIN procedures p on p.ID = sp.PROCEDURE_ID
+ LEFT JOIN material m on m.ID = bom.MATERIAL_ID
+ <where>
+ <if test="keyWord != null and keyWord != ''">
+ p`NAME` like concat('%',#{keyWord},'%')
+ or p.`CODE` = #{keyWord}</if>
+ <if test="procedureName != null and procedureName = ''"> and p.`NAME` like concat('%',#{procedureName},'%')</if>
+ <if test="type != null"> and sp.`TYPE` = #{type}</if>
+ </where>
+ </select>
+</mapper>
--
Gitblit v1.9.3