26 lines
1.0 KiB
XML
26 lines
1.0 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.bonus.sgzb.material.mapper.CalMonthlyMapper">
|
||
|
|
|
||
|
|
<insert id="insertCalcRecord" parameterType="com.bonus.sgzb.material.domain.CalMonthlyBean" useGeneratedKeys="true" keyProperty="id">
|
||
|
|
INSERT INTO calc_project_month (MONTH) VALUES (#{month})
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
<select id="getCalcRecords" parameterType="com.bonus.sgzb.material.domain.CalMonthlyBean" resultType="com.bonus.sgzb.material.domain.CalMonthlyBean">
|
||
|
|
select id,month from calc_project_month
|
||
|
|
where month = #{month}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<delete id="deleteCalcRecord" parameterType="com.bonus.sgzb.material.domain.CalMonthlyBean">
|
||
|
|
delete from calc_project_month
|
||
|
|
where id = #{id}
|
||
|
|
</delete>
|
||
|
|
|
||
|
|
<delete id="deleteMonthlyCosts" parameterType="com.bonus.sgzb.material.domain.CalMonthlyBean">
|
||
|
|
delete from project_month_costs
|
||
|
|
where task_id = #{id}
|
||
|
|
</delete>
|
||
|
|
|
||
|
|
</mapper>
|