增加动态表单自动排版配置界面的保存回显逻辑
This commit is contained in:
parent
5a341eb4dd
commit
04e89af0ab
@ -19,6 +19,7 @@
|
|||||||
<result column="pictures_template_picture" property="picturesTemplatePicture"/>
|
<result column="pictures_template_picture" property="picturesTemplatePicture"/>
|
||||||
<result column="pictures_template_picture_url" property="picturesTemplatePictureUrl"/>
|
<result column="pictures_template_picture_url" property="picturesTemplatePictureUrl"/>
|
||||||
<result column="pictures_template_remark" property="picturesTemplateRemark"/>
|
<result column="pictures_template_remark" property="picturesTemplateRemark"/>
|
||||||
|
<result column="pictures_template_order" property="picturesTemplateOrder"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="picturesTemplateBuildingDTO" type="cn.com.tenlion.buildingpictures.pojo.dtos.picturestemplate.PicturesTemplateBuildingDTO">
|
<resultMap id="picturesTemplateBuildingDTO" type="cn.com.tenlion.buildingpictures.pojo.dtos.picturestemplate.PicturesTemplateBuildingDTO">
|
||||||
@ -32,6 +33,7 @@
|
|||||||
<result column="pictures_template_picture" property="picturesTemplatePicture"/>
|
<result column="pictures_template_picture" property="picturesTemplatePicture"/>
|
||||||
<result column="pictures_template_picture_url" property="picturesTemplatePictureUrl"/>
|
<result column="pictures_template_picture_url" property="picturesTemplatePictureUrl"/>
|
||||||
<result column="pictures_template_remark" property="picturesTemplateRemark"/>
|
<result column="pictures_template_remark" property="picturesTemplateRemark"/>
|
||||||
|
<result column="pictures_template_order" property="picturesTemplateOrder"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!-- 供外部接口调用使用 -->
|
<!-- 供外部接口调用使用 -->
|
||||||
@ -46,11 +48,14 @@
|
|||||||
t1.pictures_template_publish_status,
|
t1.pictures_template_publish_status,
|
||||||
t1.pictures_template_picture,
|
t1.pictures_template_picture,
|
||||||
t1.pictures_template_picture_url,
|
t1.pictures_template_picture_url,
|
||||||
t1.pictures_template_remark
|
t1.pictures_template_remark,
|
||||||
|
t1.pictures_template_order
|
||||||
FROM
|
FROM
|
||||||
m_pictures_template t1
|
m_pictures_template t1
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0 AND t1.pictures_template_id = #{picturesTemplateId}
|
t1.is_delete = 0 AND t1.pictures_template_id = #{picturesTemplateId}
|
||||||
|
ORDER BY
|
||||||
|
t1.pictures_template_order , t1.gmt_create DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 供外部接口调用使用 -->
|
<!-- 供外部接口调用使用 -->
|
||||||
@ -65,7 +70,8 @@
|
|||||||
t1.pictures_template_publish_status,
|
t1.pictures_template_publish_status,
|
||||||
/* t1.pictures_template_picture,*/
|
/* t1.pictures_template_picture,*/
|
||||||
t1.pictures_template_picture_url,
|
t1.pictures_template_picture_url,
|
||||||
t1.pictures_template_remark
|
t1.pictures_template_remark,
|
||||||
|
t1.pictures_template_order
|
||||||
FROM
|
FROM
|
||||||
m_pictures_template t1
|
m_pictures_template t1
|
||||||
WHERE
|
WHERE
|
||||||
@ -88,7 +94,7 @@
|
|||||||
#{picturesTemplateIds[${index}]}
|
#{picturesTemplateIds[${index}]}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
ORDER BY t1.gmt_create
|
ORDER BY t1.pictures_template_order , t1.gmt_create DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updatePicturesTemplatePicture" parameterType="map">
|
<update id="updatePicturesTemplatePicture" parameterType="map">
|
||||||
@ -152,11 +158,13 @@
|
|||||||
t1.pictures_template_size,
|
t1.pictures_template_size,
|
||||||
t1.pictures_template_picture,
|
t1.pictures_template_picture,
|
||||||
t1.pictures_template_picture_url,
|
t1.pictures_template_picture_url,
|
||||||
t1.pictures_template_remark
|
t1.pictures_template_remark,
|
||||||
|
t1.pictures_template_order
|
||||||
FROM
|
FROM
|
||||||
m_pictures_template t1
|
m_pictures_template t1
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0 AND t1.pictures_template_code = #{picturesTemplateCode}
|
t1.is_delete = 0 AND t1.pictures_template_code = #{picturesTemplateCode}
|
||||||
|
ORDER BY t1.pictures_template_order , t1.gmt_create DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 新增图片套版的模板管理 -->
|
<!-- 新增图片套版的模板管理 -->
|
||||||
@ -177,6 +185,7 @@
|
|||||||
pictures_template_size,
|
pictures_template_size,
|
||||||
pictures_template_picture,
|
pictures_template_picture,
|
||||||
pictures_template_remark,
|
pictures_template_remark,
|
||||||
|
pictures_template_order,
|
||||||
creator,
|
creator,
|
||||||
gmt_create,
|
gmt_create,
|
||||||
modifier,
|
modifier,
|
||||||
@ -198,6 +207,7 @@
|
|||||||
#{picturesTemplateSize},
|
#{picturesTemplateSize},
|
||||||
'',
|
'',
|
||||||
#{picturesTemplateRemark},
|
#{picturesTemplateRemark},
|
||||||
|
#{picturesTemplateOrder},
|
||||||
#{creator},
|
#{creator},
|
||||||
#{gmtCreate},
|
#{gmtCreate},
|
||||||
#{modifier},
|
#{modifier},
|
||||||
@ -260,6 +270,9 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="picturesTemplateRemark != null and picturesTemplateRemark != ''">
|
<if test="picturesTemplateRemark != null and picturesTemplateRemark != ''">
|
||||||
pictures_template_remark = #{picturesTemplateRemark},
|
pictures_template_remark = #{picturesTemplateRemark},
|
||||||
|
</if>
|
||||||
|
<if test="picturesTemplateOrder != null">
|
||||||
|
pictures_template_order = #{picturesTemplateOrder},
|
||||||
</if>
|
</if>
|
||||||
pictures_template_file = #{picturesTemplateFile},
|
pictures_template_file = #{picturesTemplateFile},
|
||||||
modifier = #{modifier},
|
modifier = #{modifier},
|
||||||
@ -286,7 +299,8 @@
|
|||||||
t1.pictures_template_size,
|
t1.pictures_template_size,
|
||||||
t1.pictures_template_picture,
|
t1.pictures_template_picture,
|
||||||
t1.pictures_template_picture_url,
|
t1.pictures_template_picture_url,
|
||||||
t1.pictures_template_remark
|
t1.pictures_template_remark,
|
||||||
|
t1.pictures_template_order
|
||||||
FROM
|
FROM
|
||||||
m_pictures_template t1
|
m_pictures_template t1
|
||||||
WHERE
|
WHERE
|
||||||
@ -295,7 +309,7 @@
|
|||||||
AND
|
AND
|
||||||
t1.pictures_template_id = #{picturesTemplateId}
|
t1.pictures_template_id = #{picturesTemplateId}
|
||||||
</if>
|
</if>
|
||||||
ORDER BY t1.gmt_create
|
ORDER BY t1.pictures_template_order , t1.gmt_create DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 图片套版的模板管理列表 -->
|
<!-- 图片套版的模板管理列表 -->
|
||||||
@ -316,7 +330,8 @@
|
|||||||
t1.pictures_template_size,
|
t1.pictures_template_size,
|
||||||
t1.pictures_template_picture,
|
t1.pictures_template_picture,
|
||||||
t1.pictures_template_picture_url,
|
t1.pictures_template_picture_url,
|
||||||
t1.pictures_template_remark
|
t1.pictures_template_remark,
|
||||||
|
t1.pictures_template_order
|
||||||
FROM
|
FROM
|
||||||
m_pictures_template t1
|
m_pictures_template t1
|
||||||
WHERE
|
WHERE
|
||||||
@ -350,7 +365,7 @@
|
|||||||
#{picturesTemplateIds[${index}]}
|
#{picturesTemplateIds[${index}]}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
ORDER BY t1.gmt_create
|
ORDER BY t1.pictures_template_order , t1.gmt_create DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 图片套版的模板管理统计 -->
|
<!-- 图片套版的模板管理统计 -->
|
||||||
|
@ -35,6 +35,12 @@
|
|||||||
<input type="text" id="picturesTemplateTitle" name="picturesTemplateTitle" class="layui-input" value="" placeholder="请输入套版名称" lay-verify="required">
|
<input type="text" id="picturesTemplateTitle" name="picturesTemplateTitle" class="layui-input" value="" placeholder="请输入套版名称" lay-verify="required">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">套版排序<span style="color: red">*</span></label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="number" step="0.01" id="picturesTemplateOrder" name="picturesTemplateOrder" class="layui-input" value="1" placeholder="请输入套版排序" lay-verify="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- <div class="layui-form-item">-->
|
<!-- <div class="layui-form-item">-->
|
||||||
<!-- <label class="layui-form-label">画板高度<span style="color: red">*</span></label>-->
|
<!-- <label class="layui-form-label">画板高度<span style="color: red">*</span></label>-->
|
||||||
<!-- <div class="layui-input-block">-->
|
<!-- <div class="layui-input-block">-->
|
||||||
|
@ -35,6 +35,12 @@
|
|||||||
<input type="text" id="picturesTemplateTitle" name="picturesTemplateTitle" class="layui-input" value="" placeholder="请输入套版名称" lay-verify="required">
|
<input type="text" id="picturesTemplateTitle" name="picturesTemplateTitle" class="layui-input" value="" placeholder="请输入套版名称" lay-verify="required">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">套版排序<span style="color: red">*</span></label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="number" step="0.01" id="picturesTemplateOrder" name="picturesTemplateOrder" class="layui-input" value="1" placeholder="请输入套版排序" lay-verify="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- <div class="layui-form-item">-->
|
<!-- <div class="layui-form-item">-->
|
||||||
<!-- <label class="layui-form-label">画板高度<span style="color: red">*</span></label>-->
|
<!-- <label class="layui-form-label">画板高度<span style="color: red">*</span></label>-->
|
||||||
<!-- <div class="layui-input-block">-->
|
<!-- <div class="layui-input-block">-->
|
||||||
|
@ -39,6 +39,16 @@ public class PicturesTemplateBuildingDTO implements Cloneable {
|
|||||||
protected String picturesTemplateRemark;
|
protected String picturesTemplateRemark;
|
||||||
@ApiModelProperty(name = "picturesTemplatePublishStatus", value = "发布状态")
|
@ApiModelProperty(name = "picturesTemplatePublishStatus", value = "发布状态")
|
||||||
protected String picturesTemplatePublishStatus;
|
protected String picturesTemplatePublishStatus;
|
||||||
|
@ApiModelProperty(name = "picturesTemplateOrder", value = "排序")
|
||||||
|
private Integer picturesTemplateOrder;
|
||||||
|
|
||||||
|
public Integer getPicturesTemplateOrder() {
|
||||||
|
return picturesTemplateOrder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPicturesTemplateOrder(Integer picturesTemplateOrder) {
|
||||||
|
this.picturesTemplateOrder = picturesTemplateOrder;
|
||||||
|
}
|
||||||
|
|
||||||
public String getPicturesTemplatePictureUrl() {
|
public String getPicturesTemplatePictureUrl() {
|
||||||
return picturesTemplatePictureUrl == null ? "" : picturesTemplatePictureUrl;
|
return picturesTemplatePictureUrl == null ? "" : picturesTemplatePictureUrl;
|
||||||
|
@ -53,6 +53,16 @@ public class PicturesTemplateDTO {
|
|||||||
private String picturesTemplatePictureUrl;
|
private String picturesTemplatePictureUrl;
|
||||||
@ApiModelProperty(name = "picturesTemplateRemark", value = "备注说明")
|
@ApiModelProperty(name = "picturesTemplateRemark", value = "备注说明")
|
||||||
private String picturesTemplateRemark;
|
private String picturesTemplateRemark;
|
||||||
|
@ApiModelProperty(name = "picturesTemplateOrder", value = "排序")
|
||||||
|
private Integer picturesTemplateOrder;
|
||||||
|
|
||||||
|
public Integer getPicturesTemplateOrder() {
|
||||||
|
return picturesTemplateOrder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPicturesTemplateOrder(Integer picturesTemplateOrder) {
|
||||||
|
this.picturesTemplateOrder = picturesTemplateOrder;
|
||||||
|
}
|
||||||
|
|
||||||
public String getPicturesTemplatePictureUrl() {
|
public String getPicturesTemplatePictureUrl() {
|
||||||
return picturesTemplatePictureUrl == null ? "" : picturesTemplatePictureUrl;
|
return picturesTemplatePictureUrl == null ? "" : picturesTemplatePictureUrl;
|
||||||
|
@ -51,6 +51,16 @@ public class PicturesTemplateVO {
|
|||||||
private String picturesTemplatePicture;
|
private String picturesTemplatePicture;
|
||||||
@ApiModelProperty(name = "picturesTemplatePictureUrl", value = "预览图ID")
|
@ApiModelProperty(name = "picturesTemplatePictureUrl", value = "预览图ID")
|
||||||
private String picturesTemplatePictureUrl;
|
private String picturesTemplatePictureUrl;
|
||||||
|
@ApiModelProperty(name = "picturesTemplateOrder", value = "排序")
|
||||||
|
private Integer picturesTemplateOrder;
|
||||||
|
|
||||||
|
public Integer getPicturesTemplateOrder() {
|
||||||
|
return picturesTemplateOrder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPicturesTemplateOrder(Integer picturesTemplateOrder) {
|
||||||
|
this.picturesTemplateOrder = picturesTemplateOrder;
|
||||||
|
}
|
||||||
|
|
||||||
public String getPicturesTemplatePictureUrl() {
|
public String getPicturesTemplatePictureUrl() {
|
||||||
return picturesTemplatePictureUrl == null ? "" : picturesTemplatePictureUrl;
|
return picturesTemplatePictureUrl == null ? "" : picturesTemplatePictureUrl;
|
||||||
|
Loading…
Reference in New Issue
Block a user