更新监测断面接口
parent
4ddc901281
commit
f1b385dc2d
|
|
@ -4,7 +4,9 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.project.xyt.entity.basedata.GeneralSearch;
|
||||
import com.gunshi.project.xyt.model.StMoncrB;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
|
|
|
|||
|
|
@ -83,6 +83,14 @@ public class StMoncrB implements Serializable {
|
|||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date tm;
|
||||
|
||||
/**
|
||||
* 备注/描述
|
||||
*/
|
||||
@TableField(value = "COMMENTS")
|
||||
@Schema(description = "备注/描述")
|
||||
@Size(max = 200,message = "备注/描述长度不能超过200")
|
||||
private String comments;
|
||||
|
||||
public static final String COL_CR_ID = "CR_ID";
|
||||
|
||||
public static final String COL_CR_CD = "CR_CD";
|
||||
|
|
@ -96,4 +104,6 @@ public class StMoncrB implements Serializable {
|
|||
public static final String COL_STATUS = "STATUS";
|
||||
|
||||
public static final String COL_TM = "TM";
|
||||
|
||||
public static final String COL_COMMENTS = "COMMENTS";
|
||||
}
|
||||
|
|
@ -11,20 +11,21 @@
|
|||
<result column="SORT_ON" jdbcType="INTEGER" property="sortOn" />
|
||||
<result column="STATUS" jdbcType="INTEGER" property="status" />
|
||||
<result column="TM" jdbcType="TIMESTAMP" property="tm" />
|
||||
<result column="COMMENTS" jdbcType="VARCHAR" property="comments" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
CR_ID, CR_CD, CR_NM, CR_IMG_ID, SORT_ON, [STATUS], TM
|
||||
CR_ID, CR_CD, CR_NM, CR_IMG_ID, SORT_ON, [STATUS], TM, COMMENTS
|
||||
</sql>
|
||||
<insert id="batchInsert" parameterType="map">
|
||||
<!--@mbg.generated-->
|
||||
insert into dbo.ST_MONCR_B
|
||||
(CR_ID, CR_CD, CR_NM, CR_IMG_ID, SORT_ON, [STATUS], TM)
|
||||
(CR_ID, CR_CD, CR_NM, CR_IMG_ID, SORT_ON, [STATUS], TM, COMMENTS)
|
||||
values
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.crId,jdbcType=BIGINT}, #{item.crCd,jdbcType=VARCHAR}, #{item.crNm,jdbcType=VARCHAR},
|
||||
#{item.crImgId,jdbcType=BIGINT}, #{item.sortOn,jdbcType=INTEGER}, #{item.status,jdbcType=INTEGER},
|
||||
#{item.tm,jdbcType=TIMESTAMP})
|
||||
#{item.tm,jdbcType=TIMESTAMP}, #{item.comments,jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue