提交 38701656 作者: zhenjie

一级行业分类列表查询修改

上级 e4b61c4d
...@@ -20,6 +20,7 @@ import java.io.Serializable; ...@@ -20,6 +20,7 @@ import java.io.Serializable;
@AllArgsConstructor @AllArgsConstructor
public class IndustryTypeQO implements Serializable { public class IndustryTypeQO implements Serializable {
private static final long serialVersionUID = 1983281419136483277L; private static final long serialVersionUID = 1983281419136483277L;
private Integer id;
@ApiModelProperty(value = "行业类型名称") @ApiModelProperty(value = "行业类型名称")
private String typeName; private String typeName;
@ApiModelProperty(value = "页码", required = true) @ApiModelProperty(value = "页码", required = true)
......
...@@ -66,6 +66,9 @@ ...@@ -66,6 +66,9 @@
parameterType="com.mmc.pms.model.qo.IndustryTypeQO"> parameterType="com.mmc.pms.model.qo.IndustryTypeQO">
select count(*) from industry_type it select count(*) from industry_type it
where it.is_deleted = 0 where it.is_deleted = 0
<if test="id != null">
and it.id = #{id}
</if>
<if test="typeName != null"> <if test="typeName != null">
and it.type_name like concat('%',#{typeName},'%') and it.type_name like concat('%',#{typeName},'%')
</if> </if>
...@@ -76,6 +79,9 @@ ...@@ -76,6 +79,9 @@
select it.id, it.type_name, it.type_img, it.description, it.sale_state, it.is_deleted, it.create_time select it.id, it.type_name, it.type_img, it.description, it.sale_state, it.is_deleted, it.create_time
from industry_type it from industry_type it
where it.is_deleted = 0 where it.is_deleted = 0
<if test="id != null">
and it.id = #{id}
</if>
<if test="typeName != null"> <if test="typeName != null">
and it.type_name like concat('%',#{typeName},'%') and it.type_name like concat('%',#{typeName},'%')
</if> </if>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论