添加功能
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<?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.ruoyi.cms.mapper.ModelDemandMonitorIndustryIncreaseMapper">
|
||||
|
||||
<insert id="insert" parameterType="com.ruoyi.cms.domain.ModelDemandMonitorIndustryIncrease">
|
||||
INSERT INTO model_demand_monitor_industry_increase (year, total_amount, first_industry_amount, second_industry_amount, third_industry_amount)
|
||||
VALUES (#{year}, #{totalAmount}, #{firstIndustryAmount}, #{secondIndustryAmount}, #{thirdIndustryAmount})
|
||||
</insert>
|
||||
|
||||
<insert id="update" parameterType="com.ruoyi.cms.domain.ModelDemandMonitorIndustryIncrease">
|
||||
UPDATE model_demand_monitor_industry_increase
|
||||
SET year = #{year},
|
||||
total_amount = #{totalAmount},
|
||||
first_industry_amount = #{firstIndustryAmount},
|
||||
second_industry_amount = #{secondIndustryAmount},
|
||||
third_industry_amount = #{thirdIndustryAmount}
|
||||
WHERE id = #{id}
|
||||
</insert>
|
||||
|
||||
<delete id="deleteById" parameterType="java.lang.Long">
|
||||
DELETE
|
||||
FROM model_demand_monitor_industry_increase
|
||||
WHERE id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="clear">
|
||||
DELETE FROM model_demand_monitor_industry_increase
|
||||
WHERE id IS NOT NULL;
|
||||
</delete>
|
||||
|
||||
<select id="selectById" parameterType="java.lang.Long"
|
||||
resultType="com.ruoyi.cms.domain.ModelDemandMonitorIndustryIncrease">
|
||||
SELECT id,
|
||||
year,
|
||||
total_amount AS totalAmount,
|
||||
first_industry_amount AS firstIndustryAmount,
|
||||
second_industry_amount AS secondIndustryAmount,
|
||||
third_industry_amount AS thirdIndustryAmount
|
||||
FROM model_demand_monitor_industry_increase
|
||||
WHERE id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="findUnique" parameterType="com.ruoyi.cms.domain.ModelDemandMonitorIndustryIncrease"
|
||||
resultType="com.ruoyi.cms.domain.ModelDemandMonitorIndustryIncrease">
|
||||
SELECT id,
|
||||
year,
|
||||
total_amount AS totalAmount,
|
||||
first_industry_amount AS firstIndustryAmount,
|
||||
second_industry_amount AS secondIndustryAmount,
|
||||
third_industry_amount AS thirdIndustryAmount
|
||||
FROM model_demand_monitor_industry_increase
|
||||
WHERE year = #{year}
|
||||
</select>
|
||||
|
||||
<select id="list" parameterType="com.ruoyi.cms.domain.ModelDemandMonitorIndustryIncrease"
|
||||
resultType="com.ruoyi.cms.domain.ModelDemandMonitorIndustryIncrease">
|
||||
SELECT id,
|
||||
year,
|
||||
total_amount AS totalAmount,
|
||||
first_industry_amount AS firstIndustryAmount,
|
||||
second_industry_amount AS secondIndustryAmount,
|
||||
third_industry_amount AS thirdIndustryAmount
|
||||
FROM model_demand_monitor_industry_increase
|
||||
<where>
|
||||
<if test="id != null">
|
||||
AND id = #{id}
|
||||
</if>
|
||||
<if test="year != null">
|
||||
AND year = #{year}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY year DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Binary file not shown.
Reference in New Issue
Block a user