统计详情增加资源名称筛选
This commit is contained in:
parent
79a1938e98
commit
66acc1a318
|
@ -474,6 +474,7 @@ public class CensusController {
|
||||||
@ApiImplicitParam(name = "endDate", value = "结束时间", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "endDate", value = "结束时间", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "type", value = "资源类型", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "type", value = "资源类型", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "deptId", value = "所属部门", paramType = "query", dataType = "long"),
|
@ApiImplicitParam(name = "deptId", value = "所属部门", paramType = "query", dataType = "long"),
|
||||||
|
@ApiImplicitParam(name = "resourceName", value = "资源名称", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "approveStatus", value = "审核状态,可选值(通过、审核中)", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "approveStatus", value = "审核状态,可选值(通过、审核中)", paramType = "query", dataType = "String"),
|
||||||
})
|
})
|
||||||
public Result selectCensusResourceTable(@RequestParam Map<String, Object> params) {
|
public Result selectCensusResourceTable(@RequestParam Map<String, Object> params) {
|
||||||
|
@ -557,6 +558,7 @@ public class CensusController {
|
||||||
@ApiImplicitParam(name = "endDate", value = "结束时间", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "endDate", value = "结束时间", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "type", value = "资源类型", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "type", value = "资源类型", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "deptId", value = "所属部门", paramType = "query", dataType = "long"),
|
@ApiImplicitParam(name = "deptId", value = "所属部门", paramType = "query", dataType = "long"),
|
||||||
|
@ApiImplicitParam(name = "resourceName", value = "资源名称", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "approveStatus", value = "审核状态,可选值(通过、审核中)", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "approveStatus", value = "审核状态,可选值(通过、审核中)", paramType = "query", dataType = "String"),
|
||||||
})
|
})
|
||||||
public Result selectCensusApplyTable(@RequestParam Map<String, Object> params) {
|
public Result selectCensusApplyTable(@RequestParam Map<String, Object> params) {
|
||||||
|
|
|
@ -1941,6 +1941,9 @@
|
||||||
<if test="region != null and region != ''">
|
<if test="region != null and region != ''">
|
||||||
AND sd.district = #{region}
|
AND sd.district = #{region}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="resourceName != null and resourceName != ''">
|
||||||
|
AND tdr.name LIKE CONCAT( '%', #{resourceName}, '%' )
|
||||||
|
</if>
|
||||||
<if test="startDate != null and startDate != '' and endDate != null and endDate != ''">
|
<if test="startDate != null and startDate != '' and endDate != null and endDate != ''">
|
||||||
AND SUBSTR(tdr.create_date, 1, 10) BETWEEN #{startDate} AND #{endDate}
|
AND SUBSTR(tdr.create_date, 1, 10) BETWEEN #{startDate} AND #{endDate}
|
||||||
</if>
|
</if>
|
||||||
|
@ -1997,6 +2000,9 @@
|
||||||
<if test="region != null and region != ''">
|
<if test="region != null and region != ''">
|
||||||
AND sd.district = #{region}
|
AND sd.district = #{region}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="resourceName != null and resourceName != ''">
|
||||||
|
AND tdr.name LIKE CONCAT( '%', #{resourceName}, '%' )
|
||||||
|
</if>
|
||||||
<if test="startDate != null and startDate != '' and endDate != null and endDate != ''">
|
<if test="startDate != null and startDate != '' and endDate != null and endDate != ''">
|
||||||
AND SUBSTR(taa.create_date, 1, 10) BETWEEN #{startDate} AND #{endDate}
|
AND SUBSTR(taa.create_date, 1, 10) BETWEEN #{startDate} AND #{endDate}
|
||||||
</if>
|
</if>
|
||||||
|
@ -2032,6 +2038,9 @@
|
||||||
<if test="deptId != null and deptId != ''">
|
<if test="deptId != null and deptId != ''">
|
||||||
AND tmb.dept = #{deptId}
|
AND tmb.dept = #{deptId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="resourceName != null and resourceName != ''">
|
||||||
|
AND tm.name LIKE CONCAT( '%', #{resourceName}, '%' )
|
||||||
|
</if>
|
||||||
<if test="startDate != null and startDate != '' and endDate != null and endDate != ''">
|
<if test="startDate != null and startDate != '' and endDate != null and endDate != ''">
|
||||||
AND SUBSTR(tmb.create_date, 1, 10) BETWEEN #{startDate} AND #{endDate}
|
AND SUBSTR(tmb.create_date, 1, 10) BETWEEN #{startDate} AND #{endDate}
|
||||||
</if>
|
</if>
|
||||||
|
|
Loading…
Reference in New Issue