修改清楚转项字段名称

dongdingding
董丁丁 2 years ago
parent b51c077f83
commit 8df4e7b7fd

@ -1,5 +1,7 @@
package com.ruoyi.zongzhi.domain; package com.ruoyi.zongzhi.domain;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
@ -9,6 +11,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity; import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* tc_qlzxxdsj * tc_qlzxxdsj
@ -43,8 +46,8 @@ public class TcQlzxxdsj extends BaseEntity {
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "年月", width = 30, dateFormat = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd ")
private Date yearMonth; private Date monthYear;
/** /**
* *

@ -3,46 +3,46 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.zongzhi.mapper.TcQlzxxdsjMapper"> <mapper namespace="com.ruoyi.zongzhi.mapper.TcQlzxxdsjMapper">
<resultMap type="TcQlzxxdsj" id="TcQlzxxdsjResult"> <resultMap type="TcQlzxxdsj" id="TcQlzxxdsjResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="areaId" column="area_id" /> <result property="areaId" column="area_id" />
<result property="type" column="type" /> <result property="type" column="type" />
<result property="yearMonth" column="year_month" /> <result property="monthYear" column="month_year" />
<result property="count" column="count" /> <result property="count" column="count" />
</resultMap> </resultMap>
<sql id="selectTcQlzxxdsjVo"> <sql id="selectTcQlzxxdsjVo">
select id, area_id, type, year_month, count from tc_qlzxxdsj select id, area_id, type, month_year, count from tc_qlzxxdsj
</sql> </sql>
<select id="selectTcQlzxxdsjList" parameterType="TcQlzxxdsj" resultMap="TcQlzxxdsjResult"> <select id="selectTcQlzxxdsjList" parameterType="TcQlzxxdsj" resultMap="TcQlzxxdsjResult">
<include refid="selectTcQlzxxdsjVo"/> <include refid="selectTcQlzxxdsjVo"/>
<where> <where>
<if test="areaId != null "> and area_id = #{areaId}</if> <if test="areaId != null "> and area_id = #{areaId}</if>
<if test="type != null "> and type = #{type}</if> <if test="type != null "> and type = #{type}</if>
<if test="yearMonth != null "> and year_month = #{yearMonth}</if> <if test="monthYear != null "> and month_year = #{monthYear}</if>
<if test="count != null "> and count = #{count}</if> <if test="count != null "> and count = #{count}</if>
</where> </where>
</select> </select>
<select id="selectTcQlzxxdsjById" parameterType="Long" resultMap="TcQlzxxdsjResult"> <select id="selectTcQlzxxdsjById" parameterType="Long" resultMap="TcQlzxxdsjResult">
<include refid="selectTcQlzxxdsjVo"/> <include refid="selectTcQlzxxdsjVo"/>
where id = #{id} where id = #{id}
</select> </select>
<insert id="insertTcQlzxxdsj" parameterType="TcQlzxxdsj" useGeneratedKeys="true" keyProperty="id"> <insert id="insertTcQlzxxdsj" parameterType="TcQlzxxdsj" useGeneratedKeys="true" keyProperty="id">
insert into tc_qlzxxdsj insert into tc_qlzxxdsj
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="areaId != null">area_id,</if> <if test="areaId != null">area_id,</if>
<if test="type != null">type,</if> <if test="type != null">type,</if>
<if test="yearMonth != null">year_month,</if> <if test="monthYear != null">month_year,</if>
<if test="count != null">count,</if> <if test="count != null">count,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="areaId != null">#{areaId},</if> <if test="areaId != null">#{areaId},</if>
<if test="type != null">#{type},</if> <if test="type != null">#{type},</if>
<if test="yearMonth != null">#{yearMonth},</if> <if test="monthYear != null">#{monthYear},</if>
<if test="count != null">#{count},</if> <if test="count != null">#{count},</if>
</trim> </trim>
</insert> </insert>
@ -52,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="areaId != null">area_id = #{areaId},</if> <if test="areaId != null">area_id = #{areaId},</if>
<if test="type != null">type = #{type},</if> <if test="type != null">type = #{type},</if>
<if test="yearMonth != null">year_month = #{yearMonth},</if> <if test="monthYear != null">month_year = #{monthYear},</if>
<if test="count != null">count = #{count},</if> <if test="count != null">count = #{count},</if>
</trim> </trim>
where id = #{id} where id = #{id}
@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deleteTcQlzxxdsjByIds" parameterType="String"> <delete id="deleteTcQlzxxdsjByIds" parameterType="String">
delete from tc_qlzxxdsj where id in delete from tc_qlzxxdsj where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>

Loading…
Cancel
Save