测试问题项修改
This commit is contained in:
parent
c2ea36160f
commit
12a3cc8887
|
|
@ -36,6 +36,7 @@ public class TmTask implements Serializable {
|
||||||
private Long parentId;
|
private Long parentId;
|
||||||
private Integer outNum;
|
private Integer outNum;
|
||||||
private Long deptId;
|
private Long deptId;
|
||||||
|
private String nickName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 任务类型(定义数据字典)
|
* 任务类型(定义数据字典)
|
||||||
|
|
|
||||||
|
|
@ -627,7 +627,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
List<LeaseApplyInfo> collect = tmTaskMapper.getAuditManageListByLeaseInfo(tmTask);
|
List<LeaseApplyInfo> collect = tmTaskMapper.getAuditManageListByLeaseInfo(tmTask);
|
||||||
if (collect.size() > 0) {
|
if (collect.size() > 0) {
|
||||||
int deptId1 = tmTaskMapper.getDeptId(collect.get(0).getCreateBy());
|
int deptId1 = tmTaskMapper.getDeptId(collect.get(0).getCreateBy());
|
||||||
//施管部只能看到机具分公司(101)的数据
|
//机具经理、书记、副经理查看数据
|
||||||
if (deptId == 101) {
|
if (deptId == 101) {
|
||||||
List<LeaseApplyInfo> auditListByLeaseInfo = collect.stream().filter(t -> t.getCompanyId() != null).filter(t -> t.getCompanyId() == 101).collect(Collectors.toList());
|
List<LeaseApplyInfo> auditListByLeaseInfo = collect.stream().filter(t -> t.getCompanyId() != null).filter(t -> t.getCompanyId() == 101).collect(Collectors.toList());
|
||||||
if (deptId1 == 101) {
|
if (deptId1 == 101) {
|
||||||
|
|
@ -657,6 +657,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 调试公司可以看到的数据权限
|
||||||
if (deptId == 102) {
|
if (deptId == 102) {
|
||||||
List<LeaseApplyInfo> auditListByLeaseInfo = collect.stream().filter(t -> t.getCompanyId() != null).filter(t -> t.getCompanyId() == 102).collect(Collectors.toList());
|
List<LeaseApplyInfo> auditListByLeaseInfo = collect.stream().filter(t -> t.getCompanyId() != null).filter(t -> t.getCompanyId() == 102).collect(Collectors.toList());
|
||||||
if (deptId1 == 102) {
|
if (deptId1 == 102) {
|
||||||
|
|
@ -686,7 +687,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//只能查詢改部門下的數據
|
//其他各分公司可以看到的数据权限
|
||||||
if (deptId == deptId1) {
|
if (deptId == deptId1) {
|
||||||
// 对领料任务集合查询具体详情
|
// 对领料任务集合查询具体详情
|
||||||
for (LeaseApplyInfo leaseApplyInfo : collect) {
|
for (LeaseApplyInfo leaseApplyInfo : collect) {
|
||||||
|
|
|
||||||
|
|
@ -913,7 +913,7 @@
|
||||||
</select>
|
</select>
|
||||||
<select id="getAuditListByLeaseTmTaskByPeople" resultType="com.bonus.sgzb.app.domain.TmTask">
|
<select id="getAuditListByLeaseTmTaskByPeople" resultType="com.bonus.sgzb.app.domain.TmTask">
|
||||||
SELECT DISTINCT
|
SELECT DISTINCT
|
||||||
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
|
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,su.nick_name as nickName,
|
||||||
bpl.lot_id as proId,bpl.lot_name as proName,
|
bpl.lot_id as proId,bpl.lot_name as proName,
|
||||||
bui.unit_id as unitId,bui.unit_name as unitName,
|
bui.unit_id as unitId,bui.unit_name as unitName,
|
||||||
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime,
|
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue