Showing
44 changed files
with
2528 additions
and
28 deletions
src/main/java/com/qgutech/qgyun/apaas/sync/cpsfzzk/controller/A3ActionStepController.java
0 → 100644
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.controller; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.A3ActionStep; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.service.A3ActionStepService; | ||
| 5 | +import com.qgutech.qgyun.framework.common.result.JsonResult; | ||
| 6 | +import lombok.extern.slf4j.Slf4j; | ||
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RestController; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * A3报告推进的行为和步骤接口 | ||
| 16 | + */ | ||
| 17 | +@Slf4j | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/a3ActionStep") | ||
| 20 | +public class A3ActionStepController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private A3ActionStepService a3ActionStepService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 获取所有A3报告推进的行为和步骤列表 | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 30 | + @GetMapping("/list/all") | ||
| 31 | + public JsonResult listAll() { | ||
| 32 | + List<A3ActionStep> a3ActionStepList = a3ActionStepService.listAll(); | ||
| 33 | + return new JsonResult<>(true, "成功", a3ActionStepList); | ||
| 34 | + } | ||
| 35 | +} |
src/main/java/com/qgutech/qgyun/apaas/sync/cpsfzzk/controller/A3PlanStatusController.java
0 → 100644
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.controller; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.A3PlanStatus; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.service.A3PlanStatusService; | ||
| 5 | +import com.qgutech.qgyun.framework.common.result.JsonResult; | ||
| 6 | +import lombok.extern.slf4j.Slf4j; | ||
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RestController; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * A3报告工作计划状态和BIC接口 | ||
| 16 | + */ | ||
| 17 | +@Slf4j | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/a3PlanStatus") | ||
| 20 | +public class A3PlanStatusController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private A3PlanStatusService a3PlanStatusService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 获取所有A3报告工作计划状态和BIC列表 | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 30 | + @GetMapping("/list/all") | ||
| 31 | + public JsonResult listAll() { | ||
| 32 | + List<A3PlanStatus> a3PlanStatusList = a3PlanStatusService.listAll(); | ||
| 33 | + return new JsonResult<>(true, "成功", a3PlanStatusList); | ||
| 34 | + } | ||
| 35 | +} |
src/main/java/com/qgutech/qgyun/apaas/sync/cpsfzzk/controller/A3ProblemEventController.java
0 → 100644
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.controller; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.A3ProblemEvent; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.service.A3ProblemEventService; | ||
| 5 | +import com.qgutech.qgyun.framework.common.result.JsonResult; | ||
| 6 | +import lombok.extern.slf4j.Slf4j; | ||
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RestController; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * A3报告问题事件接口 | ||
| 16 | + */ | ||
| 17 | +@Slf4j | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/a3ProblemEvent") | ||
| 20 | +public class A3ProblemEventController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private A3ProblemEventService a3ProblemEventService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 获取所有A3报告问题事件列表 | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 30 | + @GetMapping("/list/all") | ||
| 31 | + public JsonResult listAll() { | ||
| 32 | + List<A3ProblemEvent> a3ProblemEventList = a3ProblemEventService.listAll(); | ||
| 33 | + return new JsonResult<>(true, "成功", a3ProblemEventList); | ||
| 34 | + } | ||
| 35 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.controller; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.A3Report; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.service.A3ReportService; | ||
| 5 | +import com.qgutech.qgyun.framework.common.result.JsonResult; | ||
| 6 | +import lombok.extern.slf4j.Slf4j; | ||
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RestController; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * A3报告接口 | ||
| 16 | + */ | ||
| 17 | +@Slf4j | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/a3Report") | ||
| 20 | +public class A3ReportController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private A3ReportService a3ReportService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 获取所有A3报告列表 | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 30 | + @GetMapping("/list/all") | ||
| 31 | + public JsonResult listAll() { | ||
| 32 | + List<A3Report> a3ReportList = a3ReportService.listAll(); | ||
| 33 | + return new JsonResult<>(true, "成功", a3ReportList); | ||
| 34 | + } | ||
| 35 | +} |
src/main/java/com/qgutech/qgyun/apaas/sync/cpsfzzk/controller/CompanyIndicatorController.java
0 → 100644
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.controller; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.CompanyIndicator; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.service.CompanyIndicatorService; | ||
| 5 | +import com.qgutech.qgyun.framework.common.result.JsonResult; | ||
| 6 | +import lombok.extern.slf4j.Slf4j; | ||
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RestController; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * 公司级指标信息接口 | ||
| 16 | + */ | ||
| 17 | +@Slf4j | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/companyIndicator") | ||
| 20 | +public class CompanyIndicatorController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private CompanyIndicatorService companyIndicatorService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 获取所有公司级指标信息列表 | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 30 | + @GetMapping("/list/all") | ||
| 31 | + public JsonResult listAll() { | ||
| 32 | + List<CompanyIndicator> companyIndicatorList = companyIndicatorService.listAll(); | ||
| 33 | + return new JsonResult<>(true, "成功", companyIndicatorList); | ||
| 34 | + } | ||
| 35 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.controller; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.MasterPlan; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.service.MasterPlanService; | ||
| 5 | +import com.qgutech.qgyun.framework.common.result.JsonResult; | ||
| 6 | +import lombok.extern.slf4j.Slf4j; | ||
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RestController; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * 公司级主体计划接口 | ||
| 16 | + */ | ||
| 17 | +@Slf4j | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/masterPlan") | ||
| 20 | +public class MasterPlanController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private MasterPlanService masterPlanService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 获取所有公司级主体计划列表 | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 30 | + @GetMapping("/list/all") | ||
| 31 | + public JsonResult listAll() { | ||
| 32 | + List<MasterPlan> masterPlanList = masterPlanService.listAll(); | ||
| 33 | + return new JsonResult<>(true, "成功", masterPlanList); | ||
| 34 | + } | ||
| 35 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.controller; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.ScoreCard; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.service.ScoreCardService; | ||
| 5 | +import com.qgutech.qgyun.framework.common.result.JsonResult; | ||
| 6 | +import lombok.extern.slf4j.Slf4j; | ||
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RestController; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * 公司级记分卡接口 | ||
| 16 | + */ | ||
| 17 | +@Slf4j | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/scoreCard") | ||
| 20 | +public class ScoreCardController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private ScoreCardService scoreCardService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 获取所有公司级记分卡列表 | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 30 | + @GetMapping("/list/all") | ||
| 31 | + public JsonResult listAll() { | ||
| 32 | + List<ScoreCard> scoreCardList = scoreCardService.listAll(); | ||
| 33 | + return new JsonResult<>(true, "成功", scoreCardList); | ||
| 34 | + } | ||
| 35 | +} |
src/main/java/com/qgutech/qgyun/apaas/sync/cpsfzzk/controller/ThreeYearPlanController.java
0 → 100644
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.controller; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.ThreeYearPlan; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.service.ThreeYearPlanService; | ||
| 5 | +import com.qgutech.qgyun.framework.common.result.JsonResult; | ||
| 6 | +import lombok.extern.slf4j.Slf4j; | ||
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RestController; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * 三年规划表信息接口 | ||
| 16 | + */ | ||
| 17 | +@Slf4j | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/threeYearPlan") | ||
| 20 | +public class ThreeYearPlanController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private ThreeYearPlanService threeYearPlanService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 获取所有三年规划表信息列表 | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 30 | + @GetMapping("/list/all") | ||
| 31 | + public JsonResult listAll() { | ||
| 32 | + List<ThreeYearPlan> threeYearPlanList = threeYearPlanService.listAll(); | ||
| 33 | + return new JsonResult<>(true, "成功", threeYearPlanList); | ||
| 34 | + } | ||
| 35 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.controller; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.WorkPlan; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.service.WorkPlanService; | ||
| 5 | +import com.qgutech.qgyun.framework.common.result.JsonResult; | ||
| 6 | +import lombok.extern.slf4j.Slf4j; | ||
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RestController; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * 公司级工作计划接口 | ||
| 16 | + */ | ||
| 17 | +@Slf4j | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/workPlan") | ||
| 20 | +public class WorkPlanController { | ||
| 21 | + | ||
| 22 | + @Resource | ||
| 23 | + private WorkPlanService workPlanService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 获取所有公司级工作计划列表 | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 30 | + @GetMapping("/list/all") | ||
| 31 | + public JsonResult listAll() { | ||
| 32 | + List<WorkPlan> workPlanList = workPlanService.listAll(); | ||
| 33 | + return new JsonResult<>(true, "成功", workPlanList); | ||
| 34 | + } | ||
| 35 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.enums; | ||
| 2 | + | ||
| 3 | +import lombok.Getter; | ||
| 4 | + | ||
| 5 | +/** | ||
| 6 | + * 工作计划状态枚举 | ||
| 7 | + * <p> | ||
| 8 | + * 数据库字段 gzjhzt 存储编号:#1#-未开始,#2#-进行中,#3#-已完成,#4#-已延期 | ||
| 9 | + */ | ||
| 10 | +@Getter | ||
| 11 | +public enum GzjhztEnum { | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 未开始 | ||
| 15 | + */ | ||
| 16 | + NOT_STARTED("#1#", "未开始"), | ||
| 17 | + | ||
| 18 | + /** | ||
| 19 | + * 进行中 | ||
| 20 | + */ | ||
| 21 | + IN_PROGRESS("#2#", "进行中"), | ||
| 22 | + | ||
| 23 | + /** | ||
| 24 | + * 已完成 | ||
| 25 | + */ | ||
| 26 | + COMPLETED("#3#", "已完成"), | ||
| 27 | + | ||
| 28 | + /** | ||
| 29 | + * 已延期 | ||
| 30 | + */ | ||
| 31 | + DELAYED("#4#", "已延期"); | ||
| 32 | + | ||
| 33 | + /** | ||
| 34 | + * 数据库中存储的编号 | ||
| 35 | + */ | ||
| 36 | + private final String code; | ||
| 37 | + | ||
| 38 | + /** | ||
| 39 | + * 中文描述 | ||
| 40 | + */ | ||
| 41 | + private final String desc; | ||
| 42 | + | ||
| 43 | + GzjhztEnum(String code, String desc) { | ||
| 44 | + this.code = code; | ||
| 45 | + this.desc = desc; | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * 根据编号获取枚举 | ||
| 50 | + * | ||
| 51 | + * @param code 编号 | ||
| 52 | + * @return 枚举实例,未找到返回 null | ||
| 53 | + */ | ||
| 54 | + public static GzjhztEnum fromCode(String code) { | ||
| 55 | + if (code == null) { | ||
| 56 | + return null; | ||
| 57 | + } | ||
| 58 | + for (GzjhztEnum status : values()) { | ||
| 59 | + if (status.code.equals(code)) { | ||
| 60 | + return status; | ||
| 61 | + } | ||
| 62 | + } | ||
| 63 | + if (!code.startsWith("#")) { | ||
| 64 | + String wrapped = "#" + code + "#"; | ||
| 65 | + for (GzjhztEnum status : values()) { | ||
| 66 | + if (status.code.equals(wrapped)) { | ||
| 67 | + return status; | ||
| 68 | + } | ||
| 69 | + } | ||
| 70 | + } | ||
| 71 | + return null; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + /** | ||
| 75 | + * 根据编号获取中文描述 | ||
| 76 | + * | ||
| 77 | + * @param code 编号 | ||
| 78 | + * @return 中文描述,未找到返回原编号 | ||
| 79 | + */ | ||
| 80 | + public static String getDescByCode(String code) { | ||
| 81 | + GzjhztEnum status = fromCode(code); | ||
| 82 | + return status != null ? status.getDesc() : code; | ||
| 83 | + } | ||
| 84 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.enums; | ||
| 2 | + | ||
| 3 | +import lombok.Getter; | ||
| 4 | + | ||
| 5 | +/** | ||
| 6 | + * 项目进度状态枚举 | ||
| 7 | + * <p> | ||
| 8 | + * 数据库字段 xmjdzt 存储编号:#1#-未开始,#2#-进行中,#3#-已完成,#4#-已延期,#5#-已取消 | ||
| 9 | + */ | ||
| 10 | +@Getter | ||
| 11 | +public enum XmjdztEnum { | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 未开始 | ||
| 15 | + */ | ||
| 16 | + NOT_STARTED("#1#", "未开始"), | ||
| 17 | + | ||
| 18 | + /** | ||
| 19 | + * 进行中 | ||
| 20 | + */ | ||
| 21 | + IN_PROGRESS("#2#", "进行中"), | ||
| 22 | + | ||
| 23 | + /** | ||
| 24 | + * 已完成 | ||
| 25 | + */ | ||
| 26 | + COMPLETED("#3#", "已完成"), | ||
| 27 | + | ||
| 28 | + /** | ||
| 29 | + * 已延期 | ||
| 30 | + */ | ||
| 31 | + DELAYED("#4#", "已延期"), | ||
| 32 | + | ||
| 33 | + /** | ||
| 34 | + * 已取消 | ||
| 35 | + */ | ||
| 36 | + CANCELLED("#5#", "已取消"); | ||
| 37 | + | ||
| 38 | + /** | ||
| 39 | + * 数据库中存储的编号 | ||
| 40 | + */ | ||
| 41 | + private final String code; | ||
| 42 | + | ||
| 43 | + /** | ||
| 44 | + * 中文描述 | ||
| 45 | + */ | ||
| 46 | + private final String desc; | ||
| 47 | + | ||
| 48 | + XmjdztEnum(String code, String desc) { | ||
| 49 | + this.code = code; | ||
| 50 | + this.desc = desc; | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + /** | ||
| 54 | + * 根据编号获取枚举 | ||
| 55 | + * | ||
| 56 | + * @param code 编号 | ||
| 57 | + * @return 枚举实例,未找到返回 null | ||
| 58 | + */ | ||
| 59 | + public static XmjdztEnum fromCode(String code) { | ||
| 60 | + if (code == null) { | ||
| 61 | + return null; | ||
| 62 | + } | ||
| 63 | + for (XmjdztEnum status : values()) { | ||
| 64 | + if (status.code.equals(code)) { | ||
| 65 | + return status; | ||
| 66 | + } | ||
| 67 | + } | ||
| 68 | + if (!code.startsWith("#")) { | ||
| 69 | + String wrapped = "#" + code + "#"; | ||
| 70 | + for (XmjdztEnum status : values()) { | ||
| 71 | + if (status.code.equals(wrapped)) { | ||
| 72 | + return status; | ||
| 73 | + } | ||
| 74 | + } | ||
| 75 | + } | ||
| 76 | + return null; | ||
| 77 | + } | ||
| 78 | + | ||
| 79 | + /** | ||
| 80 | + * 根据编号获取中文描述 | ||
| 81 | + * | ||
| 82 | + * @param code 编号 | ||
| 83 | + * @return 中文描述,未找到返回原编号 | ||
| 84 | + */ | ||
| 85 | + public static String getDescByCode(String code) { | ||
| 86 | + XmjdztEnum status = fromCode(code); | ||
| 87 | + return status != null ? status.getDesc() : code; | ||
| 88 | + } | ||
| 89 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.enums; | ||
| 2 | + | ||
| 3 | +import lombok.Getter; | ||
| 4 | + | ||
| 5 | +/** | ||
| 6 | + * 状态枚举 | ||
| 7 | + * <p> | ||
| 8 | + * 数据库字段 zt 存储编号:#1#-草稿,#2#-已提交,#3#-已否决,#4#-已确认 | ||
| 9 | + */ | ||
| 10 | +@Getter | ||
| 11 | +public enum ZtEnum { | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 草稿 | ||
| 15 | + */ | ||
| 16 | + DRAFT("#1#", "草稿"), | ||
| 17 | + | ||
| 18 | + /** | ||
| 19 | + * 已提交 | ||
| 20 | + */ | ||
| 21 | + SUBMITTED("#2#", "已提交"), | ||
| 22 | + | ||
| 23 | + /** | ||
| 24 | + * 已否决 | ||
| 25 | + */ | ||
| 26 | + REJECTED("#3#", "已否决"), | ||
| 27 | + | ||
| 28 | + /** | ||
| 29 | + * 已确认 | ||
| 30 | + */ | ||
| 31 | + CONFIRMED("#4#", "已确认"); | ||
| 32 | + | ||
| 33 | + /** | ||
| 34 | + * 数据库中存储的编号 | ||
| 35 | + */ | ||
| 36 | + private final String code; | ||
| 37 | + | ||
| 38 | + /** | ||
| 39 | + * 中文描述 | ||
| 40 | + */ | ||
| 41 | + private final String desc; | ||
| 42 | + | ||
| 43 | + ZtEnum(String code, String desc) { | ||
| 44 | + this.code = code; | ||
| 45 | + this.desc = desc; | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * 根据编号获取枚举 | ||
| 50 | + * | ||
| 51 | + * @param code 编号 | ||
| 52 | + * @return 枚举实例,未找到返回 null | ||
| 53 | + */ | ||
| 54 | + public static ZtEnum fromCode(String code) { | ||
| 55 | + if (code == null) { | ||
| 56 | + return null; | ||
| 57 | + } | ||
| 58 | + for (ZtEnum status : values()) { | ||
| 59 | + if (status.code.equals(code)) { | ||
| 60 | + return status; | ||
| 61 | + } | ||
| 62 | + } | ||
| 63 | + if (!code.startsWith("#")) { | ||
| 64 | + String wrapped = "#" + code + "#"; | ||
| 65 | + for (ZtEnum status : values()) { | ||
| 66 | + if (status.code.equals(wrapped)) { | ||
| 67 | + return status; | ||
| 68 | + } | ||
| 69 | + } | ||
| 70 | + } | ||
| 71 | + return null; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + /** | ||
| 75 | + * 根据编号获取中文描述 | ||
| 76 | + * | ||
| 77 | + * @param code 编号 | ||
| 78 | + * @return 中文描述,未找到返回原编号 | ||
| 79 | + */ | ||
| 80 | + public static String getDescByCode(String code) { | ||
| 81 | + ZtEnum status = fromCode(code); | ||
| 82 | + return status != null ? status.getDesc() : code; | ||
| 83 | + } | ||
| 84 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.registermapper.QguBaseMapper; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.A3ProblemEvent; | ||
| 5 | + | ||
| 6 | +public interface A3ProblemEventMapper extends QguBaseMapper<A3ProblemEvent> { | ||
| 7 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.registermapper.QguBaseMapper; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.CompanyIndicator; | ||
| 5 | + | ||
| 6 | +public interface CompanyIndicatorMapper extends QguBaseMapper<CompanyIndicator> { | ||
| 7 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.registermapper.QguBaseMapper; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.ThreeYearPlan; | ||
| 5 | + | ||
| 6 | +public interface ThreeYearPlanMapper extends QguBaseMapper<ThreeYearPlan> { | ||
| 7 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.model; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | ||
| 4 | +import lombok.Getter; | ||
| 5 | +import lombok.Setter; | ||
| 6 | +import lombok.ToString; | ||
| 7 | + | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * A3报告推进的行为和步骤 | ||
| 12 | + */ | ||
| 13 | +@Getter | ||
| 14 | +@Setter | ||
| 15 | +@ToString | ||
| 16 | +@Table(name = "t_auto_hfca_dnxpkp_tjdxwh") | ||
| 17 | +public class A3ActionStep extends BaseCorpModel { | ||
| 18 | + | ||
| 19 | + public static final String SSABG = "ssabg"; | ||
| 20 | + public static final String BK = "bk"; | ||
| 21 | + public static final String BKXH = "bkxh"; | ||
| 22 | + public static final String ZT = "zt"; | ||
| 23 | + public static final String XH = "xh"; | ||
| 24 | + | ||
| 25 | + /* | ||
| 26 | + * 所属A3报告 | ||
| 27 | + */ | ||
| 28 | + private String ssabg; | ||
| 29 | + | ||
| 30 | + /* | ||
| 31 | + * 板块 | ||
| 32 | + */ | ||
| 33 | + private String bk; | ||
| 34 | + | ||
| 35 | + /* | ||
| 36 | + * 板块序号 | ||
| 37 | + */ | ||
| 38 | + private String bkxh; | ||
| 39 | + | ||
| 40 | + /* | ||
| 41 | + * 推进的行为和步骤 | ||
| 42 | + */ | ||
| 43 | + private String tjdxwhbz; | ||
| 44 | + | ||
| 45 | + /* | ||
| 46 | + * 状态 | ||
| 47 | + */ | ||
| 48 | + private String zt; | ||
| 49 | + | ||
| 50 | + /* | ||
| 51 | + * 行为和步骤序号 | ||
| 52 | + */ | ||
| 53 | + private String xwbzxh; | ||
| 54 | + | ||
| 55 | + /* | ||
| 56 | + * 序号 | ||
| 57 | + */ | ||
| 58 | + private String xh; | ||
| 59 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.model; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | ||
| 4 | +import lombok.Getter; | ||
| 5 | +import lombok.Setter; | ||
| 6 | +import lombok.ToString; | ||
| 7 | + | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * A3报告工作计划状态和BIC | ||
| 13 | + */ | ||
| 14 | +@Getter | ||
| 15 | +@Setter | ||
| 16 | +@ToString | ||
| 17 | +@Table(name = "t_auto_hfca_dnxpkp_gzjhzt") | ||
| 18 | +public class A3PlanStatus extends BaseCorpModel { | ||
| 19 | + | ||
| 20 | + public static final String SSABG = "ssabg"; | ||
| 21 | + public static final String BK = "bk"; | ||
| 22 | + public static final String ZB = "zb"; | ||
| 23 | + public static final String ZBXH = "zbxh"; | ||
| 24 | + public static final String GSZB = "gszb"; | ||
| 25 | + | ||
| 26 | + /* | ||
| 27 | + * 所属A3报告 | ||
| 28 | + */ | ||
| 29 | + private String ssabg; | ||
| 30 | + | ||
| 31 | + /* | ||
| 32 | + * 板块 | ||
| 33 | + */ | ||
| 34 | + private String bk; | ||
| 35 | + | ||
| 36 | + /* | ||
| 37 | + * 指标 | ||
| 38 | + */ | ||
| 39 | + private String zb; | ||
| 40 | + | ||
| 41 | + /* | ||
| 42 | + * 指标序号 | ||
| 43 | + */ | ||
| 44 | + private String zbxh; | ||
| 45 | + | ||
| 46 | + /* | ||
| 47 | + * 成效 | ||
| 48 | + */ | ||
| 49 | + private String cx; | ||
| 50 | + | ||
| 51 | + /* | ||
| 52 | + * 上年度 | ||
| 53 | + */ | ||
| 54 | + private Date snd; | ||
| 55 | + | ||
| 56 | + /* | ||
| 57 | + * 上年度值 | ||
| 58 | + */ | ||
| 59 | + private String sndz; | ||
| 60 | + | ||
| 61 | + /* | ||
| 62 | + * 本年度 | ||
| 63 | + */ | ||
| 64 | + private Date bnd; | ||
| 65 | + | ||
| 66 | + /* | ||
| 67 | + * 本年度值 | ||
| 68 | + */ | ||
| 69 | + private String bndz; | ||
| 70 | + | ||
| 71 | + /* | ||
| 72 | + * 后年 | ||
| 73 | + */ | ||
| 74 | + private Date hn; | ||
| 75 | + | ||
| 76 | + /* | ||
| 77 | + * 后年度值 | ||
| 78 | + */ | ||
| 79 | + private String hndz; | ||
| 80 | + | ||
| 81 | + /* | ||
| 82 | + * 备 | ||
| 83 | + */ | ||
| 84 | + private String b; | ||
| 85 | + | ||
| 86 | + /* | ||
| 87 | + * BIC比率 | ||
| 88 | + */ | ||
| 89 | + private String bicbiw; | ||
| 90 | + | ||
| 91 | + /* | ||
| 92 | + * 公司指标 | ||
| 93 | + */ | ||
| 94 | + private String gszb; | ||
| 95 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.model; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | ||
| 4 | +import lombok.Getter; | ||
| 5 | +import lombok.Setter; | ||
| 6 | +import lombok.ToString; | ||
| 7 | + | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * A3报告问题事件 | ||
| 13 | + */ | ||
| 14 | +@Getter | ||
| 15 | +@Setter | ||
| 16 | +@ToString | ||
| 17 | +@Table(name = "t_auto_hfca_dnxpkp_abgwts") | ||
| 18 | +public class A3ProblemEvent extends BaseCorpModel { | ||
| 19 | + | ||
| 20 | + public static final String SSABG = "ssabg"; | ||
| 21 | + public static final String ZRR = "zrr"; | ||
| 22 | + public static final String SJ = "sj"; | ||
| 23 | + | ||
| 24 | + /* | ||
| 25 | + * 显示阶段问题事件 | ||
| 26 | + */ | ||
| 27 | + private String xsjdwtsj; | ||
| 28 | + | ||
| 29 | + /* | ||
| 30 | + * 责任人 | ||
| 31 | + */ | ||
| 32 | + private String zrr; | ||
| 33 | + | ||
| 34 | + /* | ||
| 35 | + * 时间 | ||
| 36 | + */ | ||
| 37 | + private Date sj; | ||
| 38 | + | ||
| 39 | + /* | ||
| 40 | + * 所属A3报告 | ||
| 41 | + */ | ||
| 42 | + private String ssabg; | ||
| 43 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.model; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | ||
| 4 | +import lombok.Getter; | ||
| 5 | +import lombok.Setter; | ||
| 6 | +import lombok.ToString; | ||
| 7 | + | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * A3报告 | ||
| 13 | + */ | ||
| 14 | +@Getter | ||
| 15 | +@Setter | ||
| 16 | +@ToString | ||
| 17 | +@Table(name = "t_auto_hfca_dnxpkp_abgxxx") | ||
| 18 | +public class A3Report extends BaseCorpModel { | ||
| 19 | + | ||
| 20 | + public static final String BK = "bk"; | ||
| 21 | + public static final String FZR = "fzr"; | ||
| 22 | + public static final String NF = "nf"; | ||
| 23 | + public static final String GZJHZT = "gzjhzt"; | ||
| 24 | + | ||
| 25 | + /* | ||
| 26 | + * 板块 | ||
| 27 | + */ | ||
| 28 | + private String bk; | ||
| 29 | + | ||
| 30 | + /* | ||
| 31 | + * 负责人 | ||
| 32 | + */ | ||
| 33 | + private String fzr; | ||
| 34 | + | ||
| 35 | + /* | ||
| 36 | + * 目标及现状情况 | ||
| 37 | + */ | ||
| 38 | + private String mdjxqkh; | ||
| 39 | + | ||
| 40 | + /* | ||
| 41 | + * 工作计划状态 | ||
| 42 | + */ | ||
| 43 | + private String gzjhzt; | ||
| 44 | + | ||
| 45 | + /* | ||
| 46 | + * 战略考量 | ||
| 47 | + */ | ||
| 48 | + private String zlkl; | ||
| 49 | + | ||
| 50 | + /* | ||
| 51 | + * 推进的行为和步骤 | ||
| 52 | + */ | ||
| 53 | + private String tjdxwh; | ||
| 54 | + | ||
| 55 | + /* | ||
| 56 | + * 显示阶段问题 | ||
| 57 | + */ | ||
| 58 | + private String xsjdwt; | ||
| 59 | + | ||
| 60 | + /* | ||
| 61 | + * 年份 | ||
| 62 | + */ | ||
| 63 | + private Date nf; | ||
| 64 | +} |
| @@ -32,14 +32,4 @@ public class BlockInfo extends BaseCorpModel { | @@ -32,14 +32,4 @@ public class BlockInfo extends BaseCorpModel { | ||
| 32 | * 序号 | 32 | * 序号 |
| 33 | */ | 33 | */ |
| 34 | private String xh; | 34 | private String xh; |
| 35 | - | ||
| 36 | - /* | ||
| 37 | - * 牵头单位 | ||
| 38 | - */ | ||
| 39 | - private String qtdw; | ||
| 40 | - | ||
| 41 | - /* | ||
| 42 | - * 牵头单位负责人 | ||
| 43 | - */ | ||
| 44 | - private String qtdwfzr; | ||
| 45 | } | 35 | } |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.model; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | ||
| 4 | +import lombok.Getter; | ||
| 5 | +import lombok.Setter; | ||
| 6 | +import lombok.ToString; | ||
| 7 | + | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * 公司级指标信息 | ||
| 13 | + */ | ||
| 14 | +@Getter | ||
| 15 | +@Setter | ||
| 16 | +@ToString | ||
| 17 | +@Table(name = "t_auto_hfca_dnxpkp_jmpstx") | ||
| 18 | +public class CompanyIndicator extends BaseCorpModel { | ||
| 19 | + | ||
| 20 | + public static final String SSBK = "ssbk"; | ||
| 21 | + public static final String BKXH = "bkxh"; | ||
| 22 | + public static final String ZBXH = "zbxh"; | ||
| 23 | + public static final String NF = "nf"; | ||
| 24 | + public static final String ZT = "zt"; | ||
| 25 | + | ||
| 26 | + /* | ||
| 27 | + * 所属板块 | ||
| 28 | + */ | ||
| 29 | + private String ssbk; | ||
| 30 | + | ||
| 31 | + /* | ||
| 32 | + * 板块序号 | ||
| 33 | + */ | ||
| 34 | + private String bkxh; | ||
| 35 | + | ||
| 36 | + /* | ||
| 37 | + * 名称 | ||
| 38 | + */ | ||
| 39 | + private String mc; | ||
| 40 | + | ||
| 41 | + /* | ||
| 42 | + * 指标序号 | ||
| 43 | + */ | ||
| 44 | + private String zbxh; | ||
| 45 | + | ||
| 46 | + /* | ||
| 47 | + * 确定优选方案 | ||
| 48 | + */ | ||
| 49 | + private String qdyxya; | ||
| 50 | + | ||
| 51 | + /* | ||
| 52 | + * 年份 | ||
| 53 | + */ | ||
| 54 | + private Date nf; | ||
| 55 | + | ||
| 56 | + /* | ||
| 57 | + * 状态 #1#-草稿;#2#-已提交;#3#-已否决;#4#-已确认; | ||
| 58 | + */ | ||
| 59 | + private String zt; | ||
| 60 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.model; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | ||
| 4 | +import lombok.Getter; | ||
| 5 | +import lombok.Setter; | ||
| 6 | +import lombok.ToString; | ||
| 7 | + | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * 公司级主体计划 | ||
| 13 | + */ | ||
| 14 | +@Getter | ||
| 15 | +@Setter | ||
| 16 | +@ToString | ||
| 17 | +@Table(name = "t_auto_hfca_dnxpkp_ztjhxx") | ||
| 18 | +public class MasterPlan extends BaseCorpModel { | ||
| 19 | + | ||
| 20 | + public static final String BK = "bk"; | ||
| 21 | + public static final String JHXH = "jhxh"; | ||
| 22 | + public static final String ZRR = "zrr"; | ||
| 23 | + public static final String NF = "nf"; | ||
| 24 | + public static final String ABG = "abg"; | ||
| 25 | + public static final String XH = "xh"; | ||
| 26 | + | ||
| 27 | + /* | ||
| 28 | + * 板块 | ||
| 29 | + */ | ||
| 30 | + private String bk; | ||
| 31 | + | ||
| 32 | + /* | ||
| 33 | + * 计划序号 | ||
| 34 | + */ | ||
| 35 | + private String jhxh; | ||
| 36 | + | ||
| 37 | + /* | ||
| 38 | + * 牵头人 | ||
| 39 | + */ | ||
| 40 | + private String qtr; | ||
| 41 | + | ||
| 42 | + /* | ||
| 43 | + * 责任人 | ||
| 44 | + */ | ||
| 45 | + private String zrr; | ||
| 46 | + | ||
| 47 | + /* | ||
| 48 | + * 主体计划行动策略 | ||
| 49 | + */ | ||
| 50 | + private String ztjhxdcl; | ||
| 51 | + | ||
| 52 | + /* | ||
| 53 | + * 目标 | ||
| 54 | + */ | ||
| 55 | + private String mb; | ||
| 56 | + | ||
| 57 | + /* | ||
| 58 | + * 关联公司级指标 | ||
| 59 | + */ | ||
| 60 | + private String glgsjz; | ||
| 61 | + | ||
| 62 | + /* | ||
| 63 | + * 所属推进行为 | ||
| 64 | + */ | ||
| 65 | + private String sstjxw; | ||
| 66 | + | ||
| 67 | + /* | ||
| 68 | + * 工作计划列表 | ||
| 69 | + */ | ||
| 70 | + private String gzjhlb; | ||
| 71 | + | ||
| 72 | + /* | ||
| 73 | + * 年份 | ||
| 74 | + */ | ||
| 75 | + private Date nf; | ||
| 76 | + | ||
| 77 | + /* | ||
| 78 | + * A3报告 | ||
| 79 | + */ | ||
| 80 | + private String abg; | ||
| 81 | + | ||
| 82 | + /* | ||
| 83 | + * 所属推进行为和步骤 | ||
| 84 | + */ | ||
| 85 | + private String sstjdxwhbz; | ||
| 86 | + | ||
| 87 | + /* | ||
| 88 | + * 行为和步骤序号 | ||
| 89 | + */ | ||
| 90 | + private String xwhbzxh; | ||
| 91 | + | ||
| 92 | + /* | ||
| 93 | + * 序号 | ||
| 94 | + */ | ||
| 95 | + private String xh; | ||
| 96 | + | ||
| 97 | + /* | ||
| 98 | + * 关联公司级指标B | ||
| 99 | + */ | ||
| 100 | + private String glgsjzb; | ||
| 101 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.model; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | ||
| 4 | +import lombok.Getter; | ||
| 5 | +import lombok.Setter; | ||
| 6 | +import lombok.ToString; | ||
| 7 | + | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * 公司级记分卡 | ||
| 13 | + */ | ||
| 14 | +@Getter | ||
| 15 | +@Setter | ||
| 16 | +@ToString | ||
| 17 | +@Table(name = "t_auto_hfca_dnxpkp_jfxxxx") | ||
| 18 | +public class ScoreCard extends BaseCorpModel { | ||
| 19 | + | ||
| 20 | + public static final String BK = "bk"; | ||
| 21 | + public static final String ZB = "zb"; | ||
| 22 | + public static final String ZBXH = "zbxh"; | ||
| 23 | + public static final String JZND = "jznd"; | ||
| 24 | + public static final String SFPP = "sfpp"; | ||
| 25 | + public static final String QTDW = "qtdw"; | ||
| 26 | + public static final String ZT = "zt"; | ||
| 27 | + public static final String HGRY = "hgry"; | ||
| 28 | + | ||
| 29 | + /* | ||
| 30 | + * 类型创建 | ||
| 31 | + */ | ||
| 32 | + private String lxcj; | ||
| 33 | + | ||
| 34 | + /* | ||
| 35 | + * 上一年度实际值 | ||
| 36 | + */ | ||
| 37 | + private String syndsjz; | ||
| 38 | + | ||
| 39 | + /* | ||
| 40 | + * 区域 | ||
| 41 | + */ | ||
| 42 | + private String qy; | ||
| 43 | + | ||
| 44 | + /* | ||
| 45 | + * 板块 | ||
| 46 | + */ | ||
| 47 | + private String bk; | ||
| 48 | + | ||
| 49 | + /* | ||
| 50 | + * 指标 | ||
| 51 | + */ | ||
| 52 | + private String zb; | ||
| 53 | + | ||
| 54 | + /* | ||
| 55 | + * 指标序号 | ||
| 56 | + */ | ||
| 57 | + private String zbxh; | ||
| 58 | + | ||
| 59 | + /* | ||
| 60 | + * 成效 | ||
| 61 | + */ | ||
| 62 | + private String cx; | ||
| 63 | + | ||
| 64 | + /* | ||
| 65 | + * 基准年度 | ||
| 66 | + */ | ||
| 67 | + private Date jznd; | ||
| 68 | + | ||
| 69 | + /* | ||
| 70 | + * 目标YTD目标 | ||
| 71 | + */ | ||
| 72 | + private String mbytdm; | ||
| 73 | + | ||
| 74 | + /* | ||
| 75 | + * 上一年度实际 | ||
| 76 | + */ | ||
| 77 | + private String syndsj; | ||
| 78 | + | ||
| 79 | + /* | ||
| 80 | + * 是否匹配 | ||
| 81 | + */ | ||
| 82 | + private Boolean sfpp; | ||
| 83 | + | ||
| 84 | + /* | ||
| 85 | + * 牵头单位 | ||
| 86 | + */ | ||
| 87 | + private String qtdw; | ||
| 88 | + | ||
| 89 | + /* | ||
| 90 | + * 牵头责任人 | ||
| 91 | + */ | ||
| 92 | + private String qtzrr; | ||
| 93 | + | ||
| 94 | + /* | ||
| 95 | + * 本年度实际值 | ||
| 96 | + */ | ||
| 97 | + private String bndsjz; | ||
| 98 | + | ||
| 99 | + /* | ||
| 100 | + * 月目标值 | ||
| 101 | + */ | ||
| 102 | + private String ymbz; | ||
| 103 | + | ||
| 104 | + /* | ||
| 105 | + * 月实际值 | ||
| 106 | + */ | ||
| 107 | + private String ysjz; | ||
| 108 | + | ||
| 109 | + /* | ||
| 110 | + * 月是否达标 | ||
| 111 | + */ | ||
| 112 | + private Boolean ysfdb; | ||
| 113 | + | ||
| 114 | + /* | ||
| 115 | + * 月目标值A | ||
| 116 | + */ | ||
| 117 | + private String ymbza; | ||
| 118 | + | ||
| 119 | + /* | ||
| 120 | + * 月实际值A | ||
| 121 | + */ | ||
| 122 | + private String ysjza; | ||
| 123 | + | ||
| 124 | + /* | ||
| 125 | + * 月是否达标A | ||
| 126 | + */ | ||
| 127 | + private Boolean ysfdba; | ||
| 128 | + | ||
| 129 | + /* | ||
| 130 | + * 月目标值B | ||
| 131 | + */ | ||
| 132 | + private String ymbzb; | ||
| 133 | + | ||
| 134 | + /* | ||
| 135 | + * 月实际值B | ||
| 136 | + */ | ||
| 137 | + private String ysjzb; | ||
| 138 | + | ||
| 139 | + /* | ||
| 140 | + * 月是否达标B | ||
| 141 | + */ | ||
| 142 | + private Boolean ysfdbb; | ||
| 143 | + | ||
| 144 | + /* | ||
| 145 | + * 月目标值C | ||
| 146 | + */ | ||
| 147 | + private String ymbzc; | ||
| 148 | + | ||
| 149 | + /* | ||
| 150 | + * 月实际值C | ||
| 151 | + */ | ||
| 152 | + private String ysjzc; | ||
| 153 | + | ||
| 154 | + /* | ||
| 155 | + * 月是否达标C | ||
| 156 | + */ | ||
| 157 | + private Boolean ysfdbc; | ||
| 158 | + | ||
| 159 | + /* | ||
| 160 | + * 月目标值D | ||
| 161 | + */ | ||
| 162 | + private String ymbzd; | ||
| 163 | + | ||
| 164 | + /* | ||
| 165 | + * 月实际值D | ||
| 166 | + */ | ||
| 167 | + private String ysjzd; | ||
| 168 | + | ||
| 169 | + /* | ||
| 170 | + * 月是否达标D | ||
| 171 | + */ | ||
| 172 | + private Boolean ysfdbd; | ||
| 173 | + | ||
| 174 | + /* | ||
| 175 | + * 月目标值E | ||
| 176 | + */ | ||
| 177 | + private String ymbze; | ||
| 178 | + | ||
| 179 | + /* | ||
| 180 | + * 月实际值E | ||
| 181 | + */ | ||
| 182 | + private String ysjze; | ||
| 183 | + | ||
| 184 | + /* | ||
| 185 | + * 月是否达标E | ||
| 186 | + */ | ||
| 187 | + private Boolean ysfdbe; | ||
| 188 | + | ||
| 189 | + /* | ||
| 190 | + * 月目标值F | ||
| 191 | + */ | ||
| 192 | + private String ymbzf; | ||
| 193 | + | ||
| 194 | + /* | ||
| 195 | + * 月实际值F | ||
| 196 | + */ | ||
| 197 | + private String ysjzf; | ||
| 198 | + | ||
| 199 | + /* | ||
| 200 | + * 月是否达标F | ||
| 201 | + */ | ||
| 202 | + private Boolean ysfdbf; | ||
| 203 | + | ||
| 204 | + /* | ||
| 205 | + * 月目标值G | ||
| 206 | + */ | ||
| 207 | + private String ymbzg; | ||
| 208 | + | ||
| 209 | + /* | ||
| 210 | + * 月实际值G | ||
| 211 | + */ | ||
| 212 | + private String ysjzg; | ||
| 213 | + | ||
| 214 | + /* | ||
| 215 | + * 月是否达标G | ||
| 216 | + */ | ||
| 217 | + private Boolean ysfdbg; | ||
| 218 | + | ||
| 219 | + /* | ||
| 220 | + * 月目标值H | ||
| 221 | + */ | ||
| 222 | + private String ymbzh; | ||
| 223 | + | ||
| 224 | + /* | ||
| 225 | + * 月实际值H | ||
| 226 | + */ | ||
| 227 | + private String ysjzh; | ||
| 228 | + | ||
| 229 | + /* | ||
| 230 | + * 月是否达标H | ||
| 231 | + */ | ||
| 232 | + private Boolean ysfdbh; | ||
| 233 | + | ||
| 234 | + /* | ||
| 235 | + * 月目标值I | ||
| 236 | + */ | ||
| 237 | + private String ymbzi; | ||
| 238 | + | ||
| 239 | + /* | ||
| 240 | + * 月实际值I | ||
| 241 | + */ | ||
| 242 | + private String ysjzi; | ||
| 243 | + | ||
| 244 | + /* | ||
| 245 | + * 月是否达标I | ||
| 246 | + */ | ||
| 247 | + private Boolean ysfdbi; | ||
| 248 | + | ||
| 249 | + /* | ||
| 250 | + * 月目标值J | ||
| 251 | + */ | ||
| 252 | + private String ymbzj; | ||
| 253 | + | ||
| 254 | + /* | ||
| 255 | + * 月实际值J | ||
| 256 | + */ | ||
| 257 | + private String ysjzj; | ||
| 258 | + | ||
| 259 | + /* | ||
| 260 | + * 月是否达标J | ||
| 261 | + */ | ||
| 262 | + private Boolean ysfdbj; | ||
| 263 | + | ||
| 264 | + /* | ||
| 265 | + * 月目标值K | ||
| 266 | + */ | ||
| 267 | + private String ymbzk; | ||
| 268 | + | ||
| 269 | + /* | ||
| 270 | + * 月实际值K | ||
| 271 | + */ | ||
| 272 | + private String ysjzk; | ||
| 273 | + | ||
| 274 | + /* | ||
| 275 | + * 月是否达标K | ||
| 276 | + */ | ||
| 277 | + private Boolean ysfdbk; | ||
| 278 | + | ||
| 279 | + /* | ||
| 280 | + * 目标YTD目标备注 | ||
| 281 | + */ | ||
| 282 | + private String mbytdmbz; | ||
| 283 | + | ||
| 284 | + /* | ||
| 285 | + * 状态 | ||
| 286 | + */ | ||
| 287 | + private String zt; | ||
| 288 | + | ||
| 289 | + /* | ||
| 290 | + * 合格人员 | ||
| 291 | + */ | ||
| 292 | + private String hgry; | ||
| 293 | + | ||
| 294 | + /* | ||
| 295 | + * 关联公司KPI | ||
| 296 | + */ | ||
| 297 | + private String glgskpi; | ||
| 298 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.model; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | ||
| 4 | +import lombok.Getter; | ||
| 5 | +import lombok.Setter; | ||
| 6 | +import lombok.ToString; | ||
| 7 | + | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * 三年规划表信息 | ||
| 13 | + */ | ||
| 14 | +@Getter | ||
| 15 | +@Setter | ||
| 16 | +@ToString | ||
| 17 | +@Table(name = "t_auto_hfca_dnxpkp_snghbx") | ||
| 18 | +public class ThreeYearPlan extends BaseCorpModel { | ||
| 19 | + | ||
| 20 | + public static final String BK = "bk"; | ||
| 21 | + public static final String ZB = "zb"; | ||
| 22 | + public static final String ZBXH = "zbxh"; | ||
| 23 | + public static final String JZND = "jznd"; | ||
| 24 | + public static final String SFSD = "sfsd"; | ||
| 25 | + public static final String WHLB = "whlb"; | ||
| 26 | + | ||
| 27 | + /* | ||
| 28 | + * 板块 | ||
| 29 | + */ | ||
| 30 | + private String bk; | ||
| 31 | + | ||
| 32 | + /* | ||
| 33 | + * 指标 | ||
| 34 | + */ | ||
| 35 | + private String zb; | ||
| 36 | + | ||
| 37 | + /* | ||
| 38 | + * 指标序号 | ||
| 39 | + */ | ||
| 40 | + private String zbxh; | ||
| 41 | + | ||
| 42 | + /* | ||
| 43 | + * 基准年度 | ||
| 44 | + */ | ||
| 45 | + private Date jznd; | ||
| 46 | + | ||
| 47 | + /* | ||
| 48 | + * 基准年度值 | ||
| 49 | + */ | ||
| 50 | + private String jzndz; | ||
| 51 | + | ||
| 52 | + /* | ||
| 53 | + * 基准年同比 | ||
| 54 | + */ | ||
| 55 | + private String jzytd; | ||
| 56 | + | ||
| 57 | + /* | ||
| 58 | + * 基准年度A | ||
| 59 | + */ | ||
| 60 | + private Date jznda; | ||
| 61 | + | ||
| 62 | + /* | ||
| 63 | + * 年度目标值 | ||
| 64 | + */ | ||
| 65 | + private String ndmbz; | ||
| 66 | + | ||
| 67 | + /* | ||
| 68 | + * 基准年度B | ||
| 69 | + */ | ||
| 70 | + private Date jzndb; | ||
| 71 | + | ||
| 72 | + /* | ||
| 73 | + * 年度目标值A | ||
| 74 | + */ | ||
| 75 | + private String ndmbza; | ||
| 76 | + | ||
| 77 | + /* | ||
| 78 | + * 基准年度C | ||
| 79 | + */ | ||
| 80 | + private String jzndc; | ||
| 81 | + | ||
| 82 | + /* | ||
| 83 | + * 年度目标值B | ||
| 84 | + */ | ||
| 85 | + private String ndmbzb; | ||
| 86 | + | ||
| 87 | + /* | ||
| 88 | + * 是否锁定 | ||
| 89 | + */ | ||
| 90 | + private Boolean sfsd; | ||
| 91 | + | ||
| 92 | + /* | ||
| 93 | + * 维护类别 | ||
| 94 | + */ | ||
| 95 | + private String whlb; | ||
| 96 | + | ||
| 97 | + /* | ||
| 98 | + * 修正原因 | ||
| 99 | + */ | ||
| 100 | + private String xzyy; | ||
| 101 | + | ||
| 102 | + /* | ||
| 103 | + * 修正时间 | ||
| 104 | + */ | ||
| 105 | + private Date xzsj; | ||
| 106 | + | ||
| 107 | + /* | ||
| 108 | + * 牵头单位 | ||
| 109 | + */ | ||
| 110 | + private String qtdw; | ||
| 111 | + | ||
| 112 | + /* | ||
| 113 | + * 牵头单位负责 | ||
| 114 | + */ | ||
| 115 | + private String qtdwfz; | ||
| 116 | + | ||
| 117 | + /* | ||
| 118 | + * 成效 | ||
| 119 | + */ | ||
| 120 | + private String cx; | ||
| 121 | + | ||
| 122 | + /* | ||
| 123 | + * 备注 | ||
| 124 | + */ | ||
| 125 | + private String bz; | ||
| 126 | + | ||
| 127 | + /* | ||
| 128 | + * 牵头单位负责人 | ||
| 129 | + */ | ||
| 130 | + private String qtdwfzr; | ||
| 131 | + | ||
| 132 | + /* | ||
| 133 | + * 基准年度C1 | ||
| 134 | + */ | ||
| 135 | + private Date jzndc1; | ||
| 136 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.model; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | ||
| 4 | +import lombok.Getter; | ||
| 5 | +import lombok.Setter; | ||
| 6 | +import lombok.ToString; | ||
| 7 | + | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | +import java.util.Date; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * 公司级工作计划 | ||
| 13 | + */ | ||
| 14 | +@Getter | ||
| 15 | +@Setter | ||
| 16 | +@ToString | ||
| 17 | +@Table(name = "t_auto_hfca_dnxpkp_gzjhxx") | ||
| 18 | +public class WorkPlan extends BaseCorpModel { | ||
| 19 | + | ||
| 20 | + public static final String ZTJHXH = "ztjhxh"; | ||
| 21 | + public static final String JHXH = "jhxh"; | ||
| 22 | + public static final String GZJHZR = "gzjhzr"; | ||
| 23 | + public static final String XMJDZT = "xmjdzt"; | ||
| 24 | + public static final String SSZTJH = "ssztjh"; | ||
| 25 | + public static final String XH = "xh"; | ||
| 26 | + public static final String KSRQ = "ksrq"; | ||
| 27 | + public static final String JSRQ = "jsrq"; | ||
| 28 | + | ||
| 29 | + /* | ||
| 30 | + * 主体计划序号 | ||
| 31 | + */ | ||
| 32 | + private String ztjhxh; | ||
| 33 | + | ||
| 34 | + /* | ||
| 35 | + * 计划序号 | ||
| 36 | + */ | ||
| 37 | + private String jhxh; | ||
| 38 | + | ||
| 39 | + /* | ||
| 40 | + * 工作计划任务 | ||
| 41 | + */ | ||
| 42 | + private String gzjhrw; | ||
| 43 | + | ||
| 44 | + /* | ||
| 45 | + * 开始日期 | ||
| 46 | + */ | ||
| 47 | + private Date ksrq; | ||
| 48 | + | ||
| 49 | + /* | ||
| 50 | + * 结束日期 | ||
| 51 | + */ | ||
| 52 | + private Date jsrq; | ||
| 53 | + | ||
| 54 | + /* | ||
| 55 | + * 工作计划责任人 | ||
| 56 | + */ | ||
| 57 | + private String gzjhzr; | ||
| 58 | + | ||
| 59 | + /* | ||
| 60 | + * 相关责任人 | ||
| 61 | + */ | ||
| 62 | + private String hgzrzg; | ||
| 63 | + | ||
| 64 | + /* | ||
| 65 | + * 是否开启 | ||
| 66 | + */ | ||
| 67 | + private Boolean sfkq; | ||
| 68 | + | ||
| 69 | + /* | ||
| 70 | + * 项目进度状态 | ||
| 71 | + */ | ||
| 72 | + private String xmjdzt; | ||
| 73 | + | ||
| 74 | + /* | ||
| 75 | + * 完成情况描述 | ||
| 76 | + */ | ||
| 77 | + private String wcqkms; | ||
| 78 | + | ||
| 79 | + /* | ||
| 80 | + * 完成回复件 | ||
| 81 | + */ | ||
| 82 | + private String wchfj; | ||
| 83 | + | ||
| 84 | + /* | ||
| 85 | + * 项目是否有延期申请 | ||
| 86 | + */ | ||
| 87 | + private Boolean xmsfyqsq; | ||
| 88 | + | ||
| 89 | + /* | ||
| 90 | + * 延期后时间 | ||
| 91 | + */ | ||
| 92 | + private Date yqhsj; | ||
| 93 | + | ||
| 94 | + /* | ||
| 95 | + * 经理审批 | ||
| 96 | + */ | ||
| 97 | + private String jlsp; | ||
| 98 | + | ||
| 99 | + /* | ||
| 100 | + * 所属主体计划 | ||
| 101 | + */ | ||
| 102 | + private String ssztjh; | ||
| 103 | + | ||
| 104 | + /* | ||
| 105 | + * 序号 | ||
| 106 | + */ | ||
| 107 | + private String xh; | ||
| 108 | + | ||
| 109 | + /* | ||
| 110 | + * 工作计划责任人 | ||
| 111 | + */ | ||
| 112 | + private String gzjhzrr; | ||
| 113 | + | ||
| 114 | + /* | ||
| 115 | + * 相关责任人经理 | ||
| 116 | + */ | ||
| 117 | + private String hgzrzgjl; | ||
| 118 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.service; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.service.BaseServiceImpl; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.base.BoErrorCode; | ||
| 5 | +import com.qgutech.qgyun.apaas.sync.base.BoException; | ||
| 6 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper.A3ActionStepMapper; | ||
| 7 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.A3ActionStep; | ||
| 8 | +import org.apache.commons.collections4.CollectionUtils; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | +import org.springframework.util.Assert; | ||
| 12 | +import com.qgutech.qgyun.apaas.sync.utils.CorpExample; | ||
| 13 | +import tk.mybatis.mapper.entity.Example; | ||
| 14 | + | ||
| 15 | +import javax.annotation.Resource; | ||
| 16 | +import java.util.*; | ||
| 17 | +import java.util.stream.Collectors; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * A3ActionStep 服务 | ||
| 21 | + */ | ||
| 22 | +@Service | ||
| 23 | +public class A3ActionStepService extends BaseServiceImpl<A3ActionStep> { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private A3ActionStepMapper a3ActionStepMapper; | ||
| 27 | + | ||
| 28 | + @Transactional(readOnly = true) | ||
| 29 | + public A3ActionStep getById(String id) { | ||
| 30 | + Assert.hasLength(id, "id is empty!"); | ||
| 31 | + | ||
| 32 | + Example example = new Example(entityClass); | ||
| 33 | + CorpExample.criteria(example).andEqualTo(A3ActionStep.ID, id); | ||
| 34 | + A3ActionStep a3ActionStep = a3ActionStepMapper.selectOneByExample(example); | ||
| 35 | + if (null == a3ActionStep) { | ||
| 36 | + throw new BoException(BoErrorCode.DATA_ERROR); | ||
| 37 | + } | ||
| 38 | + return a3ActionStep; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Transactional(readOnly = true) | ||
| 42 | + public List<A3ActionStep> listByIds(Collection<String> ids) { | ||
| 43 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 44 | + | ||
| 45 | + Example example = new Example(entityClass); | ||
| 46 | + CorpExample.criteria(example).andIn(A3ActionStep.ID, ids); | ||
| 47 | + List<A3ActionStep> a3ActionStepList = a3ActionStepMapper.selectByExample(example); | ||
| 48 | + if (CollectionUtils.isEmpty(a3ActionStepList)) { | ||
| 49 | + return new ArrayList<>(0); | ||
| 50 | + } | ||
| 51 | + return a3ActionStepList; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Transactional(readOnly = true) | ||
| 55 | + public Map<String, A3ActionStep> mapByIds(Collection<String> ids) { | ||
| 56 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 57 | + | ||
| 58 | + List<A3ActionStep> a3ActionStepList = listByIds(ids); | ||
| 59 | + if (CollectionUtils.isEmpty(a3ActionStepList)) { | ||
| 60 | + return new HashMap<>(0); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + return a3ActionStepList.stream().collect(Collectors.toMap(A3ActionStep::getId, a3ActionStep -> a3ActionStep)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Transactional(readOnly = true) | ||
| 67 | + public List<A3ActionStep> listAll() { | ||
| 68 | + | ||
| 69 | + Example example = CorpExample.ofCorp(entityClass); | ||
| 70 | + return a3ActionStepMapper.selectByExample(example); | ||
| 71 | + } | ||
| 72 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.service; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.service.BaseServiceImpl; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.base.BoErrorCode; | ||
| 5 | +import com.qgutech.qgyun.apaas.sync.base.BoException; | ||
| 6 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper.A3PlanStatusMapper; | ||
| 7 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.A3PlanStatus; | ||
| 8 | +import org.apache.commons.collections4.CollectionUtils; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | +import org.springframework.util.Assert; | ||
| 12 | +import com.qgutech.qgyun.apaas.sync.utils.CorpExample; | ||
| 13 | +import tk.mybatis.mapper.entity.Example; | ||
| 14 | + | ||
| 15 | +import javax.annotation.Resource; | ||
| 16 | +import java.util.*; | ||
| 17 | +import java.util.stream.Collectors; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * A3PlanStatus 服务 | ||
| 21 | + */ | ||
| 22 | +@Service | ||
| 23 | +public class A3PlanStatusService extends BaseServiceImpl<A3PlanStatus> { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private A3PlanStatusMapper a3PlanStatusMapper; | ||
| 27 | + | ||
| 28 | + @Transactional(readOnly = true) | ||
| 29 | + public A3PlanStatus getById(String id) { | ||
| 30 | + Assert.hasLength(id, "id is empty!"); | ||
| 31 | + | ||
| 32 | + Example example = new Example(entityClass); | ||
| 33 | + CorpExample.criteria(example).andEqualTo(A3PlanStatus.ID, id); | ||
| 34 | + A3PlanStatus a3PlanStatus = a3PlanStatusMapper.selectOneByExample(example); | ||
| 35 | + if (null == a3PlanStatus) { | ||
| 36 | + throw new BoException(BoErrorCode.DATA_ERROR); | ||
| 37 | + } | ||
| 38 | + return a3PlanStatus; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Transactional(readOnly = true) | ||
| 42 | + public List<A3PlanStatus> listByIds(Collection<String> ids) { | ||
| 43 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 44 | + | ||
| 45 | + Example example = new Example(entityClass); | ||
| 46 | + CorpExample.criteria(example).andIn(A3PlanStatus.ID, ids); | ||
| 47 | + List<A3PlanStatus> a3PlanStatusList = a3PlanStatusMapper.selectByExample(example); | ||
| 48 | + if (CollectionUtils.isEmpty(a3PlanStatusList)) { | ||
| 49 | + return new ArrayList<>(0); | ||
| 50 | + } | ||
| 51 | + return a3PlanStatusList; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Transactional(readOnly = true) | ||
| 55 | + public Map<String, A3PlanStatus> mapByIds(Collection<String> ids) { | ||
| 56 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 57 | + | ||
| 58 | + List<A3PlanStatus> a3PlanStatusList = listByIds(ids); | ||
| 59 | + if (CollectionUtils.isEmpty(a3PlanStatusList)) { | ||
| 60 | + return new HashMap<>(0); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + return a3PlanStatusList.stream().collect(Collectors.toMap(A3PlanStatus::getId, a3PlanStatus -> a3PlanStatus)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Transactional(readOnly = true) | ||
| 67 | + public List<A3PlanStatus> listAll() { | ||
| 68 | + | ||
| 69 | + Example example = CorpExample.ofCorp(entityClass); | ||
| 70 | + return a3PlanStatusMapper.selectByExample(example); | ||
| 71 | + } | ||
| 72 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.service; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.service.BaseServiceImpl; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.base.BoErrorCode; | ||
| 5 | +import com.qgutech.qgyun.apaas.sync.base.BoException; | ||
| 6 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper.A3ProblemEventMapper; | ||
| 7 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.A3ProblemEvent; | ||
| 8 | +import org.apache.commons.collections4.CollectionUtils; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | +import org.springframework.util.Assert; | ||
| 12 | +import com.qgutech.qgyun.apaas.sync.utils.CorpExample; | ||
| 13 | +import tk.mybatis.mapper.entity.Example; | ||
| 14 | + | ||
| 15 | +import javax.annotation.Resource; | ||
| 16 | +import java.util.*; | ||
| 17 | +import java.util.stream.Collectors; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * A3ProblemEvent 服务 | ||
| 21 | + */ | ||
| 22 | +@Service | ||
| 23 | +public class A3ProblemEventService extends BaseServiceImpl<A3ProblemEvent> { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private A3ProblemEventMapper a3ProblemEventMapper; | ||
| 27 | + | ||
| 28 | + @Transactional(readOnly = true) | ||
| 29 | + public A3ProblemEvent getById(String id) { | ||
| 30 | + Assert.hasLength(id, "id is empty!"); | ||
| 31 | + | ||
| 32 | + Example example = new Example(entityClass); | ||
| 33 | + CorpExample.criteria(example).andEqualTo(A3ProblemEvent.ID, id); | ||
| 34 | + A3ProblemEvent a3ProblemEvent = a3ProblemEventMapper.selectOneByExample(example); | ||
| 35 | + if (null == a3ProblemEvent) { | ||
| 36 | + throw new BoException(BoErrorCode.DATA_ERROR); | ||
| 37 | + } | ||
| 38 | + return a3ProblemEvent; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Transactional(readOnly = true) | ||
| 42 | + public List<A3ProblemEvent> listByIds(Collection<String> ids) { | ||
| 43 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 44 | + | ||
| 45 | + Example example = new Example(entityClass); | ||
| 46 | + CorpExample.criteria(example).andIn(A3ProblemEvent.ID, ids); | ||
| 47 | + List<A3ProblemEvent> a3ProblemEventList = a3ProblemEventMapper.selectByExample(example); | ||
| 48 | + if (CollectionUtils.isEmpty(a3ProblemEventList)) { | ||
| 49 | + return new ArrayList<>(0); | ||
| 50 | + } | ||
| 51 | + return a3ProblemEventList; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Transactional(readOnly = true) | ||
| 55 | + public Map<String, A3ProblemEvent> mapByIds(Collection<String> ids) { | ||
| 56 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 57 | + | ||
| 58 | + List<A3ProblemEvent> a3ProblemEventList = listByIds(ids); | ||
| 59 | + if (CollectionUtils.isEmpty(a3ProblemEventList)) { | ||
| 60 | + return new HashMap<>(0); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + return a3ProblemEventList.stream().collect(Collectors.toMap(A3ProblemEvent::getId, a3ProblemEvent -> a3ProblemEvent)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Transactional(readOnly = true) | ||
| 67 | + public List<A3ProblemEvent> listAll() { | ||
| 68 | + | ||
| 69 | + Example example = CorpExample.ofCorp(entityClass); | ||
| 70 | + return a3ProblemEventMapper.selectByExample(example); | ||
| 71 | + } | ||
| 72 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.service; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.service.BaseServiceImpl; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.base.BoErrorCode; | ||
| 5 | +import com.qgutech.qgyun.apaas.sync.base.BoException; | ||
| 6 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper.A3ReportMapper; | ||
| 7 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.A3Report; | ||
| 8 | +import org.apache.commons.collections4.CollectionUtils; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | +import org.springframework.util.Assert; | ||
| 12 | +import com.qgutech.qgyun.apaas.sync.utils.CorpExample; | ||
| 13 | +import tk.mybatis.mapper.entity.Example; | ||
| 14 | + | ||
| 15 | +import javax.annotation.Resource; | ||
| 16 | +import java.util.*; | ||
| 17 | +import java.util.stream.Collectors; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * A3Report 服务 | ||
| 21 | + */ | ||
| 22 | +@Service | ||
| 23 | +public class A3ReportService extends BaseServiceImpl<A3Report> { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private A3ReportMapper a3ReportMapper; | ||
| 27 | + | ||
| 28 | + @Transactional(readOnly = true) | ||
| 29 | + public A3Report getById(String id) { | ||
| 30 | + Assert.hasLength(id, "id is empty!"); | ||
| 31 | + | ||
| 32 | + Example example = new Example(entityClass); | ||
| 33 | + CorpExample.criteria(example).andEqualTo(A3Report.ID, id); | ||
| 34 | + A3Report a3Report = a3ReportMapper.selectOneByExample(example); | ||
| 35 | + if (null == a3Report) { | ||
| 36 | + throw new BoException(BoErrorCode.DATA_ERROR); | ||
| 37 | + } | ||
| 38 | + return a3Report; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Transactional(readOnly = true) | ||
| 42 | + public List<A3Report> listByIds(Collection<String> ids) { | ||
| 43 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 44 | + | ||
| 45 | + Example example = new Example(entityClass); | ||
| 46 | + CorpExample.criteria(example).andIn(A3Report.ID, ids); | ||
| 47 | + List<A3Report> a3ReportList = a3ReportMapper.selectByExample(example); | ||
| 48 | + if (CollectionUtils.isEmpty(a3ReportList)) { | ||
| 49 | + return new ArrayList<>(0); | ||
| 50 | + } | ||
| 51 | + return a3ReportList; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Transactional(readOnly = true) | ||
| 55 | + public Map<String, A3Report> mapByIds(Collection<String> ids) { | ||
| 56 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 57 | + | ||
| 58 | + List<A3Report> a3ReportList = listByIds(ids); | ||
| 59 | + if (CollectionUtils.isEmpty(a3ReportList)) { | ||
| 60 | + return new HashMap<>(0); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + return a3ReportList.stream().collect(Collectors.toMap(A3Report::getId, a3Report -> a3Report)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Transactional(readOnly = true) | ||
| 67 | + public List<A3Report> listAll() { | ||
| 68 | + | ||
| 69 | + Example example = CorpExample.ofCorp(entityClass); | ||
| 70 | + return a3ReportMapper.selectByExample(example); | ||
| 71 | + } | ||
| 72 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.service; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.service.BaseServiceImpl; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.base.BoErrorCode; | ||
| 5 | +import com.qgutech.qgyun.apaas.sync.base.BoException; | ||
| 6 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper.CompanyIndicatorMapper; | ||
| 7 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.CompanyIndicator; | ||
| 8 | +import org.apache.commons.collections4.CollectionUtils; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | +import org.springframework.util.Assert; | ||
| 12 | +import com.qgutech.qgyun.apaas.sync.utils.CorpExample; | ||
| 13 | +import tk.mybatis.mapper.entity.Example; | ||
| 14 | + | ||
| 15 | +import javax.annotation.Resource; | ||
| 16 | +import java.util.*; | ||
| 17 | +import java.util.stream.Collectors; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * CompanyIndicator 服务 | ||
| 21 | + */ | ||
| 22 | +@Service | ||
| 23 | +public class CompanyIndicatorService extends BaseServiceImpl<CompanyIndicator> { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private CompanyIndicatorMapper companyIndicatorMapper; | ||
| 27 | + | ||
| 28 | + @Transactional(readOnly = true) | ||
| 29 | + public CompanyIndicator getById(String id) { | ||
| 30 | + Assert.hasLength(id, "id is empty!"); | ||
| 31 | + | ||
| 32 | + Example example = new Example(entityClass); | ||
| 33 | + CorpExample.criteria(example).andEqualTo(CompanyIndicator.ID, id); | ||
| 34 | + CompanyIndicator companyIndicator = companyIndicatorMapper.selectOneByExample(example); | ||
| 35 | + if (null == companyIndicator) { | ||
| 36 | + throw new BoException(BoErrorCode.DATA_ERROR); | ||
| 37 | + } | ||
| 38 | + return companyIndicator; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Transactional(readOnly = true) | ||
| 42 | + public List<CompanyIndicator> listByIds(Collection<String> ids) { | ||
| 43 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 44 | + | ||
| 45 | + Example example = new Example(entityClass); | ||
| 46 | + CorpExample.criteria(example).andIn(CompanyIndicator.ID, ids); | ||
| 47 | + List<CompanyIndicator> companyIndicatorList = companyIndicatorMapper.selectByExample(example); | ||
| 48 | + if (CollectionUtils.isEmpty(companyIndicatorList)) { | ||
| 49 | + return new ArrayList<>(0); | ||
| 50 | + } | ||
| 51 | + return companyIndicatorList; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Transactional(readOnly = true) | ||
| 55 | + public Map<String, CompanyIndicator> mapByIds(Collection<String> ids) { | ||
| 56 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 57 | + | ||
| 58 | + List<CompanyIndicator> companyIndicatorList = listByIds(ids); | ||
| 59 | + if (CollectionUtils.isEmpty(companyIndicatorList)) { | ||
| 60 | + return new HashMap<>(0); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + return companyIndicatorList.stream().collect(Collectors.toMap(CompanyIndicator::getId, companyIndicator -> companyIndicator)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Transactional(readOnly = true) | ||
| 67 | + public List<CompanyIndicator> listAll() { | ||
| 68 | + | ||
| 69 | + Example example = CorpExample.ofCorp(entityClass); | ||
| 70 | + return companyIndicatorMapper.selectByExample(example); | ||
| 71 | + } | ||
| 72 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.service; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.service.BaseServiceImpl; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.base.BoErrorCode; | ||
| 5 | +import com.qgutech.qgyun.apaas.sync.base.BoException; | ||
| 6 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper.MasterPlanMapper; | ||
| 7 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.MasterPlan; | ||
| 8 | +import org.apache.commons.collections4.CollectionUtils; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | +import org.springframework.util.Assert; | ||
| 12 | +import com.qgutech.qgyun.apaas.sync.utils.CorpExample; | ||
| 13 | +import tk.mybatis.mapper.entity.Example; | ||
| 14 | + | ||
| 15 | +import javax.annotation.Resource; | ||
| 16 | +import java.util.*; | ||
| 17 | +import java.util.stream.Collectors; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * MasterPlan 服务 | ||
| 21 | + */ | ||
| 22 | +@Service | ||
| 23 | +public class MasterPlanService extends BaseServiceImpl<MasterPlan> { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private MasterPlanMapper masterPlanMapper; | ||
| 27 | + | ||
| 28 | + @Transactional(readOnly = true) | ||
| 29 | + public MasterPlan getById(String id) { | ||
| 30 | + Assert.hasLength(id, "id is empty!"); | ||
| 31 | + | ||
| 32 | + Example example = new Example(entityClass); | ||
| 33 | + CorpExample.criteria(example).andEqualTo(MasterPlan.ID, id); | ||
| 34 | + MasterPlan masterPlan = masterPlanMapper.selectOneByExample(example); | ||
| 35 | + if (null == masterPlan) { | ||
| 36 | + throw new BoException(BoErrorCode.DATA_ERROR); | ||
| 37 | + } | ||
| 38 | + return masterPlan; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Transactional(readOnly = true) | ||
| 42 | + public List<MasterPlan> listByIds(Collection<String> ids) { | ||
| 43 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 44 | + | ||
| 45 | + Example example = new Example(entityClass); | ||
| 46 | + CorpExample.criteria(example).andIn(MasterPlan.ID, ids); | ||
| 47 | + List<MasterPlan> masterPlanList = masterPlanMapper.selectByExample(example); | ||
| 48 | + if (CollectionUtils.isEmpty(masterPlanList)) { | ||
| 49 | + return new ArrayList<>(0); | ||
| 50 | + } | ||
| 51 | + return masterPlanList; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Transactional(readOnly = true) | ||
| 55 | + public Map<String, MasterPlan> mapByIds(Collection<String> ids) { | ||
| 56 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 57 | + | ||
| 58 | + List<MasterPlan> masterPlanList = listByIds(ids); | ||
| 59 | + if (CollectionUtils.isEmpty(masterPlanList)) { | ||
| 60 | + return new HashMap<>(0); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + return masterPlanList.stream().collect(Collectors.toMap(MasterPlan::getId, masterPlan -> masterPlan)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Transactional(readOnly = true) | ||
| 67 | + public List<MasterPlan> listAll() { | ||
| 68 | + | ||
| 69 | + Example example = CorpExample.ofCorp(entityClass); | ||
| 70 | + return masterPlanMapper.selectByExample(example); | ||
| 71 | + } | ||
| 72 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.service; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.service.BaseServiceImpl; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.base.BoErrorCode; | ||
| 5 | +import com.qgutech.qgyun.apaas.sync.base.BoException; | ||
| 6 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper.ScoreCardMapper; | ||
| 7 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.ScoreCard; | ||
| 8 | +import org.apache.commons.collections4.CollectionUtils; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | +import org.springframework.util.Assert; | ||
| 12 | +import com.qgutech.qgyun.apaas.sync.utils.CorpExample; | ||
| 13 | +import tk.mybatis.mapper.entity.Example; | ||
| 14 | + | ||
| 15 | +import javax.annotation.Resource; | ||
| 16 | +import java.util.*; | ||
| 17 | +import java.util.stream.Collectors; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * ScoreCard 服务 | ||
| 21 | + */ | ||
| 22 | +@Service | ||
| 23 | +public class ScoreCardService extends BaseServiceImpl<ScoreCard> { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private ScoreCardMapper scoreCardMapper; | ||
| 27 | + | ||
| 28 | + @Transactional(readOnly = true) | ||
| 29 | + public ScoreCard getById(String id) { | ||
| 30 | + Assert.hasLength(id, "id is empty!"); | ||
| 31 | + | ||
| 32 | + Example example = new Example(entityClass); | ||
| 33 | + CorpExample.criteria(example).andEqualTo(ScoreCard.ID, id); | ||
| 34 | + ScoreCard scoreCard = scoreCardMapper.selectOneByExample(example); | ||
| 35 | + if (null == scoreCard) { | ||
| 36 | + throw new BoException(BoErrorCode.DATA_ERROR); | ||
| 37 | + } | ||
| 38 | + return scoreCard; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Transactional(readOnly = true) | ||
| 42 | + public List<ScoreCard> listByIds(Collection<String> ids) { | ||
| 43 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 44 | + | ||
| 45 | + Example example = new Example(entityClass); | ||
| 46 | + CorpExample.criteria(example).andIn(ScoreCard.ID, ids); | ||
| 47 | + List<ScoreCard> scoreCardList = scoreCardMapper.selectByExample(example); | ||
| 48 | + if (CollectionUtils.isEmpty(scoreCardList)) { | ||
| 49 | + return new ArrayList<>(0); | ||
| 50 | + } | ||
| 51 | + return scoreCardList; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Transactional(readOnly = true) | ||
| 55 | + public Map<String, ScoreCard> mapByIds(Collection<String> ids) { | ||
| 56 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 57 | + | ||
| 58 | + List<ScoreCard> scoreCardList = listByIds(ids); | ||
| 59 | + if (CollectionUtils.isEmpty(scoreCardList)) { | ||
| 60 | + return new HashMap<>(0); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + return scoreCardList.stream().collect(Collectors.toMap(ScoreCard::getId, scoreCard -> scoreCard)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Transactional(readOnly = true) | ||
| 67 | + public List<ScoreCard> listAll() { | ||
| 68 | + | ||
| 69 | + Example example = CorpExample.ofCorp(entityClass); | ||
| 70 | + return scoreCardMapper.selectByExample(example); | ||
| 71 | + } | ||
| 72 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.service; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.service.BaseServiceImpl; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.base.BoErrorCode; | ||
| 5 | +import com.qgutech.qgyun.apaas.sync.base.BoException; | ||
| 6 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper.ThreeYearPlanMapper; | ||
| 7 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.ThreeYearPlan; | ||
| 8 | +import org.apache.commons.collections4.CollectionUtils; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | +import org.springframework.util.Assert; | ||
| 12 | +import com.qgutech.qgyun.apaas.sync.utils.CorpExample; | ||
| 13 | +import tk.mybatis.mapper.entity.Example; | ||
| 14 | + | ||
| 15 | +import javax.annotation.Resource; | ||
| 16 | +import java.util.*; | ||
| 17 | +import java.util.stream.Collectors; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * ThreeYearPlan 服务 | ||
| 21 | + */ | ||
| 22 | +@Service | ||
| 23 | +public class ThreeYearPlanService extends BaseServiceImpl<ThreeYearPlan> { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private ThreeYearPlanMapper threeYearPlanMapper; | ||
| 27 | + | ||
| 28 | + @Transactional(readOnly = true) | ||
| 29 | + public ThreeYearPlan getById(String id) { | ||
| 30 | + Assert.hasLength(id, "id is empty!"); | ||
| 31 | + | ||
| 32 | + Example example = new Example(entityClass); | ||
| 33 | + CorpExample.criteria(example).andEqualTo(ThreeYearPlan.ID, id); | ||
| 34 | + ThreeYearPlan threeYearPlan = threeYearPlanMapper.selectOneByExample(example); | ||
| 35 | + if (null == threeYearPlan) { | ||
| 36 | + throw new BoException(BoErrorCode.DATA_ERROR); | ||
| 37 | + } | ||
| 38 | + return threeYearPlan; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Transactional(readOnly = true) | ||
| 42 | + public List<ThreeYearPlan> listByIds(Collection<String> ids) { | ||
| 43 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 44 | + | ||
| 45 | + Example example = new Example(entityClass); | ||
| 46 | + CorpExample.criteria(example).andIn(ThreeYearPlan.ID, ids); | ||
| 47 | + List<ThreeYearPlan> threeYearPlanList = threeYearPlanMapper.selectByExample(example); | ||
| 48 | + if (CollectionUtils.isEmpty(threeYearPlanList)) { | ||
| 49 | + return new ArrayList<>(0); | ||
| 50 | + } | ||
| 51 | + return threeYearPlanList; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Transactional(readOnly = true) | ||
| 55 | + public Map<String, ThreeYearPlan> mapByIds(Collection<String> ids) { | ||
| 56 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 57 | + | ||
| 58 | + List<ThreeYearPlan> threeYearPlanList = listByIds(ids); | ||
| 59 | + if (CollectionUtils.isEmpty(threeYearPlanList)) { | ||
| 60 | + return new HashMap<>(0); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + return threeYearPlanList.stream().collect(Collectors.toMap(ThreeYearPlan::getId, threeYearPlan -> threeYearPlan)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Transactional(readOnly = true) | ||
| 67 | + public List<ThreeYearPlan> listAll() { | ||
| 68 | + | ||
| 69 | + Example example = CorpExample.ofCorp(entityClass); | ||
| 70 | + return threeYearPlanMapper.selectByExample(example); | ||
| 71 | + } | ||
| 72 | +} |
| 1 | +package com.qgutech.qgyun.apaas.sync.cpsfzzk.service; | ||
| 2 | + | ||
| 3 | +import com.qgutech.qgyun.framework.database.mybatis.service.BaseServiceImpl; | ||
| 4 | +import com.qgutech.qgyun.apaas.sync.base.BoErrorCode; | ||
| 5 | +import com.qgutech.qgyun.apaas.sync.base.BoException; | ||
| 6 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.mapper.WorkPlanMapper; | ||
| 7 | +import com.qgutech.qgyun.apaas.sync.cpsfzzk.model.WorkPlan; | ||
| 8 | +import org.apache.commons.collections4.CollectionUtils; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | +import org.springframework.util.Assert; | ||
| 12 | +import com.qgutech.qgyun.apaas.sync.utils.CorpExample; | ||
| 13 | +import tk.mybatis.mapper.entity.Example; | ||
| 14 | + | ||
| 15 | +import javax.annotation.Resource; | ||
| 16 | +import java.util.*; | ||
| 17 | +import java.util.stream.Collectors; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * WorkPlan 服务 | ||
| 21 | + */ | ||
| 22 | +@Service | ||
| 23 | +public class WorkPlanService extends BaseServiceImpl<WorkPlan> { | ||
| 24 | + | ||
| 25 | + @Resource | ||
| 26 | + private WorkPlanMapper workPlanMapper; | ||
| 27 | + | ||
| 28 | + @Transactional(readOnly = true) | ||
| 29 | + public WorkPlan getById(String id) { | ||
| 30 | + Assert.hasLength(id, "id is empty!"); | ||
| 31 | + | ||
| 32 | + Example example = new Example(entityClass); | ||
| 33 | + CorpExample.criteria(example).andEqualTo(WorkPlan.ID, id); | ||
| 34 | + WorkPlan workPlan = workPlanMapper.selectOneByExample(example); | ||
| 35 | + if (null == workPlan) { | ||
| 36 | + throw new BoException(BoErrorCode.DATA_ERROR); | ||
| 37 | + } | ||
| 38 | + return workPlan; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Transactional(readOnly = true) | ||
| 42 | + public List<WorkPlan> listByIds(Collection<String> ids) { | ||
| 43 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 44 | + | ||
| 45 | + Example example = new Example(entityClass); | ||
| 46 | + CorpExample.criteria(example).andIn(WorkPlan.ID, ids); | ||
| 47 | + List<WorkPlan> workPlanList = workPlanMapper.selectByExample(example); | ||
| 48 | + if (CollectionUtils.isEmpty(workPlanList)) { | ||
| 49 | + return new ArrayList<>(0); | ||
| 50 | + } | ||
| 51 | + return workPlanList; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @Transactional(readOnly = true) | ||
| 55 | + public Map<String, WorkPlan> mapByIds(Collection<String> ids) { | ||
| 56 | + Assert.notEmpty(ids, "ids is empty!"); | ||
| 57 | + | ||
| 58 | + List<WorkPlan> workPlanList = listByIds(ids); | ||
| 59 | + if (CollectionUtils.isEmpty(workPlanList)) { | ||
| 60 | + return new HashMap<>(0); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + return workPlanList.stream().collect(Collectors.toMap(WorkPlan::getId, workPlan -> workPlan)); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Transactional(readOnly = true) | ||
| 67 | + public List<WorkPlan> listAll() { | ||
| 68 | + | ||
| 69 | + Example example = CorpExample.ofCorp(entityClass); | ||
| 70 | + return workPlanMapper.selectByExample(example); | ||
| 71 | + } | ||
| 72 | +} |
| 1 | package com.qgutech.qgyun.apaas.sync.cpsipo.model; | 1 | package com.qgutech.qgyun.apaas.sync.cpsipo.model; |
| 2 | 2 | ||
| 3 | -import com.qgutech.qgyun.apaas.sync.cpsipo.enums.GzjhztEnum; | ||
| 4 | import com.qgutech.qgyun.framework.database.model.BaseCorpModel; | 3 | import com.qgutech.qgyun.framework.database.model.BaseCorpModel; |
| 5 | import lombok.Getter; | 4 | import lombok.Getter; |
| 6 | import lombok.Setter; | 5 | import lombok.Setter; |
src/main/resources/doc/方针展开表模型信息.xlsx
0 → 100644
No preview for this file type
| @@ -637,23 +637,6 @@ CREATE TABLE `t_auto_hfca_zlujkl_tiemuz` | @@ -637,23 +637,6 @@ CREATE TABLE `t_auto_hfca_zlujkl_tiemuz` | ||
| 637 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | 637 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; |
| 638 | 638 | ||
| 639 | 639 | ||
| 640 | ---板块信息 | ||
| 641 | -CREATE TABLE `t_auto_hfca_dnxpkp_bkxxxx` | ||
| 642 | -( | ||
| 643 | - `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 644 | - `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 645 | - `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 646 | - `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 647 | - `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 648 | - `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 649 | - `mc` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 650 | - `bm` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 651 | - `xh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 652 | - `qtdw` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 653 | - `qtdwfzr` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 654 | - PRIMARY KEY (`id`) | ||
| 655 | -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 656 | - | ||
| 657 | --质量缺陷信息 | 640 | --质量缺陷信息 |
| 658 | CREATE TABLE `t_auto_hfca_zlujkl_jkwtix` | 641 | CREATE TABLE `t_auto_hfca_zlujkl_jkwtix` |
| 659 | ( | 642 | ( |
src/main/resources/sql/cpsfzzk-init.sql
0 → 100644
| 1 | +--板块信息 | ||
| 2 | +CREATE TABLE `t_auto_hfca_dnxpkp_bkxxxx` | ||
| 3 | +( | ||
| 4 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 5 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 6 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 7 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 8 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 9 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 10 | + `mc` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 11 | + `bm` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 12 | + `xh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 13 | + PRIMARY KEY (`id`) | ||
| 14 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 15 | + | ||
| 16 | +--公司级指标信息 | ||
| 17 | +CREATE TABLE `t_auto_hfca_dnxpkp_jmpstx` | ||
| 18 | +( | ||
| 19 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 20 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 21 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 22 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 23 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 24 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 25 | + `ssbk` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 26 | + `bkxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 27 | + `mc` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 28 | + `zbxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 29 | + `qdyxya` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 30 | + `nf` datetime(3) DEFAULT NULL, | ||
| 31 | + `zt` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 32 | + PRIMARY KEY (`id`) | ||
| 33 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 34 | + | ||
| 35 | +--三年规划表信息 | ||
| 36 | +CREATE TABLE `t_auto_hfca_dnxpkp_snghbx` | ||
| 37 | +( | ||
| 38 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 39 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 40 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 41 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 42 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 43 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 44 | + `bk` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 45 | + `zb` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 46 | + `zbxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 47 | + `jznd` datetime(3) DEFAULT NULL, | ||
| 48 | + `jzndz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 49 | + `jzytd` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 50 | + `jznda` datetime(3) DEFAULT NULL, | ||
| 51 | + `ndmbz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 52 | + `jzndb` datetime(3) DEFAULT NULL, | ||
| 53 | + `ndmbza` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 54 | + `jzndc` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 55 | + `ndmbzb` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 56 | + `sfsd` tinyint(1) DEFAULT NULL, | ||
| 57 | + `whlb` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 58 | + `xzyy` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 59 | + `xzsj` datetime(3) DEFAULT NULL, | ||
| 60 | + `qtdw` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 61 | + `qtdwfz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 62 | + `cx` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 63 | + `bz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 64 | + `qtdwfzr` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 65 | + `jzndc1` datetime(3) DEFAULT NULL, | ||
| 66 | + PRIMARY KEY (`id`) | ||
| 67 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 68 | + | ||
| 69 | +--A3报告 | ||
| 70 | +CREATE TABLE `t_auto_hfca_dnxpkp_abgxxx` | ||
| 71 | +( | ||
| 72 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 73 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 74 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 75 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 76 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 77 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 78 | + `bk` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 79 | + `fzr` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 80 | + `mdjxqkh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 81 | + `gzjhzt` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 82 | + `zlkl` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 83 | + `tjdxwh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 84 | + `xsjdwt` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 85 | + `nf` datetime(3) DEFAULT NULL, | ||
| 86 | + PRIMARY KEY (`id`) | ||
| 87 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 88 | + | ||
| 89 | +--A3报告工作计划状态和BIC | ||
| 90 | +CREATE TABLE `t_auto_hfca_dnxpkp_gzjhzt` | ||
| 91 | +( | ||
| 92 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 93 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 94 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 95 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 96 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 97 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 98 | + `ssabg` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 99 | + `bk` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 100 | + `zb` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 101 | + `zbxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 102 | + `cx` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 103 | + `snd` datetime(3) DEFAULT NULL, | ||
| 104 | + `sndz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 105 | + `bnd` datetime(3) DEFAULT NULL, | ||
| 106 | + `bndz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 107 | + `hn` datetime(3) DEFAULT NULL, | ||
| 108 | + `hndz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 109 | + `b` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 110 | + `bicbiw` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 111 | + `gszb` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 112 | + PRIMARY KEY (`id`) | ||
| 113 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 114 | + | ||
| 115 | +--A3报告推进的行为和步骤 | ||
| 116 | +CREATE TABLE `t_auto_hfca_dnxpkp_tjdxwh` | ||
| 117 | +( | ||
| 118 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 119 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 120 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 121 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 122 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 123 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 124 | + `ssabg` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 125 | + `bk` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 126 | + `bkxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 127 | + `tjdxwhbz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 128 | + `zt` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 129 | + `xwbzxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 130 | + `xh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 131 | + PRIMARY KEY (`id`) | ||
| 132 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 133 | + | ||
| 134 | +--A3报告问题事件 | ||
| 135 | +CREATE TABLE `t_auto_hfca_dnxpkp_abgwts` | ||
| 136 | +( | ||
| 137 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 138 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 139 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 140 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 141 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 142 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 143 | + `xsjdwtsj` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 144 | + `zrr` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 145 | + `sj` datetime(3) DEFAULT NULL, | ||
| 146 | + `ssabg` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 147 | + PRIMARY KEY (`id`) | ||
| 148 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 149 | + | ||
| 150 | +--公司级主体计划 | ||
| 151 | +CREATE TABLE `t_auto_hfca_dnxpkp_ztjhxx` | ||
| 152 | +( | ||
| 153 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 154 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 155 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 156 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 157 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 158 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 159 | + `bk` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 160 | + `jhxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 161 | + `qtr` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 162 | + `zrr` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 163 | + `ztjhxdcl` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 164 | + `mb` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 165 | + `glgsjz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 166 | + `sstjxw` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 167 | + `gzjhlb` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 168 | + `nf` datetime(3) DEFAULT NULL, | ||
| 169 | + `abg` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 170 | + `sstjdxwhbz` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 171 | + `xwhbzxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 172 | + `xh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 173 | + `glgsjzb` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 174 | + PRIMARY KEY (`id`) | ||
| 175 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 176 | + | ||
| 177 | +--公司级工作计划 | ||
| 178 | +CREATE TABLE `t_auto_hfca_dnxpkp_gzjhxx` | ||
| 179 | +( | ||
| 180 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 181 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 182 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 183 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 184 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 185 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 186 | + `ztjhxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 187 | + `jhxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 188 | + `gzjhrw` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 189 | + `ksrq` datetime(3) DEFAULT NULL, | ||
| 190 | + `jsrq` datetime(3) DEFAULT NULL, | ||
| 191 | + `gzjhzr` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 192 | + `hgzrzg` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 193 | + `sfkq` tinyint(1) DEFAULT NULL, | ||
| 194 | + `xmjdzt` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 195 | + `wcqkms` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 196 | + `wchfj` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 197 | + `xmsfyqsq` tinyint(1) DEFAULT NULL, | ||
| 198 | + `yqhsj` datetime(3) DEFAULT NULL, | ||
| 199 | + `jlsp` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 200 | + `ssztjh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 201 | + `xh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 202 | + `gzjhzrr` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 203 | + `hgzrzgjl` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 204 | + PRIMARY KEY (`id`) | ||
| 205 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
| 206 | + | ||
| 207 | +--公司级记分卡 | ||
| 208 | +CREATE TABLE `t_auto_hfca_dnxpkp_jfxxxx` | ||
| 209 | +( | ||
| 210 | + `id` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ID', | ||
| 211 | + `corp_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司编号', | ||
| 212 | + `created_at` datetime(3) NOT NULL COMMENT '创建时间', | ||
| 213 | + `created_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人ID', | ||
| 214 | + `updated_at` datetime(3) NOT NULL COMMENT '最后更新时间', | ||
| 215 | + `updated_by` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后更新人', | ||
| 216 | + `lxcj` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 217 | + `syndsjz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 218 | + `qy` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 219 | + `bk` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 220 | + `zb` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 221 | + `zbxh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 222 | + `cx` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 223 | + `jznd` datetime(3) DEFAULT NULL, | ||
| 224 | + `mbytdm` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 225 | + `syndsj` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 226 | + `sfpp` tinyint(1) DEFAULT NULL, | ||
| 227 | + `qtdw` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 228 | + `qtzrr` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 229 | + `bndsjz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 230 | + `ymbz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 231 | + `ysjz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 232 | + `ysfdb` tinyint(1) DEFAULT NULL, | ||
| 233 | + `ymbza` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 234 | + `ysjza` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 235 | + `ysfdba` tinyint(1) DEFAULT NULL, | ||
| 236 | + `ymbzb` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 237 | + `ysjzb` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 238 | + `ysfdbb` tinyint(1) DEFAULT NULL, | ||
| 239 | + `ymbzc` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 240 | + `ysjzc` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 241 | + `ysfdbc` tinyint(1) DEFAULT NULL, | ||
| 242 | + `ymbzd` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 243 | + `ysjzd` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 244 | + `ysfdbd` tinyint(1) DEFAULT NULL, | ||
| 245 | + `ymbze` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 246 | + `ysjze` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 247 | + `ysfdbe` tinyint(1) DEFAULT NULL, | ||
| 248 | + `ymbzf` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 249 | + `ysjzf` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 250 | + `ysfdbf` tinyint(1) DEFAULT NULL, | ||
| 251 | + `ymbzg` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 252 | + `ysjzg` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 253 | + `ysfdbg` tinyint(1) DEFAULT NULL, | ||
| 254 | + `ymbzh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 255 | + `ysjzh` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 256 | + `ysfdbh` tinyint(1) DEFAULT NULL, | ||
| 257 | + `ymbzi` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 258 | + `ysjzi` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 259 | + `ysfdbi` tinyint(1) DEFAULT NULL, | ||
| 260 | + `ymbzj` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 261 | + `ysjzj` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 262 | + `ysfdbj` tinyint(1) DEFAULT NULL, | ||
| 263 | + `ymbzk` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 264 | + `ysjzk` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 265 | + `ysfdbk` tinyint(1) DEFAULT NULL, | ||
| 266 | + `mbytdmbz` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 267 | + `zt` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 268 | + `hgry` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 269 | + `glgskpi` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, | ||
| 270 | + PRIMARY KEY (`id`) | ||
| 271 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; |