提交 38701656 作者: zhenjie

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

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