添加功能
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.ModelDemandMonitorEmploymentMapper">
|
||||
|
||||
<insert id="insert" parameterType="com.ruoyi.cms.domain.ModelDemandMonitorEmployment">
|
||||
INSERT INTO model_demand_monitor_employment (year, total_count, first_industry_count, second_industry_count, third_industry_count)
|
||||
VALUES (#{year}, #{totalCount}, #{firstIndustryCount}, #{secondIndustryCount}, #{thirdIndustryCount})
|
||||
</insert>
|
||||
|
||||
<insert id="update" parameterType="com.ruoyi.cms.domain.ModelDemandMonitorEmployment">
|
||||
UPDATE model_demand_monitor_employment
|
||||
SET year = #{year},
|
||||
total_count = #{totalCount},
|
||||
first_industry_count = #{firstIndustryCount},
|
||||
second_industry_count = #{secondIndustryCount},
|
||||
third_industry_count = #{thirdIndustryCount}
|
||||
WHERE id = #{id}
|
||||
</insert>
|
||||
|
||||
<delete id="deleteById" parameterType="java.lang.Long">
|
||||
DELETE
|
||||
FROM model_demand_monitor_employment
|
||||
WHERE id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="clear">
|
||||
DELETE FROM model_demand_monitor_employment
|
||||
WHERE id IS NOT NULL;
|
||||
</delete>
|
||||
|
||||
<select id="selectById" parameterType="java.lang.Long"
|
||||
resultType="com.ruoyi.cms.domain.ModelDemandMonitorEmployment">
|
||||
SELECT id,
|
||||
year,
|
||||
total_count AS totalCount,
|
||||
first_industry_count AS firstIndustryCount,
|
||||
second_industry_count AS secondIndustryCount,
|
||||
third_industry_count AS thirdIndustryCount
|
||||
FROM model_demand_monitor_employment
|
||||
WHERE id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="findUnique" parameterType="com.ruoyi.cms.domain.ModelDemandMonitorEmployment"
|
||||
resultType="com.ruoyi.cms.domain.ModelDemandMonitorEmployment">
|
||||
SELECT id,
|
||||
year,
|
||||
total_count AS totalCount,
|
||||
first_industry_count AS firstIndustryCount,
|
||||
second_industry_count AS secondIndustryCount,
|
||||
third_industry_count AS thirdIndustryCount
|
||||
FROM model_demand_monitor_employment
|
||||
WHERE year = #{year}
|
||||
</select>
|
||||
|
||||
<select id="list" parameterType="com.ruoyi.cms.domain.ModelDemandMonitorEmployment"
|
||||
resultType="com.ruoyi.cms.domain.ModelDemandMonitorEmployment">
|
||||
SELECT id,
|
||||
year,
|
||||
total_count AS totalCount,
|
||||
first_industry_count AS firstIndustryCount,
|
||||
second_industry_count AS secondIndustryCount,
|
||||
third_industry_count AS thirdIndustryCount
|
||||
FROM model_demand_monitor_employment
|
||||
<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