查询bug修复。

main
张博文 5 months ago
parent f1d5c8c1c8
commit b729ab8014

@ -9,7 +9,6 @@ import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
@ -23,8 +22,7 @@ public class UniTemplateUpdateCustomizeReqVO extends UniTemplateUpdateReqVO {
@NotNull(message = "是否显示商品详情不能为空")
private Boolean showGoodsDetail;
@ApiModelProperty(value = "商品详情图标", required = true)
@NotBlank(message = "商品详情图标不能为空")
@ApiModelProperty(value = "商品详情图标")
@Length(max = 256)
private String goodsDetailIconUrl;
@ -32,8 +30,7 @@ public class UniTemplateUpdateCustomizeReqVO extends UniTemplateUpdateReqVO {
@NotNull(message = "是否显示ai不能为空")
private Boolean showAi;
@ApiModelProperty(value = "ai图标", required = true)
@NotBlank(message = "ai图标不能为空")
@ApiModelProperty(value = "ai图标")
@Length(max = 256)
private String aiIconUrl;
@ -41,8 +38,7 @@ public class UniTemplateUpdateCustomizeReqVO extends UniTemplateUpdateReqVO {
@NotNull(message = "是否显示商城不能为空")
private Boolean showShop;
@ApiModelProperty(value = "商城图标", required = true)
@NotBlank(message = "商城图标不能为空")
@ApiModelProperty(value = "商城图标")
@Length(max = 256)
private String shopIconUrl;

@ -13,15 +13,15 @@
<collection property="templateItemList" column="template_id=template_id" select="getItemList"></collection>
</resultMap>
<select id="getUniTemplateDetail" resultMap="uniTemplateDetailMap">
select * from configure_uni_template where id = #{id}
select * from configure_uni_template where id = #{id} and deleted = 0
</select>
<select id="getItemList" resultType="cn.iocoder.yudao.module.configure.controller.admin.unitemplateitem.vo.UniTemplateItemRespVO">
select * from configure_uni_template_item where template_id = #{template_id}
select * from configure_uni_template_item where template_id = #{template_id} and deleted = 0
</select>
<select id="selectUniTemplatePage" resultMap="uniTemplateDetailMap">
select * from configure_uni_template order by id desc
select * from configure_uni_template where deleted = 0 order by id desc
</select>
</mapper>

Loading…
Cancel
Save