72 lines
1.6 KiB
XML
72 lines
1.6 KiB
XML
|
<?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="com.cm.bigdata.dao.kpi.IKpiKhxzDdyDao">
|
||
|
|
||
|
<resultMap id="kpiKhxzDdyDTO" type="com.cm.bigdata.pojo.dtos.kpi.KpiKhxzDdyDTO">
|
||
|
|
||
|
</resultMap>
|
||
|
|
||
|
<insert id="save" parameterType="map">
|
||
|
INSERT INTO kpi_khxz_ddy (
|
||
|
kh_year,
|
||
|
kh_month,
|
||
|
user_id,
|
||
|
user_username,
|
||
|
B
|
||
|
) VALUES (
|
||
|
#{khYear},
|
||
|
#{khMonth},
|
||
|
#{userId},
|
||
|
#{userUsername},
|
||
|
#{B}
|
||
|
)
|
||
|
</insert>
|
||
|
|
||
|
<delete id="delete" parameterType="map">
|
||
|
DELETE FROM
|
||
|
kpi_khxz_ddy
|
||
|
WHERE
|
||
|
kh_year = #{khYear}
|
||
|
AND
|
||
|
kh_month = #{khMonth}
|
||
|
</delete>
|
||
|
|
||
|
<select id="listUserId" parameterType="map" resultType="java.lang.String">
|
||
|
SELECT
|
||
|
user_id
|
||
|
FROM
|
||
|
kpi_khxz_ddy
|
||
|
WHERE
|
||
|
kh_year = #{khYear}
|
||
|
AND
|
||
|
kh_month = #{khMonth}
|
||
|
</select>
|
||
|
|
||
|
<update id="updateC" parameterType="map">
|
||
|
UPDATE
|
||
|
kpi_khxz_ddy
|
||
|
SET
|
||
|
C = #{C}
|
||
|
WHERE
|
||
|
kh_year = #{khYear}
|
||
|
AND
|
||
|
kh_month = #{khMonth}
|
||
|
AND
|
||
|
user_id = #{userId}
|
||
|
</update>
|
||
|
|
||
|
<update id="updateEF" parameterType="map">
|
||
|
UPDATE
|
||
|
kpi_khxz_ddy
|
||
|
SET
|
||
|
E = #{E},
|
||
|
F = #{F}
|
||
|
WHERE
|
||
|
kh_year = #{khYear}
|
||
|
AND
|
||
|
kh_month = #{khMonth}
|
||
|
AND
|
||
|
user_id = #{userId}
|
||
|
</update>
|
||
|
|
||
|
</mapper>
|