添加功能
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
WHERE a.id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="findUnique" parameterType="com.ruoyi.cms.domain.ModelEmploymentMonitorComposite"
|
||||
<select id="findUnique" parameterType="java.lang.String"
|
||||
resultType="com.ruoyi.cms.domain.ModelEmploymentMonitorComposite">
|
||||
|
||||
SELECT *
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
WHERE a.id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="findUnique" parameterType="com.ruoyi.cms.domain.ModelUnemploymentRateMonitor"
|
||||
<select id="findUnique" parameterType="java.lang.String"
|
||||
resultType="com.ruoyi.cms.domain.ModelUnemploymentRateMonitor">
|
||||
|
||||
SELECT *
|
||||
|
||||
@@ -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.ModelUnemploymentWarningDiffusionMapper">
|
||||
|
||||
<insert id="insert" parameterType="com.ruoyi.cms.domain.ModelUnemploymentWarningDiffusion">
|
||||
INSERT INTO model_unemployment_warning_diffusion (indicator_code, indicator_weight, indicator_type, lead_period, sort_order)
|
||||
VALUES (#{indicatorCode}, #{indicatorWeight}, #{indicatorType}, #{leadPeriod}, #{sortOrder})
|
||||
</insert>
|
||||
|
||||
<insert id="update" parameterType="com.ruoyi.cms.domain.ModelUnemploymentWarningDiffusion">
|
||||
UPDATE model_unemployment_warning_diffusion
|
||||
SET indicator_code = #{indicatorCode},
|
||||
indicator_weight = #{indicatorWeight},
|
||||
indicator_type = #{indicatorType},
|
||||
lead_period = #{leadPeriod},
|
||||
sort_order = #{sortOrder}
|
||||
WHERE id = #{id}
|
||||
</insert>
|
||||
|
||||
<insert id="deleteById" parameterType="java.lang.Long">
|
||||
DELETE
|
||||
FROM model_unemployment_warning_diffusion
|
||||
WHERE id = #{id}
|
||||
</insert>
|
||||
|
||||
<select id="selectById" parameterType="com.ruoyi.cms.domain.ModelUnemploymentWarningDiffusion"
|
||||
resultType="com.ruoyi.cms.domain.ModelUnemploymentWarningDiffusion">
|
||||
|
||||
SELECT a.id,
|
||||
a.indicator_code,
|
||||
a.indicator_weight,
|
||||
a.indicator_type,
|
||||
a.lead_period,
|
||||
a.sort_order,
|
||||
b.indicator_name
|
||||
FROM model_unemployment_warning_diffusion a
|
||||
LEFT JOIN model_warning_indicator b ON a.indicator_code = b.indicator_code
|
||||
WHERE a.id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="findUnique" parameterType="java.lang.String"
|
||||
resultType="com.ruoyi.cms.domain.ModelUnemploymentWarningDiffusion">
|
||||
|
||||
SELECT *
|
||||
FROM model_unemployment_warning_diffusion
|
||||
WHERE indicator_code = #{indicatorCode}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="list" parameterType="com.ruoyi.cms.domain.ModelUnemploymentWarningDiffusion"
|
||||
resultType="com.ruoyi.cms.domain.ModelUnemploymentWarningDiffusion">
|
||||
SELECT a.id,
|
||||
a.indicator_code,
|
||||
a.indicator_weight,
|
||||
a.indicator_type,
|
||||
a.lead_period,
|
||||
a.sort_order,
|
||||
b.indicator_name
|
||||
FROM model_unemployment_warning_diffusion a
|
||||
LEFT JOIN model_warning_indicator b ON a.indicator_code = b.indicator_code
|
||||
<where>
|
||||
<if test="id != null ">
|
||||
AND a.id = #{id}
|
||||
</if>
|
||||
<if test="indicatorCode != null and indicatorCode != ''">
|
||||
AND a.indicator_code = #{indicatorCode}
|
||||
</if>
|
||||
<if test="indicatorType != null">
|
||||
AND a.indicator_type = #{indicatorType}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY a.sort_order
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -44,6 +44,19 @@
|
||||
AND region_code = #{regionCode}
|
||||
</select>
|
||||
|
||||
<select id="selectByIndicatorCode" parameterType="java.lang.String"
|
||||
resultType="com.ruoyi.cms.domain.ModelWarningIndicatorData">
|
||||
SELECT *
|
||||
FROM model_warning_indicator_data
|
||||
<where>
|
||||
<if test="indicatorCode != null and indicatorCode != ''">
|
||||
AND indicator_code = #{indicatorCode}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY year DESC, month DESC, indicator_code
|
||||
</select>
|
||||
|
||||
|
||||
<select id="list" parameterType="com.ruoyi.cms.domain.ModelWarningIndicatorData"
|
||||
resultType="com.ruoyi.cms.domain.ModelWarningIndicatorData">
|
||||
SELECT *
|
||||
|
||||
Reference in New Issue
Block a user