feat:参数问题
parent
cf787542b3
commit
1fc8255b1b
|
|
@ -16,6 +16,8 @@ public class ClosedAreaPageQry extends PageQuery {
|
|||
|
||||
@ApiModelProperty(value = "封闭区域名称",name = "closedAreaName")
|
||||
private String closedAreaName;
|
||||
@ApiModelProperty(value = "所属港区",name = "hgAuthArea")
|
||||
private String hgAuthArea;
|
||||
@ApiModelProperty(value = "封闭父节点,根节点传0",name = "parentId")
|
||||
private Long parentId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,9 @@
|
|||
<if test="params.parentId != null">
|
||||
AND c.parent_id = #{params.parentId}
|
||||
</if>
|
||||
<if test="params.hgAuthArea != null and params.hgAuthArea != ''">
|
||||
AND C.hg_auth_area = #{params.hgAuthArea}
|
||||
</if>
|
||||
<if test="params.closedAreaName != null and params.closedAreaName != ''">
|
||||
AND C.closed_area_name LIKE CONCAT('%', #{params.closedAreaName}, '%')
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue