feat: 资质申请监控
parent
7176591ea0
commit
97d64aedba
|
|
@ -33,4 +33,7 @@ public class BasePageQuery {
|
|||
@ApiModelProperty(value = "结束时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime endTime;
|
||||
|
||||
@ApiModelProperty(value = "keyword")
|
||||
private String keyword;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,17 +63,14 @@
|
|||
select info.credit_code as creditCode, info.unit_name as unitName, filing.* from org_info as info
|
||||
left join qual_filing as filing on info.id = filing.org_id
|
||||
where 1=1
|
||||
<if test="query.creditCode != null">
|
||||
and info.credit_code = #{query.creditCode}
|
||||
</if>
|
||||
<if test="query.unitName != null">
|
||||
and info.unit_name like concat('%',#{query.unitName},'%')
|
||||
<if test="query.keyword != null">
|
||||
and (info.credit_code like concat('%',#{query.keyword},'%') or info.unit_name like concat('%',#{query.keyword},'%'))
|
||||
</if>
|
||||
<if test="query.alertStatus != null">
|
||||
and filing.alert_status = #{query.alertStatus}
|
||||
</if>
|
||||
<if test="query.businessScope != null">
|
||||
and filing.expert_status like concat('%',#{query.unitName},'%')
|
||||
and JSON_CONTAINS(filing.business_scope, CONCAT('"', #{query.businessScope}, '"'))
|
||||
</if>
|
||||
order by filing.id desc
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue