|
@@ -85,7 +85,9 @@ public class GyDataServiceImpl implements GyDataService {
|
|
city = sysCity;
|
|
city = sysCity;
|
|
}
|
|
}
|
|
|
|
|
|
- if(!ObjectUtils.isEmpty(city)){
|
|
|
|
|
|
+ String gyUnitId = currUser.getGyUnitId();
|
|
|
|
+ map.put("unitId", gyUnitId);
|
|
|
|
+ if (!ObjectUtils.isEmpty(city)) {
|
|
map.put("unitCity", city);
|
|
map.put("unitCity", city);
|
|
map.put("auditStage", "1");
|
|
map.put("auditStage", "1");
|
|
} else {
|
|
} else {
|
|
@@ -116,8 +118,9 @@ public class GyDataServiceImpl implements GyDataService {
|
|
if(StringUtils.isEmpty(city)){
|
|
if(StringUtils.isEmpty(city)){
|
|
city = sysCity;
|
|
city = sysCity;
|
|
}
|
|
}
|
|
-
|
|
|
|
- if(!ObjectUtils.isEmpty(city)){
|
|
|
|
|
|
+ String gyUnitId = currUser.getGyUnitId();
|
|
|
|
+ map.put("unitId", gyUnitId);
|
|
|
|
+ if (!ObjectUtils.isEmpty(city)) {
|
|
map.put("unitCity", city);
|
|
map.put("unitCity", city);
|
|
map.put("auditStage", "1");
|
|
map.put("auditStage", "1");
|
|
} else {
|
|
} else {
|
|
@@ -673,8 +676,9 @@ public class GyDataServiceImpl implements GyDataService {
|
|
city = sysCity;
|
|
city = sysCity;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- if(!ObjectUtils.isEmpty(city)){
|
|
|
|
|
|
+ String gyUnitId = currUser.getGyUnitId();
|
|
|
|
+ map.put("unitId", gyUnitId);
|
|
|
|
+ if (!ObjectUtils.isEmpty(city)) {
|
|
map.put("unitCity", city);
|
|
map.put("unitCity", city);
|
|
map.put("auditStage", "1");
|
|
map.put("auditStage", "1");
|
|
} else {
|
|
} else {
|
|
@@ -703,8 +707,9 @@ public class GyDataServiceImpl implements GyDataService {
|
|
if(StringUtils.isEmpty(city)){
|
|
if(StringUtils.isEmpty(city)){
|
|
city = sysCity;
|
|
city = sysCity;
|
|
}
|
|
}
|
|
-
|
|
|
|
- if(!ObjectUtils.isEmpty(city)){
|
|
|
|
|
|
+ String gyUnitId = currUser.getGyUnitId();
|
|
|
|
+ map.put("unitId", gyUnitId);
|
|
|
|
+ if (!ObjectUtils.isEmpty(city)) {
|
|
map.put("unitCity", city);
|
|
map.put("unitCity", city);
|
|
map.put("auditStage", "1");
|
|
map.put("auditStage", "1");
|
|
} else {
|
|
} else {
|
|
@@ -783,11 +788,62 @@ public class GyDataServiceImpl implements GyDataService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<GyDataImportDTO> dataEntryList(Map<String, Object> map) {
|
|
public List<GyDataImportDTO> dataEntryList(Map<String, Object> map) {
|
|
- return gyDataDao.list(map);
|
|
|
|
|
|
+ UserDO currUser = ShiroUtils.getUser();
|
|
|
|
+ log.info("currUser:" + currUser.toString());
|
|
|
|
+ if (!managerValue.contains(currUser.getDeptId().toString())) {
|
|
|
|
+ String province = currUser.getProvince();
|
|
|
|
+ if (StringUtils.isEmpty(province)) {
|
|
|
|
+ province = sysProvince;
|
|
|
|
+ }
|
|
|
|
+ if (!ObjectUtils.isEmpty(province)) {
|
|
|
|
+ map.put("unitProvince", province);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String city = currUser.getCity();
|
|
|
|
+ if (StringUtils.isEmpty(city)) {
|
|
|
|
+ city = sysCity;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String gyUnitId = currUser.getGyUnitId();
|
|
|
|
+ map.put("unitId", gyUnitId);
|
|
|
|
+ if (!ObjectUtils.isEmpty(city)) {
|
|
|
|
+ map.put("unitCity", city);
|
|
|
|
+ map.put("auditStage", "1");
|
|
|
|
+ } else {
|
|
|
|
+ map.put("auditStage", "2");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ return gyDataDao.list(map);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public int dataEntryCountTotal(Map<String, Object> map) {
|
|
public int dataEntryCountTotal(Map<String, Object> map) {
|
|
|
|
+ UserDO currUser = ShiroUtils.getUser();
|
|
|
|
+ log.info("currUser:" + currUser.toString());
|
|
|
|
+ if (!managerValue.contains(currUser.getDeptId().toString())) {
|
|
|
|
+
|
|
|
|
+ String province = currUser.getProvince();
|
|
|
|
+ if (StringUtils.isEmpty(province)) {
|
|
|
|
+ province = sysProvince;
|
|
|
|
+ }
|
|
|
|
+ if (!ObjectUtils.isEmpty(province)) {
|
|
|
|
+ map.put("unitProvince", province);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String city = currUser.getCity();
|
|
|
|
+ if (StringUtils.isEmpty(city)) {
|
|
|
|
+ city = sysCity;
|
|
|
|
+ }
|
|
|
|
+ String gyUnitId = currUser.getGyUnitId();
|
|
|
|
+ map.put("unitId", gyUnitId);
|
|
|
|
+ if (!ObjectUtils.isEmpty(city)) {
|
|
|
|
+ map.put("unitCity", city);
|
|
|
|
+ map.put("auditStage", "1");
|
|
|
|
+ } else {
|
|
|
|
+ map.put("auditStage", "2");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return gyDataDao.countTotal(map);
|
|
return gyDataDao.countTotal(map);
|
|
}
|
|
}
|
|
|
|
|