|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="Salary" id="SalaryResult">
|
|
<resultMap type="Salary" id="SalaryResult">
|
|
|
<result property="salaryId" column="salaryId" />
|
|
<result property="salaryId" column="salaryId" />
|
|
|
<result property="userId" column="user_id" />
|
|
<result property="userId" column="user_id" />
|
|
|
|
|
+ <result property="salaryType" column="salaryType" />
|
|
|
<result property="salaryDate" column="salaryDate" />
|
|
<result property="salaryDate" column="salaryDate" />
|
|
|
<result property="sumAmount" column="sumAmount" />
|
|
<result property="sumAmount" column="sumAmount" />
|
|
|
<result property="delFlag" column="delFlag" />
|
|
<result property="delFlag" column="delFlag" />
|
|
@@ -35,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectSalaryVo">
|
|
<sql id="selectSalaryVo">
|
|
|
- select salaryId, user_id, salaryDate, sumAmount, delFlag, remark, create_by, create_time, update_by, update_time from t_salary
|
|
|
|
|
|
|
+ select salaryId, user_id, salaryType, salaryDate, sumAmount, delFlag, remark, create_by, create_time, update_by, update_time from t_salary
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectSalaryList" parameterType="Salary" resultMap="SalaryResult">
|
|
<select id="selectSalaryList" parameterType="Salary" resultMap="SalaryResult">
|
|
@@ -47,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectSalaryBySalaryId" parameterType="Long" resultMap="SalarySalaryDetailResult">
|
|
<select id="selectSalaryBySalaryId" parameterType="Long" resultMap="SalarySalaryDetailResult">
|
|
|
- select salaryId, user_id, salaryDate, sumAmount, delFlag, remark, create_by, create_time, update_by, update_time
|
|
|
|
|
|
|
+ select salaryId, user_id, salaryType, salaryDate, sumAmount, delFlag, remark, create_by, create_time, update_by, update_time
|
|
|
from t_salary
|
|
from t_salary
|
|
|
where salaryId = #{salaryId}
|
|
where salaryId = #{salaryId}
|
|
|
</select>
|
|
</select>
|
|
@@ -62,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into t_salary
|
|
insert into t_salary
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">user_id,</if>
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
|
+ <if test="salaryType != null">salaryType,</if>
|
|
|
<if test="salaryDate != null">salaryDate,</if>
|
|
<if test="salaryDate != null">salaryDate,</if>
|
|
|
<if test="sumAmount != null">sumAmount,</if>
|
|
<if test="sumAmount != null">sumAmount,</if>
|
|
|
<if test="delFlag != null">delFlag,</if>
|
|
<if test="delFlag != null">delFlag,</if>
|
|
@@ -73,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
|
+ <if test="salaryType != null">#{salaryType},</if>
|
|
|
<if test="salaryDate != null">#{salaryDate},</if>
|
|
<if test="salaryDate != null">#{salaryDate},</if>
|
|
|
<if test="sumAmount != null">#{sumAmount},</if>
|
|
<if test="sumAmount != null">#{sumAmount},</if>
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
@@ -88,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update t_salary
|
|
update t_salary
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
|
|
+ <if test="salaryType != null">salaryType = #{salaryType},</if>
|
|
|
<if test="salaryDate != null">salaryDate = #{salaryDate},</if>
|
|
<if test="salaryDate != null">salaryDate = #{salaryDate},</if>
|
|
|
<if test="sumAmount != null">sumAmount = #{sumAmount},</if>
|
|
<if test="sumAmount != null">sumAmount = #{sumAmount},</if>
|
|
|
<if test="delFlag != null">delFlag = #{delFlag},</if>
|
|
<if test="delFlag != null">delFlag = #{delFlag},</if>
|