diff --git a/src/main/java/cn/com/tenlion/pojo/dtos/classplan/ClassPlanDTO.java b/src/main/java/cn/com/tenlion/pojo/dtos/classplan/ClassPlanDTO.java index cee01ac..fcd5e4f 100644 --- a/src/main/java/cn/com/tenlion/pojo/dtos/classplan/ClassPlanDTO.java +++ b/src/main/java/cn/com/tenlion/pojo/dtos/classplan/ClassPlanDTO.java @@ -1,5 +1,7 @@ package cn.com.tenlion.pojo.dtos.classplan; +import ink.wgink.annotation.CheckEmptyAnnotation; +import ink.wgink.annotation.CheckNumberAnnotation; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -14,6 +16,10 @@ import io.swagger.annotations.ApiModelProperty; @ApiModel public class ClassPlanDTO { + @ApiModelProperty(name = "classPlanId", value = "计划ID") + private String classPlanId; + @ApiModelProperty(name = "orgId", value = "机构ID") + private String orgId; @ApiModelProperty(name = "planNumber", value = "培训计划编号") private String planNumber; @ApiModelProperty(name = "planName", value = "培训计划名称") @@ -25,14 +31,19 @@ public class ClassPlanDTO { @ApiModelProperty(name = "workerCatalog", value = "培训工种") private String workerCatalog; @ApiModelProperty(name = "planPersonNum", value = "计划人数") + @CheckNumberAnnotation(name = "计划人数") private Integer planPersonNum; @ApiModelProperty(name = "planStartTime", value = "培训开始时间") + @CheckEmptyAnnotation(name = "培训开始时间", verifyType = "datetime") private String planStartTime; @ApiModelProperty(name = "planEndTime", value = "培训结束时间") + @CheckEmptyAnnotation(name = "培训结束时间", verifyType = "datetime") private String planEndTime; @ApiModelProperty(name = "signUpStartTime", value = "报名时间开始") + @CheckEmptyAnnotation(name = "报名时间开始", verifyType = "datetime") private String signUpStartTime; @ApiModelProperty(name = "signUpEndTime", value = "报名时间截止") + @CheckEmptyAnnotation(name = "报名时间截止", verifyType = "datetime") private String signUpEndTime; @ApiModelProperty(name = "planAddress", value = "培训地点") private String planAddress; @@ -40,6 +51,10 @@ public class ClassPlanDTO { private String chargePerson; @ApiModelProperty(name = "chargePersonTel", value = "联系方式") private String chargePersonTel; + @ApiModelProperty(name = "reportType", value = "报备状态") + private String reportType; + @ApiModelProperty(name = "reportReason", value = "报备审核原因") + private String reportReason; public String getPlanNumber() { return planNumber == null ? "" : planNumber.trim(); @@ -145,5 +160,35 @@ public class ClassPlanDTO { this.chargePersonTel = chargePersonTel; } + public String getClassPlanId() { + return classPlanId == null ? "" : classPlanId; + } + public void setClassPlanId(String classPlanId) { + this.classPlanId = classPlanId; + } + + public String getOrgId() { + return orgId == null ? "" : orgId; + } + + public void setOrgId(String orgId) { + this.orgId = orgId; + } + + public String getReportType() { + return reportType == null ? "" : reportType; + } + + public void setReportType(String reportType) { + this.reportType = reportType; + } + + public String getReportReason() { + return reportReason == null ? "" : reportReason; + } + + public void setReportReason(String reportReason) { + this.reportReason = reportReason; + } } diff --git a/src/main/java/cn/com/tenlion/pojo/vos/classplan/ClassPlanVO.java b/src/main/java/cn/com/tenlion/pojo/vos/classplan/ClassPlanVO.java index bd800e6..dbe966a 100644 --- a/src/main/java/cn/com/tenlion/pojo/vos/classplan/ClassPlanVO.java +++ b/src/main/java/cn/com/tenlion/pojo/vos/classplan/ClassPlanVO.java @@ -16,6 +16,10 @@ import io.swagger.annotations.ApiModelProperty; @ApiModel public class ClassPlanVO { + @ApiModelProperty(name = "classPlanId", value = "计划ID") + private String classPlanId; + @ApiModelProperty(name = "orgId", value = "机构ID") + private String orgId; @ApiModelProperty(name = "planNumber", value = "培训计划编号") private String planNumber; @ApiModelProperty(name = "planName", value = "培训计划名称") @@ -47,6 +51,10 @@ public class ClassPlanVO { private String chargePerson; @ApiModelProperty(name = "chargePersonTel", value = "联系方式") private String chargePersonTel; + @ApiModelProperty(name = "reportType", value = "报备状态") + private String reportType; + @ApiModelProperty(name = "reportReason", value = "报备审核原因") + private String reportReason; public String getPlanNumber() { return planNumber == null ? "" : planNumber.trim(); @@ -152,5 +160,35 @@ public class ClassPlanVO { this.chargePersonTel = chargePersonTel; } + public String getClassPlanId() { + return classPlanId == null ? "" : classPlanId; + } + public void setClassPlanId(String classPlanId) { + this.classPlanId = classPlanId; + } + + public String getOrgId() { + return orgId == null ? "" : orgId; + } + + public void setOrgId(String orgId) { + this.orgId = orgId; + } + + public String getReportType() { + return reportType == null ? "" : reportType; + } + + public void setReportType(String reportType) { + this.reportType = reportType; + } + + public String getReportReason() { + return reportReason == null ? "" : reportReason; + } + + public void setReportReason(String reportReason) { + this.reportReason = reportReason; + } } diff --git a/src/main/resources/mybatis/mapper/classplan/class-plan-mapper.xml b/src/main/resources/mybatis/mapper/classplan/class-plan-mapper.xml index 560ae73..cb4a8ae 100644 --- a/src/main/resources/mybatis/mapper/classplan/class-plan-mapper.xml +++ b/src/main/resources/mybatis/mapper/classplan/class-plan-mapper.xml @@ -3,6 +3,8 @@ + + @@ -16,6 +18,8 @@ + + @@ -56,6 +60,7 @@ INSERT INTO e_class_plan( class_plan_id, + org_id, plan_number, plan_name, plan_type, @@ -68,9 +73,12 @@ sign_up_end_time, plan_address, charge_person, - charge_person_tel + charge_person_tel, + report_type, + report_reason ) VALUES( #{classPlanId}, + #{orgId}, #{planNumber}, #{planName}, #{planType}, @@ -83,7 +91,9 @@ #{signUpEndTime}, #{planAddress}, #{chargePerson}, - #{chargePersonTel} + #{chargePersonTel}, + #{reportType}, + #{reportReason} ) @@ -99,6 +109,17 @@ + + + UPDATE e_class_plan SET + is_delete = '1' + WHERE + class_plan_id IN + + #{classPlanIds[${index}]} + + + UPDATE @@ -107,6 +128,9 @@ plan_number = #{planNumber}, + + org_id = #{orgId}, + plan_name = #{planName}, @@ -142,6 +166,12 @@ charge_person_tel = #{chargePersonTel}, + + + report_type = #{reportType}, + + + report_reason = #{reportReason}, class_plan_id = class_plan_id WHERE @@ -152,6 +182,7 @@ SELECT t1.plan_number, + t1.org_id, t1.plan_name, t1.plan_type, t1.project_catalog_id, @@ -245,16 +279,16 @@ t1.plan_address, t1.charge_person, t1.charge_person_tel, - 1 + t1.report_type, + t1.report_reason FROM e_class_plan t1 WHERE 1 = 1 - AND ( - - t1.id LIKE CONCAT('%', #{keywords}, '%') - ) + AND ( + t1.id LIKE CONCAT('%', #{keywords}, '%') + ) AND