Compare commits
No commits in common. "116cc8a419179887b7b4466ae0550e2fbe1189cf" and "e49e3fe4edff43e803bde29b8ead487bafa0baf1" have entirely different histories.
116cc8a419
...
e49e3fe4ed
|
@ -9,15 +9,6 @@ export function listSspProblemmodify(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询质量整改统计
|
|
||||||
export function findGroupCount(query) {
|
|
||||||
return request({
|
|
||||||
url: '/trouble/sspProblemmodify/findGroupCount',
|
|
||||||
method: 'get',
|
|
||||||
params: query
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 查询质量整改详细
|
// 查询质量整改详细
|
||||||
export function getSspProblemmodify(id) {
|
export function getSspProblemmodify(id) {
|
||||||
return request({
|
return request({
|
||||||
|
@ -51,7 +42,6 @@ export function delSspProblemmodify(id) {
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//随手拍流程处理列表
|
//随手拍流程处理列表
|
||||||
export function auditinfoList(query) {
|
export function auditinfoList(query) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -126,11 +126,11 @@
|
||||||
</el-row>-->
|
</el-row>-->
|
||||||
|
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<el-tab-pane :label="tabs.all" name="all"></el-tab-pane>
|
<el-tab-pane label="全部数据" name="all"></el-tab-pane>
|
||||||
<el-tab-pane :label="tabs.dzg" name="dzg"></el-tab-pane>
|
<el-tab-pane label="待整改" name="dzg"></el-tab-pane>
|
||||||
<el-tab-pane :label="tabs.dqr" name="dqr"></el-tab-pane>
|
<el-tab-pane label="待复检" name="dqr"></el-tab-pane>
|
||||||
<el-tab-pane :label="tabs.ycl" name="ycl"></el-tab-pane>
|
<el-tab-pane label="整改完成" name="ycl"></el-tab-pane>
|
||||||
<el-tab-pane :label="tabs.zgcs" name="zgcs"></el-tab-pane>
|
<el-tab-pane label="整改超时" name="zgcs"></el-tab-pane>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="sspProblemmodifyList"
|
:data="sspProblemmodifyList"
|
||||||
|
@ -221,21 +221,10 @@
|
||||||
<div>{{ scope.row.copySendUser }}</div>
|
<div>{{ scope.row.copySendUser }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="提交用户" align="center" prop="createUser" width="100" />
|
||||||
label="提交用户"
|
<el-table-column label="提交时间" align="center" prop="createTime" width="135">
|
||||||
align="left"
|
|
||||||
prop="createUser"
|
|
||||||
width="120"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.createBy }}</div>
|
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{s}") }}</span>
|
||||||
<div>{{ scope.row.createUser }}</div>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="提交时间" align="center" prop="createTime" width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }}</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -399,7 +388,6 @@ import {
|
||||||
delSspProblemmodify,
|
delSspProblemmodify,
|
||||||
addSspProblemmodify,
|
addSspProblemmodify,
|
||||||
updateSspProblemmodify,
|
updateSspProblemmodify,
|
||||||
findGroupCount,
|
|
||||||
} from "@/api/trouble/sspProblemmodify";
|
} from "@/api/trouble/sspProblemmodify";
|
||||||
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
||||||
import sspProblemmodifyAuditinfoDrawer from "../sspProblemmodify/sspProblemmodifyAuditinfoDrawer.vue";
|
import sspProblemmodifyAuditinfoDrawer from "../sspProblemmodify/sspProblemmodifyAuditinfoDrawer.vue";
|
||||||
|
@ -478,17 +466,9 @@ export default {
|
||||||
formData: {
|
formData: {
|
||||||
problemmodifyId: null,
|
problemmodifyId: null,
|
||||||
},
|
},
|
||||||
tabs: {
|
|
||||||
all: "全部数据(0)",
|
|
||||||
dzg: "待整改(0)",
|
|
||||||
dqr: "待复检(0)",
|
|
||||||
ycl: "整改完成(0)",
|
|
||||||
zgcs: "整改超时(0)",
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.queryParams.activeName = this.activeName;
|
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$api.publics.getZgsDeptList().then((d) => {
|
this.$api.publics.getZgsDeptList().then((d) => {
|
||||||
this.depts = d?.data || [];
|
this.depts = d?.data || [];
|
||||||
|
@ -514,36 +494,12 @@ export default {
|
||||||
this.queryParams.params["beginMarksTime"] = this.daterangeMarksTime[0];
|
this.queryParams.params["beginMarksTime"] = this.daterangeMarksTime[0];
|
||||||
this.queryParams.params["endMarksTime"] = this.daterangeMarksTime[1];
|
this.queryParams.params["endMarksTime"] = this.daterangeMarksTime[1];
|
||||||
}
|
}
|
||||||
this.queryGroupCount();
|
|
||||||
listSspProblemmodify(this.queryParams).then((response) => {
|
listSspProblemmodify(this.queryParams).then((response) => {
|
||||||
this.sspProblemmodifyList = response.rows;
|
this.sspProblemmodifyList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
queryGroupCount() {
|
|
||||||
findGroupCount(this.queryParams).then((response) => {
|
|
||||||
if (response && response.data) {
|
|
||||||
let sum = 0;
|
|
||||||
if (response.data.check0) {
|
|
||||||
sum += response.data.check0;
|
|
||||||
this.tabs.dzg = "待整改(" + response.data.check0 + ")";
|
|
||||||
}
|
|
||||||
if (response.data.check1) {
|
|
||||||
sum += response.data.check1;
|
|
||||||
this.tabs.dqr = "待复检(" + response.data.check1 + ")";
|
|
||||||
}
|
|
||||||
if (response.data.check4) {
|
|
||||||
sum += response.data.check4;
|
|
||||||
this.tabs.ycl = "整改完成(" + response.data.check4 + ")";
|
|
||||||
}
|
|
||||||
this.tabs.all = "全部数据(" + sum + ")";
|
|
||||||
if (response.data.check99) {
|
|
||||||
this.tabs.zgcs = "整改超时(" + response.data.check99 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
|
|
@ -126,11 +126,11 @@
|
||||||
</el-row>-->
|
</el-row>-->
|
||||||
|
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<el-tab-pane :label="tabs.all" name="all"></el-tab-pane>
|
<el-tab-pane label="全部数据" name="all"></el-tab-pane>
|
||||||
<el-tab-pane :label="tabs.dzg" name="dzg"></el-tab-pane>
|
<el-tab-pane label="待整改" name="dzg"></el-tab-pane>
|
||||||
<el-tab-pane :label="tabs.dqr" name="dqr"></el-tab-pane>
|
<el-tab-pane label="待复检" name="dqr"></el-tab-pane>
|
||||||
<el-tab-pane :label="tabs.ycl" name="ycl"></el-tab-pane>
|
<el-tab-pane label="整改完成" name="ycl"></el-tab-pane>
|
||||||
<el-tab-pane :label="tabs.zgcs" name="zgcs"></el-tab-pane>
|
<el-tab-pane label="整改超时" name="zgcs"></el-tab-pane>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="sspProblemmodifyList"
|
:data="sspProblemmodifyList"
|
||||||
|
@ -222,21 +222,10 @@
|
||||||
<div>{{ scope.row.copySendUser }}</div>
|
<div>{{ scope.row.copySendUser }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="提交用户" align="center" prop="createUser" width="100" />
|
||||||
label="提交用户"
|
<el-table-column label="提交时间" align="center" prop="createTime" width="135">
|
||||||
align="left"
|
|
||||||
prop="createUser"
|
|
||||||
width="120"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.createBy }}</div>
|
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{s}") }}</span>
|
||||||
<div>{{ scope.row.createUser }}</div>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="提交时间" align="center" prop="createTime" width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }}</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -393,7 +382,6 @@ import {
|
||||||
delSspProblemmodify,
|
delSspProblemmodify,
|
||||||
addSspProblemmodify,
|
addSspProblemmodify,
|
||||||
updateSspProblemmodify,
|
updateSspProblemmodify,
|
||||||
findGroupCount,
|
|
||||||
} from "@/api/trouble/sspProblemmodify";
|
} from "@/api/trouble/sspProblemmodify";
|
||||||
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
||||||
import sspProblemmodifyAuditinfoDrawer from "./sspProblemmodifyAuditinfoDrawer.vue";
|
import sspProblemmodifyAuditinfoDrawer from "./sspProblemmodifyAuditinfoDrawer.vue";
|
||||||
|
@ -472,17 +460,9 @@ export default {
|
||||||
formData: {
|
formData: {
|
||||||
problemmodifyId: null,
|
problemmodifyId: null,
|
||||||
},
|
},
|
||||||
tabs: {
|
|
||||||
all: "全部数据(0)",
|
|
||||||
dzg: "待整改(0)",
|
|
||||||
dqr: "待复检(0)",
|
|
||||||
ycl: "整改完成(0)",
|
|
||||||
zgcs: "整改超时(0)",
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.queryParams.activeName = this.activeName;
|
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$api.publics.getZgsDeptList().then((d) => {
|
this.$api.publics.getZgsDeptList().then((d) => {
|
||||||
this.depts = d?.data || [];
|
this.depts = d?.data || [];
|
||||||
|
@ -508,36 +488,12 @@ export default {
|
||||||
this.queryParams.params["beginMarksTime"] = this.daterangeMarksTime[0];
|
this.queryParams.params["beginMarksTime"] = this.daterangeMarksTime[0];
|
||||||
this.queryParams.params["endMarksTime"] = this.daterangeMarksTime[1];
|
this.queryParams.params["endMarksTime"] = this.daterangeMarksTime[1];
|
||||||
}
|
}
|
||||||
this.queryGroupCount();
|
|
||||||
listSspProblemmodify(this.queryParams).then((response) => {
|
listSspProblemmodify(this.queryParams).then((response) => {
|
||||||
this.sspProblemmodifyList = response.rows;
|
this.sspProblemmodifyList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
queryGroupCount() {
|
|
||||||
findGroupCount(this.queryParams).then((response) => {
|
|
||||||
if (response && response.data) {
|
|
||||||
let sum = 0;
|
|
||||||
if (response.data.check0) {
|
|
||||||
sum += response.data.check0;
|
|
||||||
this.tabs.dzg = "待整改(" + response.data.check0 + ")";
|
|
||||||
}
|
|
||||||
if (response.data.check1) {
|
|
||||||
sum += response.data.check1;
|
|
||||||
this.tabs.dqr = "待复检(" + response.data.check1 + ")";
|
|
||||||
}
|
|
||||||
if (response.data.check4) {
|
|
||||||
sum += response.data.check4;
|
|
||||||
this.tabs.ycl = "整改完成(" + response.data.check4 + ")";
|
|
||||||
}
|
|
||||||
this.tabs.all = "全部数据(" + sum + ")";
|
|
||||||
if (response.data.check99) {
|
|
||||||
this.tabs.zgcs = "整改超时(" + response.data.check99 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
|
|
@ -2,10 +2,6 @@ package com.yanzhu.jh.project.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.ruoyi.common.core.text.Convert;
|
|
||||||
import com.ruoyi.common.enums.SysRoleEnum;
|
|
||||||
import com.ruoyi.system.service.ISysDeptService;
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
@ -38,9 +34,6 @@ public class SurProjectInsuranceController extends BaseController
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISurProjectInsuranceService surProjectInsuranceService;
|
private ISurProjectInsuranceService surProjectInsuranceService;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private ISysDeptService sysDeptService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询项目保险列表
|
* 查询项目保险列表
|
||||||
*/
|
*/
|
||||||
|
@ -49,13 +42,6 @@ public class SurProjectInsuranceController extends BaseController
|
||||||
public TableDataInfo list(SurProjectInsurance surProjectInsurance)
|
public TableDataInfo list(SurProjectInsurance surProjectInsurance)
|
||||||
{
|
{
|
||||||
startPage();
|
startPage();
|
||||||
surProjectInsurance.setNowRole(Convert.toStr(getUserFirstRole()));
|
|
||||||
if(SysRoleEnum.ZGS.getCode().equals(surProjectInsurance.getNowRole())){
|
|
||||||
surProjectInsurance.setNowDept(Convert.toStr(sysDeptService.getZGSDeptId(getDeptId())));
|
|
||||||
}else{
|
|
||||||
surProjectInsurance.setNowDept(Convert.toStr(getDeptId()));
|
|
||||||
}
|
|
||||||
surProjectInsurance.setNowUser(Convert.toStr(getUserId()));
|
|
||||||
List<SurProjectInsurance> list = surProjectInsuranceService.selectSurProjectInsuranceList(surProjectInsurance);
|
List<SurProjectInsurance> list = surProjectInsuranceService.selectSurProjectInsuranceList(surProjectInsurance);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,7 @@ import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.ruoyi.common.core.text.Convert;
|
|
||||||
import com.ruoyi.common.enums.SysRoleEnum;
|
|
||||||
import com.ruoyi.common.utils.file.ImageUtils;
|
import com.ruoyi.common.utils.file.ImageUtils;
|
||||||
import com.ruoyi.system.service.ISysDeptService;
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
@ -40,9 +37,6 @@ public class SurProjectWorkAttendanceController extends BaseController
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISurProjectWorkAttendanceService surProjectWorkAttendanceService;
|
private ISurProjectWorkAttendanceService surProjectWorkAttendanceService;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private ISysDeptService sysDeptService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询项目出勤列表
|
* 查询项目出勤列表
|
||||||
*/
|
*/
|
||||||
|
@ -51,13 +45,6 @@ public class SurProjectWorkAttendanceController extends BaseController
|
||||||
public TableDataInfo list(SurProjectWorkAttendance surProjectWorkAttendance)
|
public TableDataInfo list(SurProjectWorkAttendance surProjectWorkAttendance)
|
||||||
{
|
{
|
||||||
startPage();
|
startPage();
|
||||||
surProjectWorkAttendance.setNowRole(Convert.toStr(getUserFirstRole()));
|
|
||||||
if(SysRoleEnum.ZGS.getCode().equals(surProjectWorkAttendance.getNowRole())){
|
|
||||||
surProjectWorkAttendance.setNowDept(Convert.toStr(sysDeptService.getZGSDeptId(getDeptId())));
|
|
||||||
}else{
|
|
||||||
surProjectWorkAttendance.setNowDept(Convert.toStr(getDeptId()));
|
|
||||||
}
|
|
||||||
surProjectWorkAttendance.setNowUser(Convert.toStr(getUserId()));
|
|
||||||
List<SurProjectWorkAttendance> list = surProjectWorkAttendanceService.selectSurProjectWorkAttendanceList(surProjectWorkAttendance);
|
List<SurProjectWorkAttendance> list = surProjectWorkAttendanceService.selectSurProjectWorkAttendanceList(surProjectWorkAttendance);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,23 +65,6 @@ public class SmzSspProblemmodifyController extends BaseController
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 统计随手拍数量
|
|
||||||
*/
|
|
||||||
@PreAuthorize("@ss.hasPermi('trouble:sspProblemmodify:query')")
|
|
||||||
@GetMapping("/findGroupCount")
|
|
||||||
public AjaxResult findGroupCount(SmzSspProblemmodify smzSspProblemmodify)
|
|
||||||
{
|
|
||||||
smzSspProblemmodify.setNowRole(Convert.toStr(getUserFirstRole()));
|
|
||||||
if(SysRoleEnum.ZGS.getCode().equals(smzSspProblemmodify.getNowRole())){
|
|
||||||
smzSspProblemmodify.setNowDept(Convert.toStr(sysDeptService.getZGSDeptId(getDeptId())));
|
|
||||||
}else{
|
|
||||||
smzSspProblemmodify.setNowDept(Convert.toStr(getDeptId()));
|
|
||||||
}
|
|
||||||
smzSspProblemmodify.setNowUser(getLoginUser().getUsername());
|
|
||||||
return success(smzSspProblemmodifyService.findProblemmodifyGroupByCheckState(smzSspProblemmodify));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出质量整改列表
|
* 导出质量整改列表
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,6 @@ import com.yanzhu.jh.trouble.domain.SmzSspProblemmodify;
|
||||||
import com.yanzhu.jh.trouble.domain.where.SmzSspProblemmodifyWhere;
|
import com.yanzhu.jh.trouble.domain.where.SmzSspProblemmodifyWhere;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 质量整改Mapper接口
|
* 质量整改Mapper接口
|
||||||
|
@ -30,20 +29,6 @@ public interface SmzSspProblemmodifyMapper
|
||||||
*/
|
*/
|
||||||
public List<SmzSspProblemmodify> selectSmzSspProblemmodifyList(SmzSspProblemmodify smzSspProblemmodify);
|
public List<SmzSspProblemmodify> selectSmzSspProblemmodifyList(SmzSspProblemmodify smzSspProblemmodify);
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据状态分组统计数量
|
|
||||||
* @param smzSspProblemmodify 查询条件
|
|
||||||
* @return List<Map<String, Integer>>
|
|
||||||
*/
|
|
||||||
public List<Map<String, Object>> findProblemmodifyGroupByCheckState(SmzSspProblemmodify smzSspProblemmodify);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据状态分组统计数量
|
|
||||||
* @param smzSspProblemmodify 查询条件
|
|
||||||
* @return Integer
|
|
||||||
*/
|
|
||||||
public Integer findProblemmodifyTimeoutCount(SmzSspProblemmodify smzSspProblemmodify);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增质量整改
|
* 新增质量整改
|
||||||
*
|
*
|
||||||
|
@ -107,5 +92,4 @@ public interface SmzSspProblemmodifyMapper
|
||||||
public List<SmzSspProblemmodify> groupByInfotypeCheckState(SmzSspProblemmodifyWhere where);
|
public List<SmzSspProblemmodify> groupByInfotypeCheckState(SmzSspProblemmodifyWhere where);
|
||||||
|
|
||||||
public int countTimeout(SmzSspProblemmodifyWhere where);
|
public int countTimeout(SmzSspProblemmodifyWhere where);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
package com.yanzhu.jh.trouble.service;
|
package com.yanzhu.jh.trouble.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.yanzhu.jh.trouble.domain.SmzSspProblemmodify;
|
import com.yanzhu.jh.trouble.domain.SmzSspProblemmodify;
|
||||||
import com.yanzhu.jh.trouble.domain.where.SmzSspProblemmodifyWhere;
|
import com.yanzhu.jh.trouble.domain.where.SmzSspProblemmodifyWhere;
|
||||||
|
|
||||||
|
@ -30,13 +28,6 @@ public interface ISmzSspProblemmodifyService
|
||||||
*/
|
*/
|
||||||
public List<SmzSspProblemmodify> selectSmzSspProblemmodifyList(SmzSspProblemmodify smzSspProblemmodify);
|
public List<SmzSspProblemmodify> selectSmzSspProblemmodifyList(SmzSspProblemmodify smzSspProblemmodify);
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据状态分组统计数量
|
|
||||||
* @param smzSspProblemmodify 查询条件
|
|
||||||
* @return List<Map<String, Integer>>
|
|
||||||
*/
|
|
||||||
public Map<String, Object> findProblemmodifyGroupByCheckState(SmzSspProblemmodify smzSspProblemmodify);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增质量整改
|
* 新增质量整改
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
package com.yanzhu.jh.trouble.service.impl;
|
package com.yanzhu.jh.trouble.service.impl;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.ruoyi.common.utils.DateUtils;
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
import com.yanzhu.jh.trouble.domain.where.SmzSspProblemmodifyWhere;
|
import com.yanzhu.jh.trouble.domain.where.SmzSspProblemmodifyWhere;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -48,24 +45,6 @@ public class SmzSspProblemmodifyServiceImpl implements ISmzSspProblemmodifyServi
|
||||||
return smzSspProblemmodifyMapper.selectSmzSspProblemmodifyList(smzSspProblemmodify);
|
return smzSspProblemmodifyMapper.selectSmzSspProblemmodifyList(smzSspProblemmodify);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据状态分组统计数量
|
|
||||||
* @param smzSspProblemmodify 查询条件
|
|
||||||
* @return List<Map<String, Integer>>
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public Map<String, Object> findProblemmodifyGroupByCheckState(SmzSspProblemmodify smzSspProblemmodify) {
|
|
||||||
List<Map<String, Object>> dataList = smzSspProblemmodifyMapper.findProblemmodifyGroupByCheckState(smzSspProblemmodify);
|
|
||||||
Map<String, Object> dataMap = new HashMap<>();
|
|
||||||
if(dataList!=null && dataList.size()>0){
|
|
||||||
for(Map<String, Object> map:dataList){
|
|
||||||
dataMap.put("check"+map.get("checkState"),map.get("total"));
|
|
||||||
}
|
|
||||||
dataMap.put("check99",smzSspProblemmodifyMapper.findProblemmodifyTimeoutCount(smzSspProblemmodify));
|
|
||||||
}
|
|
||||||
return dataMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增质量整改
|
* 新增质量整改
|
||||||
*
|
*
|
||||||
|
|
|
@ -58,10 +58,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN sur_project_insurance spi ON spi.project_id = sp.id
|
LEFT JOIN sur_project_insurance spi ON spi.project_id = sp.id
|
||||||
AND spi.insurance_type = sdd.dict_value
|
AND spi.insurance_type = sdd.dict_value
|
||||||
AND spi.is_del = 0
|
AND spi.is_del = 0
|
||||||
<!--监理单位/总包公司/分包单位-->
|
|
||||||
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> left join sur_project_unit_info spui on spui.projectId = sp.id</if>
|
|
||||||
<!--普通用户查询项目人员-->
|
|
||||||
<if test='nowRole == "99"'> left join sur_project_userinfo spu on spu.project_id = sp.id</if>
|
|
||||||
<where>
|
<where>
|
||||||
and sp.isDel=0
|
and sp.isDel=0
|
||||||
and spui.del_flag=0
|
and spui.del_flag=0
|
||||||
|
@ -74,14 +70,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test='insuranceState == "0"'>and spi.insurance_state IS NULL</if>
|
<if test='insuranceState == "0"'>and spi.insurance_state IS NULL</if>
|
||||||
<if test='insuranceState == "1"'>and spi.insurance_state IS NOT NULL</if>
|
<if test='insuranceState == "1"'>and spi.insurance_state IS NOT NULL</if>
|
||||||
<if test="insuranceType != null and insuranceType != ''"> and spi.insurance_type = #{insuranceType}</if>
|
<if test="insuranceType != null and insuranceType != ''"> and spi.insurance_type = #{insuranceType}</if>
|
||||||
<!-- 查询条件-项目部门 -->
|
|
||||||
<if test="projectDeptId != null "> and sp.deptId = #{projectDeptId}</if>
|
|
||||||
<!--子部门数据-->
|
|
||||||
<if test='nowRole == "4"'> and sp.deptId = #{nowDept}</if>
|
|
||||||
<!--监理单位/总包公司/分包单位查询当前关联数据-->
|
|
||||||
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> and spui.unitId = #{nowDept}</if>
|
|
||||||
<!--普通用户查询项目人员-->
|
|
||||||
<if test='nowRole == "99"'> and spu.user_id = #{nowUser} and spu.is_del=0</if>
|
|
||||||
</where>
|
</where>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
sp.projectSort,
|
sp.projectSort,
|
||||||
|
|
|
@ -47,10 +47,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
sur_project_work_attendance spwa
|
sur_project_work_attendance spwa
|
||||||
left join sur_project sp on sp.id=spwa.project_id
|
left join sur_project sp on sp.id=spwa.project_id
|
||||||
left join sys_dept d on d.dept_id=spwa.dept_id
|
left join sys_dept d on d.dept_id=spwa.dept_id
|
||||||
<!--监理单位/总包公司/分包单位-->
|
|
||||||
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> left join sur_project_unit_info spui on spui.projectId = sp.id</if>
|
|
||||||
<!--普通用户查询项目人员-->
|
|
||||||
<if test='nowRole == "99"'> left join sur_project_userinfo spu on spu.project_id = sp.id</if>
|
|
||||||
<where>
|
<where>
|
||||||
and spwa.is_del=0
|
and spwa.is_del=0
|
||||||
<if test="projectId != null "> and spwa.project_id = #{projectId}</if>
|
<if test="projectId != null "> and spwa.project_id = #{projectId}</if>
|
||||||
|
@ -59,14 +55,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="deptName != null and deptName != ''"> and d.dept_name like concat('%', #{deptName}, '%')</if>
|
<if test="deptName != null and deptName != ''"> and d.dept_name like concat('%', #{deptName}, '%')</if>
|
||||||
<if test="params.beginWorkDate != null and params.beginWorkDate != '' and params.endWorkDate != null and params.endWorkDate != ''"> and spwa.work_date between #{params.beginWorkDate} and #{params.endWorkDate}</if>
|
<if test="params.beginWorkDate != null and params.beginWorkDate != '' and params.endWorkDate != null and params.endWorkDate != ''"> and spwa.work_date between #{params.beginWorkDate} and #{params.endWorkDate}</if>
|
||||||
<if test="workDate != null"> and DATE_FORMAT(spwa.work_date,'%Y-%m-%d')=DATE_FORMAT(#{workDate},'%Y-%m-%d')</if>
|
<if test="workDate != null"> and DATE_FORMAT(spwa.work_date,'%Y-%m-%d')=DATE_FORMAT(#{workDate},'%Y-%m-%d')</if>
|
||||||
<!-- 查询条件-项目部门 -->
|
|
||||||
<if test="projectDeptId != null "> and sp.deptId = #{projectDeptId}</if>
|
|
||||||
<!--子部门数据-->
|
|
||||||
<if test='nowRole == "4"'> and sp.deptId = #{nowDept}</if>
|
|
||||||
<!--监理单位/总包公司/分包单位查询当前关联数据-->
|
|
||||||
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> and spui.unitId = #{nowDept}</if>
|
|
||||||
<!--普通用户查询项目人员-->
|
|
||||||
<if test='nowRole == "99"'> and spu.user_id = #{nowUser} and spu.is_del=0</if>
|
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
END AS v_del
|
END AS v_del
|
||||||
from vw_smz_ssp_problemmodify_audit ssp
|
from vw_smz_ssp_problemmodify_audit ssp
|
||||||
left join sur_project sp on ssp.projectId = sp.id
|
left join sur_project sp on ssp.projectId = sp.id
|
||||||
<!--监理单位/总包公司/分包单位-->
|
|
||||||
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> left join sur_project_unit_info spui on spui.projectId = sp.id</if>
|
|
||||||
<where>
|
<where>
|
||||||
and ssp.isDel=0
|
and ssp.isDel=0
|
||||||
<if test="projectId != null "> and ssp.projectId = #{projectId}</if>
|
<if test="projectId != null "> and ssp.projectId = #{projectId}</if>
|
||||||
|
@ -96,54 +94,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
order by createTime desc
|
order by createTime desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--根据状态分组查询-->
|
|
||||||
<select id="findProblemmodifyGroupByCheckState" parameterType="SmzSspProblemmodify" resultType="map">
|
|
||||||
SELECT ssp.checkState,COUNT(ssp.id) total FROM smz_ssp_problemmodify ssp
|
|
||||||
left join sur_project sp on ssp.projectId = sp.id
|
|
||||||
<!--监理单位/总包公司/分包单位-->
|
|
||||||
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> left join sur_project_unit_info spui on spui.projectId = sp.id</if>
|
|
||||||
WHERE ssp.isDel=0
|
|
||||||
<if test="infoType !=null">and infoType=#{infoType}</if>
|
|
||||||
<if test="problemArea != null and problemArea != ''"> and ssp.problemArea like concat('%', #{problemArea}, '%')</if>
|
|
||||||
<if test="workParts != null and workParts != ''"> and ssp.workParts like concat('%', #{workParts}, '%')</if>
|
|
||||||
<if test="createUser != null and createUser != ''"> and ssp.createUser like concat('%', #{createUser}, '%')</if>
|
|
||||||
<if test="dangerType != null and dangerType != ''"> and ssp.danger_type = #{dangerType}</if>
|
|
||||||
<if test="params.beginMarksTime != null and params.beginMarksTime != '' and params.endMarksTime != null and params.endMarksTime != ''"> and ssp.createTime between #{params.beginMarksTime} and #{params.endMarksTime}</if>
|
|
||||||
<!-- 查询条件-项目部门 -->
|
|
||||||
<if test="projectDeptId != null "> and sp.deptId = #{projectDeptId}</if>
|
|
||||||
<!--子部门数据-->
|
|
||||||
<if test='nowRole == "4"'> and sp.deptId = #{nowDept}</if>
|
|
||||||
<!--监理单位/总包公司/分包单位查询当前关联数据-->
|
|
||||||
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> and spui.unitId = #{nowDept}</if>
|
|
||||||
<!--普通整改人是我,复检人是我,抄送人是我,提交人是我的数据-->
|
|
||||||
<if test='nowRole == "99"'> and (ssp.lordSentUser = #{nowUser} or ssp.copySendUser = #{nowUser} or ssp.recheckSendUser = #{nowUser} or ssp.createUser = #{nowUser} )</if>
|
|
||||||
GROUP BY checkState
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!--整改超时数-->
|
|
||||||
<select id="findProblemmodifyTimeoutCount" parameterType="SmzSspProblemmodify" resultType="Integer">
|
|
||||||
SELECT ssp.checkState,COUNT(ssp.id) total FROM smz_ssp_problemmodify ssp
|
|
||||||
left join sur_project sp on ssp.projectId = sp.id
|
|
||||||
<!--监理单位/总包公司/分包单位-->
|
|
||||||
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> left join sur_project_unit_info spui on spui.projectId = sp.id</if>
|
|
||||||
WHERE ssp.isDel=0
|
|
||||||
and (date(NOW())<![CDATA[ > ]]> date(ssp.nickedTime) and (ssp.updateTime is null or date(ssp.updateTime) <![CDATA[ > ]]> date(ssp.nickedTime)))
|
|
||||||
<if test="infoType !=null">and infoType=#{infoType}</if>
|
|
||||||
<if test="problemArea != null and problemArea != ''"> and ssp.problemArea like concat('%', #{problemArea}, '%')</if>
|
|
||||||
<if test="workParts != null and workParts != ''"> and ssp.workParts like concat('%', #{workParts}, '%')</if>
|
|
||||||
<if test="createUser != null and createUser != ''"> and ssp.createUser like concat('%', #{createUser}, '%')</if>
|
|
||||||
<if test="dangerType != null and dangerType != ''"> and ssp.danger_type = #{dangerType}</if>
|
|
||||||
<if test="params.beginMarksTime != null and params.beginMarksTime != '' and params.endMarksTime != null and params.endMarksTime != ''"> and ssp.createTime between #{params.beginMarksTime} and #{params.endMarksTime}</if>
|
|
||||||
<!-- 查询条件-项目部门 -->
|
|
||||||
<if test="projectDeptId != null "> and sp.deptId = #{projectDeptId}</if>
|
|
||||||
<!--子部门数据-->
|
|
||||||
<if test='nowRole == "4"'> and sp.deptId = #{nowDept}</if>
|
|
||||||
<!--监理单位/总包公司/分包单位查询当前关联数据-->
|
|
||||||
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> and spui.unitId = #{nowDept}</if>
|
|
||||||
<!--普通整改人是我,复检人是我,抄送人是我,提交人是我的数据-->
|
|
||||||
<if test='nowRole == "99"'> and (ssp.lordSentUser = #{nowUser} or ssp.copySendUser = #{nowUser} or ssp.recheckSendUser = #{nowUser} or ssp.createUser = #{nowUser} )</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectSmzSspProblemmodifyById" parameterType="Long" resultMap="SmzSspProblemmodifyResult">
|
<select id="selectSmzSspProblemmodifyById" parameterType="Long" resultMap="SmzSspProblemmodifyResult">
|
||||||
<include refid="selectSmzSspProblemmodifyVo"/>
|
<include refid="selectSmzSspProblemmodifyVo"/>
|
||||||
|
|
Loading…
Reference in New Issue