|
@@ -24,6 +24,7 @@ import com.ruoyi.system.service.projectV2.IZsyzProjectDeptService;
|
|
|
import com.ruoyi.system.service.projectV2.IZsyzSbbzbService;
|
|
|
import com.ruoyi.system.service.projectV2.IZsyzShyjService;
|
|
|
import com.ruoyi.system.service.projectV2.common.IZsyzCommonService;
|
|
|
+import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.jacoco.agent.rt.internal_035b120.core.internal.flow.IFrame;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -498,6 +499,12 @@ public class ZsyzCommonServiceImpL implements IZsyzCommonService {
|
|
|
*/
|
|
|
@Override
|
|
|
public AjaxResult census(ZsyzSbbzb zsyzSbbzb) {
|
|
|
+ Map<String, Object> paramsMap = zsyzSbbzb.getParams();
|
|
|
+ Object year = paramsMap.get("year");
|
|
|
+ if (ObjectUtils.isNotEmpty(year)){
|
|
|
+ paramsMap.put("beginTime",year+"0101");
|
|
|
+ paramsMap.put("endTime",year+"1231");
|
|
|
+ }
|
|
|
Long deptId = SecurityUtils.getDeptId();
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
//定义返回值
|
|
@@ -604,7 +611,7 @@ public class ZsyzCommonServiceImpL implements IZsyzCommonService {
|
|
|
|
|
|
//首页统计折线图
|
|
|
@Override
|
|
|
- public AjaxResult censusXy() {
|
|
|
+ public AjaxResult censusXy(String year) {
|
|
|
//1.创建一个放所有日期的集合
|
|
|
List<String> dates = new ArrayList();
|
|
|
dates.add("第一季度");
|
|
@@ -621,8 +628,7 @@ public class ZsyzCommonServiceImpL implements IZsyzCommonService {
|
|
|
List<Integer> tc = new ArrayList();
|
|
|
//查询对应季度所有正常的项目
|
|
|
List<Map<String, Object>> dateList = new ArrayList<>();
|
|
|
- String year = DateUtils.getTime();
|
|
|
- //获取当前年
|
|
|
+
|
|
|
Map<String, Object> timeMapOne = new HashMap<>(2);
|
|
|
Map<String, Object> timeMapTwo = new HashMap<>(2);
|
|
|
Map<String, Object> timeMapThr = new HashMap<>(2);
|