diff --git a/ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java b/ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java index e326099..c4453af 100644 --- a/ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java +++ b/ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java @@ -56,7 +56,7 @@ public class GeneratorCodeKingbaseConfig { } public static void main(String[] args) { - generate("Lierbao", "organization", PATH_LXX, "ding_employee_info"); + generate("Poffy", "projectlib", PATH_YYD, "nd_project_inst"); } } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/config/BeanConfig.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/config/BeanConfig.java index 93bfd09..315f77a 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/config/BeanConfig.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/config/BeanConfig.java @@ -3,7 +3,6 @@ package com.ningdatech.pmapi.common.config; import com.alibaba.xxpt.gateway.shared.client.http.ExecutableClient; import com.ningdatech.pmapi.common.util.SpringContextHolder; import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.DependsOn; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/enumeration/ExportOptionEnum.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/enumeration/ExportOptionEnum.java new file mode 100644 index 0000000..1067f97 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/enumeration/ExportOptionEnum.java @@ -0,0 +1,147 @@ +package com.ningdatech.pmapi.common.enumeration; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; + + +/** + * 导出选项枚举 + * + * @author CMM + * @since 2023/02/10 16:38 + */ +@Getter +@AllArgsConstructor +@NoArgsConstructor +public enum ExportOptionEnum { + /** + * 导出选项 + */ + id(1, "项目ID"), + + projectName(2, "项目名称"), + + areaCode(3, "行政区划编码"), + + area(4, "行政区划名称"), + + responsibleMan(5, "项目负责人"), + + responsibleManMobile(6, "项目负责人手机号"), + + contactName(7, "项目联系人"), + + contactPhone(8, "项目联系人手机号"), + + higherSuperOrg(9, "上级业务主管单位"), + + higherSuperOrgCode(10, "上级主管单位浙政钉ID"), + + superOrg(11, "本级主管部门"), + + superOrgCode(12, "本级主管部门浙政钉ID"), + + buildOrgName(13, "建设单位名称"), + + buildOrgZheJiangGovDingId(14, "建设单位浙政钉ID"), + + buildOrgCode(15, "建设单位统一信用代码"), + + projectType(16, "项目类型"), + + isFirst(17, "是否首次新建"), + + relatedExistsApplication(18, "关联应用"), + + relatedExistsApplicationCode(19, "关联应用IRS编码"), + + declareAmount(20, "申报金额(万元)"), + + approvedTotalInvestmentIncrease(21, "批复金额"), + + /** + * 表里没有 + */ + budgetSource(22, "预算来源"), + + projectYear(23, "预算年度"), + + projectIntroduction(24, "项目简介"), + + buildBasis(25, "立项依据"), + + buildLevel(26, "建设层级"), + + developCode(27, "发改编码"), + + financialCode(28, "财政编码"), + + /** + * 表里没有 + */ + informationValidity(29, "信息是否有效"), + + + isDigitalReform(30, "是否数字化改革项目"), + + bizDomain(31, "综合应用领域"), + + isCloud(32, "是否上云"), + + cloudType(33, "云类型"), + + fourSystems(34, "四大体系"), + isTemporaryAugment(35, "是否临时增补"), + + protectionLevel(36, "等保级别"), + + isSecretComments(37, "是否密评"), + + businessNumber(38, "业务编号"), + + businessName(39, "业务名称"), + + orgName(40, "单位名称"), + + softwareDevelopmentAmount(41, "软件开发(万元)"), + + cloudHardwarePurchaseAmount(42, "云资源、硬件购置(万元)"), + + thirdPartyAmount(43, "第三方服务(万元)"), + + safetyInputTitle(44, "投入项"), + + safetyInputDescribe(45, "内容描述"), + + safetyInputAmount(46, "金额"), + + annualPlanAmount(47, "年度支付金额(万元)"), + + annualPlanHaveAmount(48, "自有资金(万元)"), + + declareGovOwnFinanceAmount(49, "政府投资-本级财政资金(万元)"), + + declareGovSuperiorFinanceAmount(50, "政府投资-上级补助资金(万元)"), + + declareBankLendingAmount(51, "银行贷款(万元)"), + + declareOtherAmount(52, "其它资金(万元)"), + + engineeringSpeedOne(53, "第一季度"), + + engineeringSpeedTwo(54, "第二季度"), + + engineeringSpeedThree(55, "第三季度"), + + engineeringSpeedFour(56, "第四季度"), + + preliminaryPlanFile(57, "初步方案"), + + supportingMaterialsFile(58, "附件-佐证材料"), + + projectRemarks(59, "备注"); + + private Integer code; + private String desc; +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/enums/ProjectProessStageEnum.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/enumeration/ProjectProessStageEnum.java similarity index 92% rename from pmapi/src/main/java/com/ningdatech/pmapi/common/enums/ProjectProessStageEnum.java rename to pmapi/src/main/java/com/ningdatech/pmapi/common/enumeration/ProjectProessStageEnum.java index 3b7ad16..99cc654 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/enums/ProjectProessStageEnum.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/enumeration/ProjectProessStageEnum.java @@ -1,4 +1,4 @@ -package com.ningdatech.pmapi.common.enums; +package com.ningdatech.pmapi.common.enumeration; import lombok.AllArgsConstructor; import lombok.Getter; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/enums/ExportOptionEnum.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/enums/ExportOptionEnum.java deleted file mode 100644 index 406b18f..0000000 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/enums/ExportOptionEnum.java +++ /dev/null @@ -1,148 +0,0 @@ -package com.ningdatech.pmapi.common.enums; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; - - - -/** - * 导出选项枚举 - * - * @author CMM - * @since 2023/02/10 16:38 - */ -@Getter -@AllArgsConstructor -@NoArgsConstructor -public enum ExportOptionEnum { - /** - * 导出选项 - */ - id(1,"项目ID"), - - projectName(2,"项目名称"), - - areaCode(3,"行政区划编码"), - - area(4,"行政区划名称"), - - responsibleMan(5,"项目负责人"), - - responsibleManMobile(6,"项目负责人手机号"), - - contactName(7,"项目联系人"), - - contactPhone(8,"项目联系人手机号"), - - higherSuperOrg(9,"上级业务主管单位"), - - higherSuperOrgCode(10,"上级主管单位浙政钉ID"), - - superOrg(11,"本级主管部门"), - - superOrgCode(12,"本级主管部门浙政钉ID"), - - buildOrgName(13,"建设单位名称"), - - buildOrgZheJiangGovDingId(14,"建设单位浙政钉ID"), - - buildOrgCode(15,"建设单位统一信用代码"), - - projectType(16,"项目类型"), - - isFirst(17,"是否首次新建"), - - relatedExistsApplication(18,"关联应用"), - - relatedExistsApplicationCode(19,"关联应用IRS编码"), - - declareAmount(20,"申报金额(万元)"), - - approvedTotalInvestmentIncrease(21,"批复金额"), - - /** - * 表里没有 - */ - budgetSource(22,"预算来源"), - - projectYear(23,"预算年度"), - - projectIntroduction(24,"项目简介"), - - buildBasis(25,"立项依据"), - - buildLevel(26,"建设层级"), - - developCode(27,"发改编码"), - - financialCode(28,"财政编码"), - - /** - * 表里没有 - */ - informationValidity(29,"信息是否有效"), - - - isDigitalReform(30,"是否数字化改革项目"), - - bizDomain(31,"综合应用领域"), - - isCloud(32,"是否上云"), - - cloudType(33,"云类型"), - - fourSystems(34,"四大体系"), - isTemporaryAugment(35,"是否临时增补"), - - protectionLevel(36,"等保级别"), - - isSecretComments(37,"是否密评"), - - businessNumber(38,"业务编号"), - - businessName(39,"业务名称"), - - orgName(40,"单位名称"), - - softwareDevelopmentAmount(41,"软件开发(万元)"), - - cloudHardwarePurchaseAmount(42,"云资源、硬件购置(万元)"), - - thirdPartyAmount(43,"第三方服务(万元)"), - - safetyInputTitle(44,"投入项"), - - safetyInputDescribe(45,"内容描述"), - - safetyInputAmount(46,"金额"), - - annualPlanAmount(47,"年度支付金额(万元)"), - - annualPlanHaveAmount(48,"自有资金(万元)"), - - declareGovOwnFinanceAmount(49,"政府投资-本级财政资金(万元)"), - - declareGovSuperiorFinanceAmount(50,"政府投资-上级补助资金(万元)"), - - declareBankLendingAmount(51,"银行贷款(万元)"), - - declareOtherAmount(52,"其它资金(万元)"), - - engineeringSpeedOne(53,"第一季度"), - - engineeringSpeedTwo(54,"第二季度"), - - engineeringSpeedThree(55,"第三季度"), - - engineeringSpeedFour(56,"第四季度"), - - preliminaryPlanFile(57,"初步方案"), - - supportingMaterialsFile(58,"附件-佐证材料"), - - projectRemarks(59,"备注"); - - private Integer code; - private String desc; -} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java index a895b8f..d3090ff 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java @@ -2,7 +2,7 @@ package com.ningdatech.pmapi.common.handler; import cn.hutool.json.JSONUtil; import com.ningdatech.basic.model.ApiResponse; -import com.ningdatech.pmapi.common.utils.BizUtils; +import com.ningdatech.pmapi.common.util.BizUtils; import org.springframework.core.MethodParameter; import org.springframework.http.MediaType; import org.springframework.http.converter.HttpMessageConverter; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/builder/ProjectDeclareStateMachineBuilder.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/builder/ProjectDeclareStateMachineBuilder.java index 4283c0c..117c2af 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/builder/ProjectDeclareStateMachineBuilder.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/builder/ProjectDeclareStateMachineBuilder.java @@ -91,7 +91,7 @@ public class ProjectDeclareStateMachineBuilder { .withChoice() .source(ProjectStatusEnum.PENDING_PREQUALIFICATION_CHOICE) .first(ProjectStatusEnum.JOINT_REVIEW_BY_PROVINCIAL_DEPARTMENTS,projectDeclareGuardFactory.new PendingPreQualificationChoiceGuard(),projectDeclareAction.new ProjectDeclareChoiceAction()) - .last(ProjectStatusEnum.PRE_APPLYING).and() + .last(ProjectStatusEnum.PRE_APPLYING,projectDeclareAction.new ProjectDeclareChoiceAction()).and() // 待预审撤回,从待预审到单位内部审核中 .withExternal() .source(ProjectStatusEnum.PENDING_PREQUALIFICATION) @@ -127,11 +127,11 @@ public class ProjectDeclareStateMachineBuilder { .source(ProjectStatusEnum.PRE_APPLYING) .target(ProjectStatusEnum.PENDING_PREQUALIFICATION_CHOICE) .event(ProjectStatusChangeEvent.PRE_APPLYING_WITHDRAW).and() - // 预审中撤回,从待预审选择->省级部门联审中,预审中,完成其中一种状态 + // 预审中撤回,从待预审选择->省级部门联审中,待预审,完成其中一种状态 .withChoice() .source(ProjectStatusEnum.PRE_APPLYING) .first(ProjectStatusEnum.JOINT_REVIEW_BY_PROVINCIAL_DEPARTMENTS,projectDeclareGuardFactory.new PendingPreQualificationChoiceGuard(),new ProjectDeclareChoiceAction()) - .last(ProjectStatusEnum.PRE_APPLYING).and() + .last(ProjectStatusEnum.PENDING_PREQUALIFICATION,projectDeclareAction.new ProjectDeclareChoiceAction()).and() // 部门联审通过,从部门联审中到年度计划中 .withExternal() .source(ProjectStatusEnum.DEPARTMENT_JOINT_REVIEW) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/utils/BizUtils.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/util/BizUtils.java similarity index 97% rename from pmapi/src/main/java/com/ningdatech/pmapi/common/utils/BizUtils.java rename to pmapi/src/main/java/com/ningdatech/pmapi/common/util/BizUtils.java index 71d33cc..7343207 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/utils/BizUtils.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/util/BizUtils.java @@ -1,4 +1,4 @@ -package com.ningdatech.pmapi.common.utils; +package com.ningdatech.pmapi.common.util; import cn.hutool.core.util.StrUtil; import com.ningdatech.basic.util.StrPool; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/utils/TreeUtil.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/util/TreeUtil.java similarity index 99% rename from pmapi/src/main/java/com/ningdatech/pmapi/common/utils/TreeUtil.java rename to pmapi/src/main/java/com/ningdatech/pmapi/common/util/TreeUtil.java index 1359135..ae70159 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/utils/TreeUtil.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/util/TreeUtil.java @@ -1,12 +1,12 @@ -package com.ningdatech.pmapi.common.utils; +package com.ningdatech.pmapi.common.util; import cn.hutool.core.collection.CollUtil; import com.google.common.collect.Maps; import com.ningdatech.basic.util.StrPool; import com.ningdatech.pmapi.common.model.entity.MenuTreeEntity; -import com.ningdatech.pmapi.sys.entity.RoleMenu; -import com.ningdatech.pmapi.sys.entity.vo.MenuRoleVO; +import com.ningdatech.pmapi.sys.model.entity.RoleMenu; +import com.ningdatech.pmapi.sys.model.vo.MenuRoleVO; import org.apache.commons.lang3.StringUtils; import java.io.Serializable; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java index fc9d2ed..26b88c6 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java @@ -7,7 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ningdatech.basic.model.PageVo; -import com.ningdatech.pmapi.common.enums.ProjectProessStageEnum; +import com.ningdatech.pmapi.common.enumeration.ProjectProessStageEnum; import com.ningdatech.pmapi.projectdeclared.entity.ProjectDraft; import com.ningdatech.pmapi.projectdeclared.entity.dto.DeclaredProjectDto; import com.ningdatech.pmapi.projectdeclared.entity.dto.DeclaredProjectListParamDto; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java index 1e04fba..e19f880 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java @@ -4,7 +4,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.ningdatech.basic.function.VUtils; -import com.ningdatech.pmapi.common.enums.ProjectProessStageEnum; +import com.ningdatech.pmapi.common.enumeration.ProjectProessStageEnum; import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils; import com.ningdatech.pmapi.projectdeclared.entity.dto.PreDeclaredProjectDto; import com.ningdatech.pmapi.projectdeclared.entity.dto.ProjectConditionDto; @@ -108,7 +108,7 @@ public class PrequalificationDeclaredProjectManage { project.setUpdateOn(LocalDateTime.now()); project.setInstCode(instanceId); //调用状态机 进入下一个通过状态 - stateMachineUtils.execute(project,stateMachineUtils.getProjectStatusPassEvent(project.getStatus())); + stateMachineUtils.execute(project, stateMachineUtils.getProjectStatusPassEvent(project.getStatus())); projectService.updateById(project); } catch (Exception e) { log.error("提交预审 项目信息修改 错误 ", e); diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/AnnualPlanController.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/AnnualPlanController.java index 171a79e..d50be49 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/AnnualPlanController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/AnnualPlanController.java @@ -1,15 +1,20 @@ package com.ningdatech.pmapi.projectlib.controller; import com.ningdatech.basic.model.PageVo; +import com.ningdatech.log.annotation.WebLog; import com.ningdatech.pmapi.projectlib.manage.AnnualPlanLibManage; +import com.ningdatech.pmapi.projectlib.model.req.ProjectApprovedReq; +import com.ningdatech.pmapi.projectlib.model.req.ProjectIdReq; import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq; +import com.ningdatech.pmapi.projectlib.model.req.StartProjectDeclareReq; import com.ningdatech.pmapi.projectlib.model.vo.AnnualPlanListItemVO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.validation.Valid; /** *
@@ -33,4 +38,32 @@ public class AnnualPlanController {
return annualPlanLibManage.annulPlanLibList(req);
}
+ @PostMapping("/startProjectDeclared")
+ @ApiOperation("开启项目申报")
+ @WebLog("开启项目申报")
+ public void startProjectDeclared(@RequestBody @Valid StartProjectDeclareReq req) {
+ annualPlanLibManage.startProjectDeclared(req);
+ }
+
+ @PostMapping("/projectApproved")
+ @ApiOperation("立项批复")
+ @WebLog("立项批复")
+ public void projectApproved(@RequestBody @Valid ProjectApprovedReq req) throws Exception {
+ annualPlanLibManage.projectApproved(req);
+ }
+
+ @PostMapping("/suspendAnnualPlan")
+ @ApiOperation("暂缓年度计划")
+ @WebLog("暂缓年度计划")
+ public void suspendAnnualPlan(@RequestBody @Valid ProjectIdReq req) throws Exception {
+ annualPlanLibManage.suspendAnnualPlan(req);
+ }
+
+ @PostMapping("/importAnnualPlan")
+ @ApiOperation("导入年度计划")
+ @WebLog("导入年度计划")
+ public void importAnnualPlan(MultipartFile file) {
+ annualPlanLibManage.importAnnualPlan(file);
+ }
+
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/ProjectLibController.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/ProjectLibController.java
index a929f2e..0f9a893 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/ProjectLibController.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/ProjectLibController.java
@@ -40,10 +40,4 @@ public class ProjectLibController {
return projectLibManage.getProjectDetail(id);
}
- @GetMapping("/getProjectInfo")
- @ApiOperation("获取申报项目信息")
- private Project getProjectInfo (@RequestParam String processInstanceId){
- return projectLibManage.getProjectInfo(processInstanceId);
- }
-
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/enumeration/ProjectStatusEnum.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/enumeration/ProjectStatusEnum.java
index 9631f37..dd2b85b 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/enumeration/ProjectStatusEnum.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/enumeration/ProjectStatusEnum.java
@@ -56,10 +56,6 @@ public enum ProjectStatusEnum {
*/
ARCHIVED(30000, "已归档");
- public static void main(String[] args) {
- System.out.println(Arrays.stream(ProjectStatusEnum.values()).filter(w -> w.getCode() >= 10010).collect(Collectors.toList()));
- }
-
private Integer code;
private String desc;
@@ -87,4 +83,8 @@ public enum ProjectStatusEnum {
return null;
}
+ public boolean eq(int code) {
+ return this.getCode().equals(code);
+ }
+
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java
index b5c2ec5..fb83502 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java
@@ -1,21 +1,37 @@
package com.ningdatech.pmapi.projectlib.manage;
+import cn.hutool.poi.excel.ExcelUtil;
+import com.alibaba.excel.EasyExcel;
+import com.alibaba.excel.ExcelReader;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ningdatech.basic.exception.BizException;
import com.ningdatech.basic.model.PageVo;
import com.ningdatech.basic.util.CollUtils;
+import com.ningdatech.pmapi.common.statemachine.event.ProjectStatusChangeEvent;
+import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils;
import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum;
import com.ningdatech.pmapi.projectlib.helper.ProjectHelper;
import com.ningdatech.pmapi.projectlib.model.entity.Project;
+import com.ningdatech.pmapi.projectlib.model.req.ProjectApprovedReq;
+import com.ningdatech.pmapi.projectlib.model.req.ProjectIdReq;
import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq;
+import com.ningdatech.pmapi.projectlib.model.req.StartProjectDeclareReq;
import com.ningdatech.pmapi.projectlib.model.vo.AnnualPlanListItemVO;
import com.ningdatech.pmapi.projectlib.service.IProjectService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.multipart.MultipartFile;
+import java.io.IOException;
+import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import java.util.Map;
import static com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum.*;
@@ -32,13 +48,13 @@ import static com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum.*;
public class AnnualPlanLibManage {
private final IProjectService projectService;
+ private final StateMachineUtils stateMachine;
/**
* 年度计划查询状态
*/
private static final List
+ * Mapper 接口
+ *
+ * AnnualLibImportDTO
+ *
+ *
+ *
+ * 立项批复参数类
+ *
+ * ProjectIdReq
+ *
+ * StartProjectDeclareReq
+ *
@@ -274,21 +272,21 @@ public class ProjectDetailVO {
private List
+ * 服务类
+ *
+ * 服务实现类
+ *
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/RegionMapper.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/RegionMapper.java
index ff3bc43..1dc0d26 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/RegionMapper.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/RegionMapper.java
@@ -1,7 +1,7 @@
package com.ningdatech.pmapi.sys.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.ningdatech.pmapi.sys.entity.Region;
+import com.ningdatech.pmapi.sys.model.entity.Region;
/**
*
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/ResourceMapper.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/ResourceMapper.java
index 32b995d..994941a 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/ResourceMapper.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/ResourceMapper.java
@@ -1,8 +1,8 @@
package com.ningdatech.pmapi.sys.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.ningdatech.pmapi.sys.entity.Resource;
-import com.ningdatech.pmapi.sys.entity.dto.ResourceQueryDTO;
+import com.ningdatech.pmapi.sys.model.entity.Resource;
+import com.ningdatech.pmapi.sys.model.dto.ResourceQueryDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/ResourceMapper.xml b/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/ResourceMapper.xml
index f07bbb5..5731ee5 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/ResourceMapper.xml
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/ResourceMapper.xml
@@ -3,7 +3,7 @@
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/UserRoleMapper.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/UserRoleMapper.java
index c975b26..bede1c0 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/UserRoleMapper.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/mapper/UserRoleMapper.java
@@ -1,7 +1,7 @@
package com.ningdatech.pmapi.sys.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.ningdatech.pmapi.sys.entity.UserRole;
+import com.ningdatech.pmapi.sys.model.entity.UserRole;
import org.springframework.stereotype.Repository;
/**
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuDataScopeDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuDataScopeDTO.java
similarity index 88%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuDataScopeDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuDataScopeDTO.java
index 0f9ddd0..62bd211 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuDataScopeDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuDataScopeDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuQueryDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuQueryDTO.java
similarity index 97%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuQueryDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuQueryDTO.java
index 0571ff7..bb4a49b 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuQueryDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuQueryDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuSaveDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java
similarity index 94%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuSaveDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java
index 7a5661b..e2c8f5e 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuSaveDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -6,7 +6,6 @@ import lombok.*;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
-import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuUpdateDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuUpdateDTO.java
similarity index 97%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuUpdateDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuUpdateDTO.java
index 03163c2..ee76257 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/MenuUpdateDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuUpdateDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RegionDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RegionDTO.java
similarity index 95%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RegionDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RegionDTO.java
index e3f2db8..b0d82dc 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RegionDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RegionDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import lombok.Builder;
import lombok.Data;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RegionTreeDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RegionTreeDTO.java
similarity index 93%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RegionTreeDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RegionTreeDTO.java
index c120ff8..e4a63d8 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RegionTreeDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RegionTreeDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import lombok.Data;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/ResourceQueryDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/ResourceQueryDTO.java
similarity index 94%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/ResourceQueryDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/ResourceQueryDTO.java
index ff5f174..19460f0 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/ResourceQueryDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/ResourceQueryDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModel;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/ResourceSaveDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/ResourceSaveDTO.java
similarity index 96%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/ResourceSaveDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/ResourceSaveDTO.java
index 008e733..1f1e542 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/ResourceSaveDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/ResourceSaveDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/ResourceUpdateDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/ResourceUpdateDTO.java
similarity index 97%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/ResourceUpdateDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/ResourceUpdateDTO.java
index 3394406..d0b4a83 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/ResourceUpdateDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/ResourceUpdateDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import com.baomidou.mybatisplus.core.conditions.update.Update;
import io.swagger.annotations.ApiModel;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleAuthoritySaveDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleAuthoritySaveDTO.java
similarity index 95%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleAuthoritySaveDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleAuthoritySaveDTO.java
index 0644697..0a31804 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleAuthoritySaveDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleAuthoritySaveDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleQueryDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleQueryDTO.java
similarity index 95%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleQueryDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleQueryDTO.java
index b4eb942..0e4aa72 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleQueryDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleQueryDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleSaveDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleSaveDTO.java
similarity index 96%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleSaveDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleSaveDTO.java
index bf62cad..1825893 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleSaveDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleSaveDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleUpdateDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleUpdateDTO.java
similarity index 96%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleUpdateDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleUpdateDTO.java
index 56a3a5b..ab3642b 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleUpdateDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/RoleUpdateDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import com.baomidou.mybatisplus.core.conditions.update.Update;
import io.swagger.annotations.ApiModel;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/UserRoleSaveDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/UserRoleSaveDTO.java
similarity index 95%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/UserRoleSaveDTO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/UserRoleSaveDTO.java
index 799acd0..dddd7dc 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/UserRoleSaveDTO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/UserRoleSaveDTO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/BaseEntity.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/BaseEntity.java
similarity index 93%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/BaseEntity.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/BaseEntity.java
index 00dd7c9..56c4cba 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/BaseEntity.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/BaseEntity.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Menu.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Menu.java
similarity index 97%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Menu.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Menu.java
index 3db4378..a1ec156 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Menu.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Menu.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Notice.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Notice.java
similarity index 97%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Notice.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Notice.java
index 97131be..9a84893 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Notice.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Notice.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Region.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Region.java
similarity index 94%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Region.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Region.java
index b9c55b1..9cd09d9 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Region.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Region.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Resource.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Resource.java
similarity index 98%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Resource.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Resource.java
index 7d7a379..90e147b 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Resource.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Resource.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Role.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Role.java
similarity index 80%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Role.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Role.java
index d69e997..c31889a 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/Role.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/Role.java
@@ -1,7 +1,6 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
@@ -9,11 +8,6 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
-import javax.validation.constraints.NotEmpty;
-import javax.validation.constraints.Size;
-
-import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
-
/**
*
* 实体类
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/RoleAuthority.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/RoleAuthority.java
similarity index 86%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/RoleAuthority.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/RoleAuthority.java
index dfb720c..68c7567 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/RoleAuthority.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/RoleAuthority.java
@@ -1,8 +1,8 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
-import com.ningdatech.pmapi.sys.entity.enumeration.AuthorizeType;
+import com.ningdatech.pmapi.sys.model.enumeration.AuthorizeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
@@ -48,7 +48,7 @@ public class RoleAuthority extends BaseEntity {
@ApiModelProperty(value = "权限类型")
@NotNull(message = "权限类型不能为空")
@TableField("authority_type")
- private AuthorizeType authorityType;
+ private AuthorizeTypeEnum authorityType;
/**
* 角色id
@@ -62,7 +62,7 @@ public class RoleAuthority extends BaseEntity {
@Builder
public RoleAuthority(Long id, LocalDateTime createTime, Long createdBy,
- Long authorityId, AuthorizeType authorityType, Long roleId) {
+ Long authorityId, AuthorizeTypeEnum authorityType, Long roleId) {
this.id = id;
this.createOn = createTime;
this.createBy = createdBy;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/RoleMenu.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/RoleMenu.java
similarity index 94%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/RoleMenu.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/RoleMenu.java
index 54f9875..c496ff5 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/RoleMenu.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/RoleMenu.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/RoleMenuDatascope.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/RoleMenuDatascope.java
similarity index 94%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/RoleMenuDatascope.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/RoleMenuDatascope.java
index 83af92c..2516d8e 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/RoleMenuDatascope.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/RoleMenuDatascope.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/UserRole.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/UserRole.java
similarity index 96%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/UserRole.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/UserRole.java
index b6dabc1..d646231 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/UserRole.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/entity/UserRole.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity;
+package com.ningdatech.pmapi.sys.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/enumeration/AuthorizeType.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/enumeration/AuthorizeTypeEnum.java
similarity index 80%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/enumeration/AuthorizeType.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/enumeration/AuthorizeTypeEnum.java
index 01da87e..936f3cc 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/enumeration/AuthorizeType.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/enumeration/AuthorizeTypeEnum.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.enumeration;
+package com.ningdatech.pmapi.sys.model.enumeration;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -21,7 +21,7 @@ import java.util.stream.Stream;
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "AuthorizeType", description = "权限类型-枚举")
-public enum AuthorizeType {
+public enum AuthorizeTypeEnum {
/**
* MENU="菜单"
@@ -40,15 +40,15 @@ public enum AuthorizeType {
/**
* 根据当前枚举的name匹配
*/
- public static AuthorizeType match(String val, AuthorizeType def) {
+ public static AuthorizeTypeEnum match(String val, AuthorizeTypeEnum def) {
return Stream.of(values()).parallel().filter(item -> item.name().equalsIgnoreCase(val)).findAny().orElse(def);
}
- public static AuthorizeType get(String val) {
+ public static AuthorizeTypeEnum get(String val) {
return match(val, null);
}
- public boolean eq(AuthorizeType val) {
+ public boolean eq(AuthorizeTypeEnum val) {
return val != null && getCode().equals(val.name());
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/enumeration/DataScopeEnum.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/enumeration/DataScopeEnum.java
similarity index 90%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/enumeration/DataScopeEnum.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/enumeration/DataScopeEnum.java
index 1843fce..2180d53 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/enumeration/DataScopeEnum.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/enumeration/DataScopeEnum.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.enumeration;
+package com.ningdatech.pmapi.sys.model.enumeration;
import lombok.Getter;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/enumeration/MenuTypeEnum.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/enumeration/MenuTypeEnum.java
similarity index 94%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/enumeration/MenuTypeEnum.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/enumeration/MenuTypeEnum.java
index 2e24913..96dc4ba 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/enumeration/MenuTypeEnum.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/enumeration/MenuTypeEnum.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.enumeration;
+package com.ningdatech.pmapi.sys.model.enumeration;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/req/NoticeListReq.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/NoticeListReq.java
similarity index 92%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/req/NoticeListReq.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/NoticeListReq.java
index 50e4a0e..7bb3cf1 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/req/NoticeListReq.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/NoticeListReq.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.req;
+package com.ningdatech.pmapi.sys.model.req;
import com.ningdatech.basic.model.PagePo;
import io.swagger.annotations.ApiModel;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/req/NoticeSaveReq.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/NoticeSaveReq.java
similarity index 95%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/req/NoticeSaveReq.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/NoticeSaveReq.java
index 778b7da..35947d7 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/req/NoticeSaveReq.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/NoticeSaveReq.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.req;
+package com.ningdatech.pmapi.sys.model.req;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/req/NoticeStatusModifyReq.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/NoticeStatusModifyReq.java
similarity index 92%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/req/NoticeStatusModifyReq.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/NoticeStatusModifyReq.java
index 76632fe..21e5d17 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/req/NoticeStatusModifyReq.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/NoticeStatusModifyReq.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.req;
+package com.ningdatech.pmapi.sys.model.req;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RolePageReq.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/RolePageReq.java
similarity index 94%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RolePageReq.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/RolePageReq.java
index 95dda52..e4a2997 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RolePageReq.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/req/RolePageReq.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.req;
import com.ningdatech.basic.model.PagePo;
import io.swagger.annotations.ApiModel;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/MenuResourceTreeVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/MenuResourceTreeVO.java
similarity index 82%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/MenuResourceTreeVO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/MenuResourceTreeVO.java
index 0eb7b07..76436fc 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/MenuResourceTreeVO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/MenuResourceTreeVO.java
@@ -1,7 +1,7 @@
-package com.ningdatech.pmapi.sys.entity.vo;
+package com.ningdatech.pmapi.sys.model.vo;
import com.baomidou.mybatisplus.annotation.TableField;
-import com.ningdatech.pmapi.sys.entity.enumeration.AuthorizeType;
+import com.ningdatech.pmapi.sys.model.enumeration.AuthorizeTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
@@ -20,7 +20,7 @@ import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
@ToString(callSuper = true)
public class MenuResourceTreeVO {
- private AuthorizeType type;
+ private AuthorizeTypeEnum type;
private String code;
private String icon;
private Boolean isDef;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/MenuRoleVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/MenuRoleVO.java
similarity index 97%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/MenuRoleVO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/MenuRoleVO.java
index e7b4990..886b997 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/MenuRoleVO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/MenuRoleVO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.vo;
+package com.ningdatech.pmapi.sys.model.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ningdatech.pmapi.common.model.entity.MenuTreeEntity;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/MenuVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/MenuVO.java
similarity index 96%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/MenuVO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/MenuVO.java
index 83ad8bd..f9c4532 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/MenuVO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/MenuVO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.vo;
+package com.ningdatech.pmapi.sys.model.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/NoticeDetailVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/NoticeDetailVO.java
similarity index 94%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/NoticeDetailVO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/NoticeDetailVO.java
index 2e94174..78bf5cd 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/NoticeDetailVO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/NoticeDetailVO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.vo;
+package com.ningdatech.pmapi.sys.model.vo;
import com.ningdatech.file.entity.vo.result.AttachFileVo;
import io.swagger.annotations.ApiModel;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/NoticeListItemVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/NoticeListItemVO.java
similarity index 94%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/NoticeListItemVO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/NoticeListItemVO.java
index d3ef592..b5433d9 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/NoticeListItemVO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/NoticeListItemVO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.vo;
+package com.ningdatech.pmapi.sys.model.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/RegionTreeVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/RegionTreeVO.java
similarity index 96%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/RegionTreeVO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/RegionTreeVO.java
index cc06d5f..fb14771 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/RegionTreeVO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/RegionTreeVO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.vo;
+package com.ningdatech.pmapi.sys.model.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleUserSaveVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/RoleUserSaveVO.java
similarity index 96%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleUserSaveVO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/RoleUserSaveVO.java
index 1e2549d..4843994 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/dto/RoleUserSaveVO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/RoleUserSaveVO.java
@@ -1,4 +1,4 @@
-package com.ningdatech.pmapi.sys.entity.dto;
+package com.ningdatech.pmapi.sys.model.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/RoleVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/RoleVO.java
similarity index 91%
rename from pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/RoleVO.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/RoleVO.java
index 9945b7c..34bc83c 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/entity/vo/RoleVO.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/vo/RoleVO.java
@@ -1,6 +1,6 @@
-package com.ningdatech.pmapi.sys.entity.vo;
+package com.ningdatech.pmapi.sys.model.vo;
-import com.ningdatech.pmapi.sys.entity.BaseEntity;
+import com.ningdatech.pmapi.sys.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IMenuService.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IMenuService.java
index 38bb1a5..7ca17db 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IMenuService.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IMenuService.java
@@ -1,9 +1,9 @@
package com.ningdatech.pmapi.sys.service;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.ningdatech.pmapi.sys.entity.Menu;
-import com.ningdatech.pmapi.sys.entity.dto.MenuSaveDTO;
-import com.ningdatech.pmapi.sys.entity.dto.MenuUpdateDTO;
+import com.ningdatech.pmapi.sys.model.entity.Menu;
+import com.ningdatech.pmapi.sys.model.dto.MenuSaveDTO;
+import com.ningdatech.pmapi.sys.model.dto.MenuUpdateDTO;
import java.util.List;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/INoticeService.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/INoticeService.java
index 9d56c34..1a79566 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/INoticeService.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/INoticeService.java
@@ -1,7 +1,7 @@
package com.ningdatech.pmapi.sys.service;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.ningdatech.pmapi.sys.entity.Notice;
+import com.ningdatech.pmapi.sys.model.entity.Notice;
/**
*
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRegionService.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRegionService.java
index 62d493e..b5a0295 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRegionService.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRegionService.java
@@ -1,8 +1,8 @@
package com.ningdatech.pmapi.sys.service;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.ningdatech.pmapi.sys.entity.Region;
-import com.ningdatech.pmapi.sys.entity.dto.RegionDTO;
+import com.ningdatech.pmapi.sys.model.entity.Region;
+import com.ningdatech.pmapi.sys.model.dto.RegionDTO;
import java.util.List;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleMenuDatascopeService.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleMenuDatascopeService.java
index 5a39816..79ed6ca 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleMenuDatascopeService.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleMenuDatascopeService.java
@@ -1,6 +1,6 @@
package com.ningdatech.pmapi.sys.service;
-import com.ningdatech.pmapi.sys.entity.RoleMenuDatascope;
+import com.ningdatech.pmapi.sys.model.entity.RoleMenuDatascope;
import com.baomidou.mybatisplus.extension.service.IService;
/**
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleMenuService.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleMenuService.java
index 2f26fac..5b6ef02 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleMenuService.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleMenuService.java
@@ -1,7 +1,7 @@
package com.ningdatech.pmapi.sys.service;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.ningdatech.pmapi.sys.entity.RoleMenu;
+import com.ningdatech.pmapi.sys.model.entity.RoleMenu;
/**
*
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleService.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleService.java
index f26821a..42be6de 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleService.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IRoleService.java
@@ -1,9 +1,9 @@
package com.ningdatech.pmapi.sys.service;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.ningdatech.pmapi.sys.entity.Role;
-import com.ningdatech.pmapi.sys.entity.dto.RoleSaveDTO;
-import com.ningdatech.pmapi.sys.entity.dto.RoleUpdateDTO;
+import com.ningdatech.pmapi.sys.model.entity.Role;
+import com.ningdatech.pmapi.sys.model.dto.RoleSaveDTO;
+import com.ningdatech.pmapi.sys.model.dto.RoleUpdateDTO;
import java.util.List;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IUserRoleService.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IUserRoleService.java
index 021f9f9..6d59c64 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IUserRoleService.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/IUserRoleService.java
@@ -1,7 +1,7 @@
package com.ningdatech.pmapi.sys.service;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.ningdatech.pmapi.sys.entity.UserRole;
+import com.ningdatech.pmapi.sys.model.entity.UserRole;
/**
*
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java
index a11ba42..e0dc101 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java
@@ -12,10 +12,10 @@ import com.google.common.collect.Lists;
import com.ningdatech.basic.exception.BaseUncheckedException;
import com.ningdatech.basic.util.ValidatorUtil;
import com.ningdatech.pmapi.common.constant.DefValConstants;
-import com.ningdatech.pmapi.sys.entity.Menu;
-import com.ningdatech.pmapi.sys.entity.enumeration.MenuTypeEnum;
-import com.ningdatech.pmapi.sys.entity.dto.MenuSaveDTO;
-import com.ningdatech.pmapi.sys.entity.dto.MenuUpdateDTO;
+import com.ningdatech.pmapi.sys.model.entity.Menu;
+import com.ningdatech.pmapi.sys.model.enumeration.MenuTypeEnum;
+import com.ningdatech.pmapi.sys.model.dto.MenuSaveDTO;
+import com.ningdatech.pmapi.sys.model.dto.MenuUpdateDTO;
import com.ningdatech.pmapi.sys.mapper.MenuMapper;
import com.ningdatech.pmapi.sys.service.IMenuService;
import lombok.RequiredArgsConstructor;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/NoticeServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/NoticeServiceImpl.java
index 3c6fd6e..d514d1e 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/NoticeServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/NoticeServiceImpl.java
@@ -1,7 +1,7 @@
package com.ningdatech.pmapi.sys.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.ningdatech.pmapi.sys.entity.Notice;
+import com.ningdatech.pmapi.sys.model.entity.Notice;
import com.ningdatech.pmapi.sys.mapper.NoticeMapper;
import com.ningdatech.pmapi.sys.service.INoticeService;
import org.springframework.stereotype.Service;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RegionServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RegionServiceImpl.java
index 8b81fb5..709ed42 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RegionServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RegionServiceImpl.java
@@ -4,8 +4,8 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ningdatech.basic.util.CollUtils;
import com.ningdatech.pmapi.sys.convert.RegionConverter;
-import com.ningdatech.pmapi.sys.entity.Region;
-import com.ningdatech.pmapi.sys.entity.dto.RegionDTO;
+import com.ningdatech.pmapi.sys.model.entity.Region;
+import com.ningdatech.pmapi.sys.model.dto.RegionDTO;
import com.ningdatech.pmapi.sys.mapper.RegionMapper;
import com.ningdatech.pmapi.sys.service.IRegionService;
import org.springframework.stereotype.Service;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleMenuDatascopeServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleMenuDatascopeServiceImpl.java
index 09cda45..74ca544 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleMenuDatascopeServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleMenuDatascopeServiceImpl.java
@@ -1,6 +1,6 @@
package com.ningdatech.pmapi.sys.service.impl;
-import com.ningdatech.pmapi.sys.entity.RoleMenuDatascope;
+import com.ningdatech.pmapi.sys.model.entity.RoleMenuDatascope;
import com.ningdatech.pmapi.sys.mapper.RoleMenuDatascopeMapper;
import com.ningdatech.pmapi.sys.service.IRoleMenuDatascopeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleMenuServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleMenuServiceImpl.java
index 27f1886..c58c643 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleMenuServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleMenuServiceImpl.java
@@ -1,7 +1,7 @@
package com.ningdatech.pmapi.sys.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.ningdatech.pmapi.sys.entity.RoleMenu;
+import com.ningdatech.pmapi.sys.model.entity.RoleMenu;
import com.ningdatech.pmapi.sys.mapper.RoleMenuMapper;
import com.ningdatech.pmapi.sys.service.IRoleMenuService;
import org.springframework.stereotype.Service;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleServiceImpl.java
index 4304fd2..0c6e452 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/RoleServiceImpl.java
@@ -12,11 +12,11 @@ import com.ningdatech.basic.exception.BizException;
import com.ningdatech.basic.exception.code.ExceptionCode;
import com.ningdatech.basic.util.CollUtils;
import com.ningdatech.cache.repository.CachePlusOps;
-import com.ningdatech.pmapi.sys.entity.*;
-import com.ningdatech.pmapi.sys.entity.dto.MenuDataScopeDTO;
-import com.ningdatech.pmapi.sys.entity.dto.RoleSaveDTO;
-import com.ningdatech.pmapi.sys.entity.dto.RoleUpdateDTO;
+import com.ningdatech.pmapi.sys.model.dto.MenuDataScopeDTO;
+import com.ningdatech.pmapi.sys.model.dto.RoleSaveDTO;
+import com.ningdatech.pmapi.sys.model.dto.RoleUpdateDTO;
import com.ningdatech.pmapi.sys.mapper.RoleMapper;
+import com.ningdatech.pmapi.sys.model.entity.*;
import com.ningdatech.pmapi.sys.service.*;
import com.ningdatech.pmapi.sys.utils.AuthCacheKeyUtils;
import lombok.RequiredArgsConstructor;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/UserRoleServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/UserRoleServiceImpl.java
index f2b85f8..184f164 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/UserRoleServiceImpl.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/UserRoleServiceImpl.java
@@ -4,8 +4,8 @@ import cn.hutool.http.HttpStatus;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ningdatech.basic.exception.BaseUncheckedException;
-import com.ningdatech.pmapi.sys.entity.Role;
-import com.ningdatech.pmapi.sys.entity.UserRole;
+import com.ningdatech.pmapi.sys.model.entity.Role;
+import com.ningdatech.pmapi.sys.model.entity.UserRole;
import com.ningdatech.pmapi.sys.mapper.RoleMapper;
import com.ningdatech.pmapi.sys.mapper.UserRoleMapper;
import com.ningdatech.pmapi.sys.service.IUserRoleService;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/controller/TodoCenterController.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/controller/TodoCenterController.java
index 9185797..958d389 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/controller/TodoCenterController.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/controller/TodoCenterController.java
@@ -7,8 +7,6 @@ import javax.validation.Valid;
import com.ningdatech.pmapi.common.util.ExcelDownUtil;
import com.ningdatech.pmapi.todocenter.bean.vo.ProcessProgressDetailVo;
import com.ningdatech.pmapi.todocenter.model.dto.req.ReqProcessHandlerDTO;
-import com.wflow.utils.R;
-import com.wflow.workflow.bean.vo.ProcessHandlerParamsVo;
import org.springframework.web.bind.annotation.*;
import com.ningdatech.basic.model.ApiResponse;
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enums/IsAppendProjectEnum.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enumeration/IsAppendProjectEnum.java
similarity index 90%
rename from pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enums/IsAppendProjectEnum.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enumeration/IsAppendProjectEnum.java
index a744804..d0d5ba1 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enums/IsAppendProjectEnum.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enumeration/IsAppendProjectEnum.java
@@ -1,16 +1,16 @@
-package com.ningdatech.pmapi.todocenter.enums;
-
-import java.util.Objects;
-
-import org.apache.commons.lang3.StringUtils;
+package com.ningdatech.pmapi.todocenter.enumeration;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.StringUtils;
+
+import java.util.Objects;
/**
* 是否增补项目枚举
+ *
* @author CMM
*/
@Getter
@@ -24,7 +24,7 @@ public enum IsAppendProjectEnum {
NOT_APPEND_PROJECT(0, "非增补项目"),
/**
- *增补项目
+ * 增补项目
*/
APPEND_PROJECT(1, "增补项目");
@@ -41,7 +41,7 @@ public enum IsAppendProjectEnum {
}
public static String getDescByCode(Integer code) {
- if(Objects.isNull(code)){
+ if (Objects.isNull(code)) {
return StringUtils.EMPTY;
}
for (IsAppendProjectEnum t : IsAppendProjectEnum.values()) {
@@ -53,7 +53,7 @@ public enum IsAppendProjectEnum {
}
public static IsAppendProjectEnum getEnumByValue(Integer code) {
- if(Objects.isNull(code)){
+ if (Objects.isNull(code)) {
return null;
}
for (IsAppendProjectEnum t : IsAppendProjectEnum.values()) {
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enums/ProcessStatusEnum.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enumeration/ProcessStatusEnum.java
similarity index 85%
rename from pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enums/ProcessStatusEnum.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enumeration/ProcessStatusEnum.java
index 91d311d..fd07266 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enums/ProcessStatusEnum.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/enumeration/ProcessStatusEnum.java
@@ -1,16 +1,16 @@
-package com.ningdatech.pmapi.todocenter.enums;
-
-import java.util.Objects;
-
-import org.apache.commons.lang3.StringUtils;
+package com.ningdatech.pmapi.todocenter.enumeration;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.StringUtils;
+
+import java.util.Objects;
/**
* 待办中心-流程状态枚举
+ *
* @author CMM
*/
@Getter
@@ -32,16 +32,16 @@ public enum ProcessStatusEnum {
/**
* 被驳回
*/
- BE_REJECTED(3,"被驳回"),
+ BE_REJECTED(3, "被驳回"),
/**
* 审核通过
*/
- APPROVED(4,"审核通过"),
+ APPROVED(4, "审核通过"),
/**
* 被撤回
*/
- WITHDRAW(5,"被撤回");
+ WITHDRAW(5, "被撤回");
private Integer code;
@@ -56,7 +56,7 @@ public enum ProcessStatusEnum {
}
public static String getDescByCode(Integer code) {
- if(Objects.isNull(code)){
+ if (Objects.isNull(code)) {
return StringUtils.EMPTY;
}
for (ProcessStatusEnum t : ProcessStatusEnum.values()) {
@@ -68,11 +68,11 @@ public enum ProcessStatusEnum {
}
public static Integer getCodeByDesc(String desc) {
- if(Objects.isNull(desc)){
+ if (Objects.isNull(desc)) {
return null;
}
for (ProcessStatusEnum t : ProcessStatusEnum.values()) {
- if (desc.equals(t.getCode())) {
+ if (desc.equals(t.getDesc())) {
return t.code;
}
}
@@ -80,7 +80,7 @@ public enum ProcessStatusEnum {
}
public static ProcessStatusEnum getEnumByValue(Integer code) {
- if(Objects.isNull(code)){
+ if (Objects.isNull(code)) {
return null;
}
for (ProcessStatusEnum t : ProcessStatusEnum.values()) {
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
index f9abe34..cbb2d69 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
@@ -19,11 +19,11 @@ import com.ningdatech.basic.exception.BizException;
import com.ningdatech.basic.model.PageVo;
import com.ningdatech.basic.util.NdDateUtils;
import com.ningdatech.pmapi.common.constant.DingConstant;
-import com.ningdatech.pmapi.common.enums.ExportOptionEnum;
+import com.ningdatech.pmapi.common.enumeration.ExportOptionEnum;
import com.ningdatech.pmapi.common.model.entity.ExcelExportWriter;
+import com.ningdatech.pmapi.common.statemachine.event.ProjectStatusChangeEvent;
import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils;
import com.ningdatech.pmapi.common.util.ExcelDownUtil;
-import com.ningdatech.pmapi.common.statemachine.event.ProjectStatusChangeEvent;
import com.ningdatech.pmapi.projectlib.model.entity.Project;
import com.ningdatech.pmapi.projectlib.service.IProjectService;
import com.ningdatech.pmapi.todocenter.bean.entity.ProcessComment;
@@ -31,13 +31,13 @@ import com.ningdatech.pmapi.todocenter.bean.entity.ProgressNode;
import com.ningdatech.pmapi.todocenter.bean.vo.ProcessProgressDetailVo;
import com.ningdatech.pmapi.todocenter.bean.vo.ProgressNodeAuditInfoVo;
import com.ningdatech.pmapi.todocenter.constant.HisProInsEndActId;
-import com.ningdatech.pmapi.todocenter.enums.IsAppendProjectEnum;
-import com.ningdatech.pmapi.todocenter.enums.ProcessStatusEnum;
+import com.ningdatech.pmapi.todocenter.enumeration.IsAppendProjectEnum;
+import com.ningdatech.pmapi.todocenter.enumeration.ProcessStatusEnum;
import com.ningdatech.pmapi.todocenter.extension.cmd.BackToHisApprovalNodeCmd;
import com.ningdatech.pmapi.todocenter.extension.cmd.SaveCommentCmd;
import com.ningdatech.pmapi.todocenter.model.dto.req.ReqProcessHandlerDTO;
import com.ningdatech.pmapi.todocenter.model.dto.req.ReqToBeProcessedDTO;
-import com.ningdatech.pmapi.todocenter.model.dto.res.*;
+import com.ningdatech.pmapi.todocenter.model.dto.res.ResToBeProcessedDTO;
import com.ningdatech.pmapi.todocenter.zwdd.model.MessageContent;
import com.ningdatech.pmapi.todocenter.zwdd.model.MessageText;
import com.ningdatech.pmapi.user.entity.UserInfo;
@@ -69,8 +69,8 @@ import com.wflow.workflow.utils.Executor;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.assertj.core.util.Maps;
-import org.flowable.bpmn.model.*;
import org.flowable.bpmn.model.Process;
+import org.flowable.bpmn.model.*;
import org.flowable.engine.*;
import org.flowable.engine.history.HistoricActivityInstance;
import org.flowable.engine.history.HistoricProcessInstance;
@@ -127,7 +127,7 @@ public class TodoCenterManage {
/**
* 待办中心待我处理项目列表查询
- *
+ *
* @param param
* @return com.ningdatech.basic.model.PageVo