| | |
| | | <!--@Table md_crops--> |
| | | <id column="id" jdbcType="BIGINT" property="id" /> |
| | | <result column="name" jdbcType="VARCHAR" property="name" /> |
| | | <result column="start_dt" jdbcType="DATE" property="startDt" /> |
| | | <result column="end_dt" jdbcType="DATE" property="endDt" /> |
| | | <result column="start_dt" jdbcType="VARCHAR" property="startDt" /> |
| | | <result column="end_dt" jdbcType="VARCHAR" property="endDt" /> |
| | | <result column="stopped" jdbcType="TINYINT" property="stopped" /> |
| | | <result column="remarks" jdbcType="VARCHAR" property="remarks" /> |
| | | <result column="create_dt" jdbcType="TIMESTAMP" property="createDt" /> |
| | |
| | | insert into md_crops (id, `name`, start_dt, |
| | | end_dt, stopped, remarks, |
| | | create_dt, deleted) |
| | | values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{startDt,jdbcType=DATE}, |
| | | #{endDt,jdbcType=DATE}, #{stopped,jdbcType=TINYINT}, #{remarks,jdbcType=VARCHAR}, |
| | | values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{startDt,jdbcType=VARCHAR}, |
| | | #{endDt,jdbcType=VARCHAR}, #{stopped,jdbcType=TINYINT}, #{remarks,jdbcType=VARCHAR}, |
| | | #{createDt,jdbcType=TIMESTAMP}, #{deleted,jdbcType=TINYINT}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoMd.MdCrops"> |
| | |
| | | #{name,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="startDt != null"> |
| | | #{startDt,jdbcType=DATE}, |
| | | #{startDt,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="endDt != null"> |
| | | #{endDt,jdbcType=DATE}, |
| | | #{endDt,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="stopped != null"> |
| | | #{stopped,jdbcType=TINYINT}, |
| | |
| | | `name` = #{name,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="startDt != null"> |
| | | start_dt = #{startDt,jdbcType=DATE}, |
| | | start_dt = #{startDt,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="endDt != null"> |
| | | end_dt = #{endDt,jdbcType=DATE}, |
| | | end_dt = #{endDt,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="stopped != null"> |
| | | stopped = #{stopped,jdbcType=TINYINT}, |
| | |
| | | <!--@mbg.generated--> |
| | | update md_crops |
| | | set `name` = #{name,jdbcType=VARCHAR}, |
| | | start_dt = #{startDt,jdbcType=DATE}, |
| | | end_dt = #{endDt,jdbcType=DATE}, |
| | | start_dt = #{startDt,jdbcType=VARCHAR}, |
| | | end_dt = #{endDt,jdbcType=VARCHAR}, |
| | | stopped = #{stopped,jdbcType=TINYINT}, |
| | | remarks = #{remarks,jdbcType=VARCHAR}, |
| | | create_dt = #{createDt,jdbcType=TIMESTAMP}, |