归档案件增加部门条件
This commit is contained in:
parent
e4232cc0d9
commit
88b170dbd2
@ -105,7 +105,7 @@ public class DictController extends AbstractController {
|
|||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
@GetMapping("listdict/{dictParentId}")
|
@GetMapping("listdict/{dictParentId}")
|
||||||
public List<DictDTO> listDict(@PathVariable("dictParentId") String dictParentId) throws SearchException {
|
public List<DictDTO> listDict(@PathVariable("dictParentId") String dictParentId) throws SearchException {
|
||||||
Map<String, Object> params = getParams();
|
Map<String, Object> params = requestParams();
|
||||||
params.put("dictParentId", dictParentId);
|
params.put("dictParentId", dictParentId);
|
||||||
return dictService.listDict(params);
|
return dictService.listDict(params);
|
||||||
}
|
}
|
||||||
|
@ -150,6 +150,10 @@
|
|||||||
#{dictIds[${index}]}
|
#{dictIds[${index}]}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
<if test="isHide != null">
|
||||||
|
AND
|
||||||
|
t1.is_hide = #{isHide}
|
||||||
|
</if>
|
||||||
<choose>
|
<choose>
|
||||||
<when test="sort != null and (sort == 'dictName' or sort == 'dictCode' or sort == 'dictOrder')">
|
<when test="sort != null and (sort == 'dictName' or sort == 'dictCode' or sort == 'dictOrder')">
|
||||||
ORDER BY
|
ORDER BY
|
||||||
|
@ -463,8 +463,23 @@
|
|||||||
#{reporterIds[${index}]}
|
#{reporterIds[${index}]}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
<!-- <if test="caseTypeId != null and caseTypeId != ''">-->
|
||||||
|
<!-- AND t1.case_type_id = #{caseTypeId}-->
|
||||||
|
<!-- </if>-->
|
||||||
<if test="caseTypeId != null and caseTypeId != ''">
|
<if test="caseTypeId != null and caseTypeId != ''">
|
||||||
AND t1.case_type_id = #{caseTypeId}
|
AND t1.case_type_id IN (
|
||||||
|
SELECT
|
||||||
|
cd.dict_id
|
||||||
|
FROM
|
||||||
|
city_dict cd
|
||||||
|
WHERE
|
||||||
|
cd.is_delete = 0
|
||||||
|
AND (
|
||||||
|
dict_id = #{caseTypeId}
|
||||||
|
OR
|
||||||
|
dict_parent_id = #{caseTypeId}
|
||||||
|
)
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="caseStatus != null and caseStatus != ''">
|
<if test="caseStatus != null and caseStatus != ''">
|
||||||
AND FIND_IN_SET(t1.case_status, #{caseStatus})
|
AND FIND_IN_SET(t1.case_status, #{caseStatus})
|
||||||
@ -1883,10 +1898,10 @@
|
|||||||
AND case_type_id = #{caseTypeId}
|
AND case_type_id = #{caseTypeId}
|
||||||
</if>
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
AND gmt_create <![CDATA[ >= ]]> #{startTime}
|
AND LEFT(gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="endTime != null and endTime != ''">
|
<if test="endTime != null and endTime != ''">
|
||||||
AND gmt_create <![CDATA[ <= ]]> #{endTime}
|
AND LEFT(gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="handleDepartmentId != null and handleDepartmentId != ''">
|
<if test="handleDepartmentId != null and handleDepartmentId != ''">
|
||||||
AND (
|
AND (
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
|
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
|
||||||
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
|
||||||
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
||||||
|
<link rel="stylesheet" href="assets/js/vendor/zTree3/css/metroStyle/metroStyle.css"/>
|
||||||
<style>
|
<style>
|
||||||
.layui-table-cell{
|
.layui-table-cell{
|
||||||
height: auto;
|
height: auto;
|
||||||
@ -66,6 +67,7 @@
|
|||||||
{{# } }}
|
{{# } }}
|
||||||
</select>
|
</select>
|
||||||
</script>
|
</script>
|
||||||
|
<div class="layui-inline" id="deptContainer"></div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<input type="text" id="startTime" class="layui-input search-item"
|
<input type="text" id="startTime" class="layui-input search-item"
|
||||||
readonly="readonly" placeholder="开始时间" style="height: 38px;width:150px;cursor: pointer" autocomplete="off">
|
readonly="readonly" placeholder="开始时间" style="height: 38px;width:150px;cursor: pointer" autocomplete="off">
|
||||||
@ -96,7 +98,7 @@
|
|||||||
base: 'assets/layuiadmin/'
|
base: 'assets/layuiadmin/'
|
||||||
}).extend({
|
}).extend({
|
||||||
index: 'lib/index'
|
index: 'lib/index'
|
||||||
}).use(['index', 'table', 'laytpl', 'form','laydate'], function() {
|
}).use(['index', 'table', 'laytpl', 'form','laydate', 'selecttree'], function() {
|
||||||
var $ = layui.$;
|
var $ = layui.$;
|
||||||
var $win = $(window);
|
var $win = $(window);
|
||||||
var laytpl = layui.laytpl;
|
var laytpl = layui.laytpl;
|
||||||
@ -104,9 +106,15 @@
|
|||||||
var admin = layui.admin;
|
var admin = layui.admin;
|
||||||
var form = layui.form;
|
var form = layui.form;
|
||||||
var laydate = layui.laydate;
|
var laydate = layui.laydate;
|
||||||
|
var selecttree = layui.selecttree;
|
||||||
var tableUrl = 'api/reportcase/listpagereportcase?caseStatus=6';
|
var tableUrl = 'api/reportcase/listpagereportcase?caseStatus=6';
|
||||||
var dataLoading = false;
|
var dataLoading = false;
|
||||||
|
|
||||||
|
selecttree.dept({
|
||||||
|
elem: '#deptContainer',
|
||||||
|
name: 'dept',
|
||||||
|
});
|
||||||
|
|
||||||
// 初始化表格
|
// 初始化表格
|
||||||
function initTable() {
|
function initTable() {
|
||||||
dataLoading = true;
|
dataLoading = true;
|
||||||
@ -227,7 +235,9 @@
|
|||||||
|
|
||||||
//初始化地区
|
//初始化地区
|
||||||
function initArea(){
|
function initArea(){
|
||||||
top.restAjax.get('api/dict/listdict/9d179f05-3ea0-48f7-853c-d3b7124b791c', {}, null, function(code, data) {
|
top.restAjax.get('api/dict/listdict/9d179f05-3ea0-48f7-853c-d3b7124b791c', {
|
||||||
|
isHide: 0
|
||||||
|
}, null, function(code, data) {
|
||||||
laytpl(document.getElementById('areaSelectTemplate').innerHTML).render(data, function(html) {
|
laytpl(document.getElementById('areaSelectTemplate').innerHTML).render(data, function(html) {
|
||||||
document.getElementById('areaSelectTemplateBox').innerHTML = html;
|
document.getElementById('areaSelectTemplateBox').innerHTML = html;
|
||||||
});
|
});
|
||||||
@ -288,13 +298,15 @@
|
|||||||
var childCaseTypeId = $('#childCaseTypeId').val();
|
var childCaseTypeId = $('#childCaseTypeId').val();
|
||||||
var startTime = $('#startTime').val();
|
var startTime = $('#startTime').val();
|
||||||
var endTime = $('#endTime').val();
|
var endTime = $('#endTime').val();
|
||||||
|
var deptId = $('#deptId').val();
|
||||||
var params = '&t='+ new Date().getTime();
|
var params = '&t='+ new Date().getTime();
|
||||||
if('' != areaId && 'undefined' != typeof(areaId)) {
|
if('' != areaId && 'undefined' != typeof(areaId)) {
|
||||||
params += '&areaId='+ areaId;
|
params += '&areaId='+ areaId;
|
||||||
}
|
}
|
||||||
if('' != caseTypeId && '' != childCaseTypeId) {
|
if(childCaseTypeId) {
|
||||||
params += '&caseTypeId='+ childCaseTypeId;
|
caseTypeId = childCaseTypeId;
|
||||||
} else {
|
}
|
||||||
|
if(caseTypeId) {
|
||||||
params += '&caseTypeId='+ caseTypeId;
|
params += '&caseTypeId='+ caseTypeId;
|
||||||
}
|
}
|
||||||
if('' != startTime) {
|
if('' != startTime) {
|
||||||
@ -303,6 +315,9 @@
|
|||||||
if('' != endTime) {
|
if('' != endTime) {
|
||||||
params += '&endTime='+ endTime;
|
params += '&endTime='+ endTime;
|
||||||
}
|
}
|
||||||
|
if('' != deptId) {
|
||||||
|
params += '&departmentId='+ deptId;
|
||||||
|
}
|
||||||
return url + params;
|
return url + params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user