diff --git a/src/main/java/com/zhgd/xmgl/modules/baotou/entity/ContractorMonthlyApprove.java b/src/main/java/com/zhgd/xmgl/modules/baotou/entity/ContractorMonthlyApprove.java
index ef69b5d23..9880bcea4 100644
--- a/src/main/java/com/zhgd/xmgl/modules/baotou/entity/ContractorMonthlyApprove.java
+++ b/src/main/java/com/zhgd/xmgl/modules/baotou/entity/ContractorMonthlyApprove.java
@@ -92,26 +92,36 @@ public class ContractorMonthlyApprove implements Serializable {
private java.util.Date updateDate ;
/**年份*/
@ApiModelProperty(value="年份")
- private java.lang.Integer year ;
- /**月份*/
- @ApiModelProperty(value="月份")
- private java.lang.Integer month ;
- /**1是第一周类推*/
- @ApiModelProperty(value="1是第一周类推")
- private java.lang.Integer whichWeek ;
- /**1月报周报;2三周(月)滚动计划**/
- @ApiModelProperty(value="1月报周报;2三周(月)滚动计划")
- private java.lang.Integer menuType ;
-
+ private java.lang.Integer year;
+ /**
+ * 月份
+ */
+ @ApiModelProperty(value = "月份")
+ private java.lang.Integer month;
+ /**
+ * 1是第一周类推
+ */
+ @ApiModelProperty(value = "1是第一周类推")
+ private java.lang.Integer whichWeek;
+ /**
+ * 1月报周报;2三周(月)滚动计划
+ **/
+ @ApiModelProperty(value = "1月报周报;2三周(月)滚动计划")
+ private java.lang.Integer menuType;
+ /**
+ * 周报月报附件
+ **/
+ @ApiModelProperty(value = "周报月报附件")
+ private java.lang.String weekToMonthFileList;
@TableField(exist = false)
- @ApiModelProperty(value="发起人名称")
- private java.lang.String initiatorName ;
+ @ApiModelProperty(value = "发起人名称")
+ private java.lang.String initiatorName;
@TableField(exist = false)
- @ApiModelProperty(value="审批人1名称")
- private java.lang.String approver1Name ;
+ @ApiModelProperty(value = "审批人1名称")
+ private java.lang.String approver1Name;
@TableField(exist = false)
- @ApiModelProperty(value="审批人2名称")
- private java.lang.String approver2Name ;
+ @ApiModelProperty(value = "审批人2名称")
+ private java.lang.String approver2Name;
@TableField(exist = false)
@ApiModelProperty(value="项目组名称")
private java.lang.String groupName ;
diff --git a/src/main/java/com/zhgd/xmgl/modules/baotou/entity/ContractorMonthlyDetail.java b/src/main/java/com/zhgd/xmgl/modules/baotou/entity/ContractorMonthlyDetail.java
index 5ce244ac2..87b85156e 100644
--- a/src/main/java/com/zhgd/xmgl/modules/baotou/entity/ContractorMonthlyDetail.java
+++ b/src/main/java/com/zhgd/xmgl/modules/baotou/entity/ContractorMonthlyDetail.java
@@ -46,14 +46,21 @@ public class ContractorMonthlyDetail implements Serializable {
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value="创建时间 yyyy-MM-dd HH:mm:ss")
- private java.util.Date createDate ;
- /**更新时间 yyyy-MM-dd HH:mm:ss*/
- @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
- @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty(value="更新时间 yyyy-MM-dd HH:mm:ss")
- private java.util.Date updateDate ;
- @ApiModelProperty(value="审批的装置id")
- private java.lang.Long approveDeviceId ;
- @ApiModelProperty(value="承包商项自组审批id")
- private java.lang.Long approveId ;
+ private java.util.Date createDate;
+ /**
+ * 更新时间 yyyy-MM-dd HH:mm:ss
+ */
+ @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "更新时间 yyyy-MM-dd HH:mm:ss")
+ private java.util.Date updateDate;
+ @ApiModelProperty(value = "审批的装置id")
+ private java.lang.Long approveDeviceId;
+ @ApiModelProperty(value = "承包商项自组审批id")
+ private java.lang.Long approveId;
+ /**
+ * 周报月报附件
+ **/
+ @ApiModelProperty(value = "周报月报附件")
+ private java.lang.String weekToMonthFileList;
}
diff --git a/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/PouringOrderLedgerMapper.xml b/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/PouringOrderLedgerMapper.xml
index 4e3a04c05..cff72eea7 100644
--- a/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/PouringOrderLedgerMapper.xml
+++ b/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/PouringOrderLedgerMapper.xml
@@ -116,6 +116,9 @@
and t.supply_station = #{supplyStation}
+
+
+
${groupby}
diff --git a/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/WorkerAdmissionMapper.xml b/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/WorkerAdmissionMapper.xml
index 7842466f6..5fbc08885 100644
--- a/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/WorkerAdmissionMapper.xml
+++ b/src/main/java/com/zhgd/xmgl/modules/baotou/mapper/xml/WorkerAdmissionMapper.xml
@@ -92,9 +92,10 @@
#{item}
and not exists(
- select * from exam_train_record where application_id=t.id and worker_card=wad.id_card and application_type = 1
+ select * from exam_train_record where application_id=t.id and worker_id=wad.id and application_type = 1
and submit = 1
)
+ and wad.is_certificate_qualified = 1
group by t.id
diff --git a/src/main/java/com/zhgd/xmgl/modules/baotou/plan/controller/PlanRecordController.java b/src/main/java/com/zhgd/xmgl/modules/baotou/plan/controller/PlanRecordController.java
index 04659ca46..7ba16fc24 100644
--- a/src/main/java/com/zhgd/xmgl/modules/baotou/plan/controller/PlanRecordController.java
+++ b/src/main/java/com/zhgd/xmgl/modules/baotou/plan/controller/PlanRecordController.java
@@ -1,7 +1,6 @@
package com.zhgd.xmgl.modules.baotou.plan.controller;
import cn.hutool.core.collection.CollUtil;
-import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
@@ -13,6 +12,8 @@ import com.zhgd.xmgl.modules.baotou.plan.entity.*;
import com.zhgd.xmgl.modules.baotou.plan.entity.vo.PlanRecordCurve;
import com.zhgd.xmgl.modules.baotou.plan.mapper.PlanRecordMapper;
import com.zhgd.xmgl.modules.baotou.plan.service.*;
+import com.zhgd.xmgl.modules.baotou.plan.service.impl.PlanRecordServiceImpl;
+import com.zhgd.xmgl.util.MapBuilder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
@@ -27,6 +28,7 @@ import springfox.documentation.annotations.ApiIgnore;
import java.math.BigDecimal;
import java.util.*;
+import java.util.function.Function;
import java.util.stream.Collectors;
@@ -198,7 +200,7 @@ public class PlanRecordController {
@ApiImplicitParam(name = "year", value = "年份", paramType = "query", required = false, dataType = "String")
})
@GetMapping(value = "/getPlanCurve")
- public Result>> getPlanCurve(@RequestParam Map param) {
+ public Result> getPlanCurve(@RequestParam Map param) {
String year = MapUtils.getString(param, "year");
if (StrUtil.isNotBlank(year)) {
param.put("beginDate", year + "-01" + "-01");
@@ -215,62 +217,24 @@ public class PlanRecordController {
Long pbsId = MapUtils.getLong(param, "pbsId");
PlanPbs topPbs = planPbsService.getById(pbsId);
List planPbs = planPbsService.getChildren(pbsId);
-// planPbs.add(topPbs);
-// calByRecursionPbs(topPbs, planPbs);
-
- PlanPeriod planPeriod = planPeriodService.getOne(new LambdaQueryWrapper().eq(PlanPeriod::getProjectSn, projectSn));
- List pbsIds = planPbs.stream().map(PlanPbs::getId).collect(Collectors.toList());
- pbsIds.add(pbsId);
- List