From a655e5b7d611b67e3a76d5f241997cd6b4c0fee7 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Mon, 8 Dec 2025 10:53:08 +0800 Subject: [PATCH] =?UTF-8?q?pad=E6=8E=A5=E5=8F=A3-=E9=80=80=E8=B4=A7-?= =?UTF-8?q?=E9=80=80=E8=B4=A7=E6=8C=87=E4=BB=A4=E6=9F=A5=E8=AF=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0nuid=E5=BF=85=E4=BC=A0=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pad/invoicing/api/InvoicingThdApi.java | 5 +- .../mapper/xml/NuInvoicingThdMainMapper.xml | 1 + .../controller/ServiceFlowMainController.java | 166 ++++++++++++++++++ .../controller/ServiceFlowSubController.java | 163 +++++++++++++++++ .../config/flow/entity/ServiceFlowMain.java | 86 +++++++++ .../config/flow/entity/ServiceFlowSub.java | 90 ++++++++++ .../flow/mapper/ServiceFlowMainMapper.java | 14 ++ .../flow/mapper/ServiceFlowSubMapper.java | 14 ++ .../flow/mapper/xml/ServiceFlowMainMapper.xml | 5 + .../flow/mapper/xml/ServiceFlowSubMapper.xml | 5 + .../flow/service/IServiceFlowMainService.java | 14 ++ .../flow/service/IServiceFlowSubService.java | 14 ++ .../impl/ServiceFlowMainServiceImpl.java | 18 ++ .../impl/ServiceFlowSubServiceImpl.java | 18 ++ 14 files changed, 612 insertions(+), 1 deletion(-) create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/controller/ServiceFlowMainController.java create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/controller/ServiceFlowSubController.java create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/entity/ServiceFlowMain.java create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/entity/ServiceFlowSub.java create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/ServiceFlowMainMapper.java create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/ServiceFlowSubMapper.java create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/xml/ServiceFlowMainMapper.xml create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/xml/ServiceFlowSubMapper.xml create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/IServiceFlowMainService.java create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/IServiceFlowSubService.java create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/impl/ServiceFlowMainServiceImpl.java create mode 100644 nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/impl/ServiceFlowSubServiceImpl.java diff --git a/nursing-unit-api/src/main/java/com/nu/modules/pad/invoicing/api/InvoicingThdApi.java b/nursing-unit-api/src/main/java/com/nu/modules/pad/invoicing/api/InvoicingThdApi.java index e1032674..a69f0589 100644 --- a/nursing-unit-api/src/main/java/com/nu/modules/pad/invoicing/api/InvoicingThdApi.java +++ b/nursing-unit-api/src/main/java/com/nu/modules/pad/invoicing/api/InvoicingThdApi.java @@ -37,6 +37,9 @@ public class InvoicingThdApi { public Result> thdList(InvoicingThdMainEntity dto, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) { + if (StringUtils.isBlank(dto.getNuId())) { + return Result.error("缺少参数"); + } IPage pageList = tuiHuoApi.thdList(pageNo, pageSize, dto); return Result.OK(pageList); } @@ -169,7 +172,7 @@ public class InvoicingThdApi { if (StringUtils.isBlank(dto.getId())) { return Result.error("缺少参数"); } - Map result = tuiHuoApi.submitThd(dto); + Map result = tuiHuoApi.submitThd(dto); if ("success".equals(result.get("status"))) { return Result.OK("入库成功"); } else { diff --git a/nursing-unit-invoicing/nu-invoicing-biz/src/main/java/com/nu/modules/thd/mapper/xml/NuInvoicingThdMainMapper.xml b/nursing-unit-invoicing/nu-invoicing-biz/src/main/java/com/nu/modules/thd/mapper/xml/NuInvoicingThdMainMapper.xml index 6434d7e4..178dc8d6 100644 --- a/nursing-unit-invoicing/nu-invoicing-biz/src/main/java/com/nu/modules/thd/mapper/xml/NuInvoicingThdMainMapper.xml +++ b/nursing-unit-invoicing/nu-invoicing-biz/src/main/java/com/nu/modules/thd/mapper/xml/NuInvoicingThdMainMapper.xml @@ -20,6 +20,7 @@ LEFT JOIN sys_dict dict ON dict.dict_code = 'thd_status' LEFT JOIN sys_dict_item logStatus ON logStatus.dict_id = dict.id AND logStatus.item_value = main.status + main.nu_id = #{dto.nuId} AND ( sqrtemp.realname LIKE CONCAT('%', #{dto.searchContent}, '%') diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/controller/ServiceFlowMainController.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/controller/ServiceFlowMainController.java new file mode 100644 index 00000000..40b22286 --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/controller/ServiceFlowMainController.java @@ -0,0 +1,166 @@ +package com.nu.modules.config.flow.controller; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.nu.modules.config.flow.entity.ServiceFlowMain; +import com.nu.modules.config.flow.service.IServiceFlowMainService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.jeecg.common.system.base.controller.JeecgController; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.system.query.QueryRuleEnum; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * @Description: 服务指令-主流程 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +@Api(tags = "服务指令-主流程") +@RestController +@RequestMapping("/services/flow/main") +@Slf4j +public class ServiceFlowMainController extends JeecgController { + @Autowired + private IServiceFlowMainService serviceFlowMainService; + + /** + * 分页列表查询 + * + * @param serviceFlowMain + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "服务指令-主流程-分页列表查询") + @ApiOperation(value = "服务指令-主流程-分页列表查询", notes = "服务指令-主流程-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(ServiceFlowMain serviceFlowMain, + @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, + HttpServletRequest req) { + // 自定义查询规则 + Map customeRuleMap = new HashMap<>(); + // 自定义多选的查询规则为:LIKE_WITH_OR + customeRuleMap.put("izEnabled", QueryRuleEnum.LIKE_WITH_OR); + customeRuleMap.put("instructionTagId", QueryRuleEnum.LIKE_WITH_OR); + customeRuleMap.put("categoryId", QueryRuleEnum.LIKE_WITH_OR); + customeRuleMap.put("typeId", QueryRuleEnum.LIKE_WITH_OR); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(serviceFlowMain, req.getParameterMap(), customeRuleMap); + Page page = new Page(pageNo, pageSize); + IPage pageList = serviceFlowMainService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param serviceFlowMain + * @return + */ + @AutoLog(value = "服务指令-主流程-添加") + @ApiOperation(value = "服务指令-主流程-添加", notes = "服务指令-主流程-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody ServiceFlowMain serviceFlowMain) { + serviceFlowMainService.save(serviceFlowMain); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param serviceFlowMain + * @return + */ + @AutoLog(value = "服务指令-主流程-编辑") + @ApiOperation(value = "服务指令-主流程-编辑", notes = "服务指令-主流程-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) + public Result edit(@RequestBody ServiceFlowMain serviceFlowMain) { + serviceFlowMainService.updateById(serviceFlowMain); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "服务指令-主流程-通过id删除") + @ApiOperation(value = "服务指令-主流程-通过id删除", notes = "服务指令-主流程-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name = "id", required = true) String id) { + serviceFlowMainService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "服务指令-主流程-批量删除") + @ApiOperation(value = "服务指令-主流程-批量删除", notes = "服务指令-主流程-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name = "ids", required = true) String ids) { + this.serviceFlowMainService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "服务指令-主流程-通过id查询") + @ApiOperation(value = "服务指令-主流程-通过id查询", notes = "服务指令-主流程-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name = "id", required = true) String id) { + ServiceFlowMain serviceFlowMain = serviceFlowMainService.getById(id); + if (serviceFlowMain == null) { + return Result.error("未找到对应数据"); + } + return Result.OK(serviceFlowMain); + } + + /** + * 导出excel + * + * @param request + * @param serviceFlowMain + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, ServiceFlowMain serviceFlowMain) { + return super.exportXls(request, serviceFlowMain, ServiceFlowMain.class, "服务指令-主流程"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, ServiceFlowMain.class); + } + +} diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/controller/ServiceFlowSubController.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/controller/ServiceFlowSubController.java new file mode 100644 index 00000000..527d6021 --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/controller/ServiceFlowSubController.java @@ -0,0 +1,163 @@ +package com.nu.modules.config.flow.controller; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.nu.modules.config.flow.entity.ServiceFlowSub; +import com.nu.modules.config.flow.service.IServiceFlowSubService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.jeecg.common.system.base.controller.JeecgController; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.system.query.QueryRuleEnum; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * @Description: 服务指令-子流程,用于指定节点 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +@Api(tags = "服务指令-子流程,用于指定节点") +@RestController +@RequestMapping("/services/flow/sub") +@Slf4j +public class ServiceFlowSubController extends JeecgController { + @Autowired + private IServiceFlowSubService serviceFlowSubService; + + /** + * 分页列表查询 + * + * @param serviceFlowSub + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "服务指令-子流程,用于指定节点-分页列表查询") + @ApiOperation(value = "服务指令-子流程,用于指定节点-分页列表查询", notes = "服务指令-子流程,用于指定节点-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(ServiceFlowSub serviceFlowSub, + @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, + HttpServletRequest req) { + // 自定义查询规则 + Map customeRuleMap = new HashMap<>(); + // 自定义多选的查询规则为:LIKE_WITH_OR + customeRuleMap.put("izEnabled", QueryRuleEnum.LIKE_WITH_OR); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(serviceFlowSub, req.getParameterMap(), customeRuleMap); + Page page = new Page(pageNo, pageSize); + IPage pageList = serviceFlowSubService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param serviceFlowSub + * @return + */ + @AutoLog(value = "服务指令-子流程,用于指定节点-添加") + @ApiOperation(value = "服务指令-子流程,用于指定节点-添加", notes = "服务指令-子流程,用于指定节点-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody ServiceFlowSub serviceFlowSub) { + serviceFlowSubService.save(serviceFlowSub); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param serviceFlowSub + * @return + */ + @AutoLog(value = "服务指令-子流程,用于指定节点-编辑") + @ApiOperation(value = "服务指令-子流程,用于指定节点-编辑", notes = "服务指令-子流程,用于指定节点-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) + public Result edit(@RequestBody ServiceFlowSub serviceFlowSub) { + serviceFlowSubService.updateById(serviceFlowSub); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "服务指令-子流程,用于指定节点-通过id删除") + @ApiOperation(value = "服务指令-子流程,用于指定节点-通过id删除", notes = "服务指令-子流程,用于指定节点-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name = "id", required = true) String id) { + serviceFlowSubService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "服务指令-子流程,用于指定节点-批量删除") + @ApiOperation(value = "服务指令-子流程,用于指定节点-批量删除", notes = "服务指令-子流程,用于指定节点-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name = "ids", required = true) String ids) { + this.serviceFlowSubService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "服务指令-子流程,用于指定节点-通过id查询") + @ApiOperation(value = "服务指令-子流程,用于指定节点-通过id查询", notes = "服务指令-子流程,用于指定节点-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name = "id", required = true) String id) { + ServiceFlowSub serviceFlowSub = serviceFlowSubService.getById(id); + if (serviceFlowSub == null) { + return Result.error("未找到对应数据"); + } + return Result.OK(serviceFlowSub); + } + + /** + * 导出excel + * + * @param request + * @param serviceFlowSub + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, ServiceFlowSub serviceFlowSub) { + return super.exportXls(request, serviceFlowSub, ServiceFlowSub.class, "服务指令-子流程,用于指定节点"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, ServiceFlowSub.class); + } + +} diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/entity/ServiceFlowMain.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/entity/ServiceFlowMain.java new file mode 100644 index 00000000..fda2bfa0 --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/entity/ServiceFlowMain.java @@ -0,0 +1,86 @@ +package com.nu.modules.config.flow.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import org.jeecg.common.constant.ProvinceCityArea; +import org.jeecg.common.util.SpringContextUtils; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: 服务指令-主流程 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +@Data +@TableName("nu_config_service_flow_main") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="nu_config_service_flow_main对象", description="服务指令-主流程") +public class ServiceFlowMain implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**节点名称*/ + @Excel(name = "节点名称", width = 15) + @ApiModelProperty(value = "节点名称") + private java.lang.String flowName; + /**是否启用 Y启用 N未启用*/ + @Excel(name = "是否启用 Y启用 N未启用", width = 15, dicCode = "iz_enabled") + @Dict(dicCode = "iz_enabled") + @ApiModelProperty(value = "是否启用 Y启用 N未启用") + private java.lang.String izEnabled; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**是否删除 0未删除 1删除*/ + @Excel(name = "是否删除 0未删除 1删除", width = 15) + @ApiModelProperty(value = "是否删除 0未删除 1删除") + @TableLogic + private java.lang.String delFlag; + /**分类标签 nu_config_service_instruction_tag.id*/ + @Excel(name = "分类标签 nu_config_service_instruction_tag.id", width = 15, dictTable = "nu_config_service_instruction_tag", dicText = "instruction_name", dicCode = "id") + @Dict(dictTable = "nu_config_service_instruction_tag", dicText = "instruction_name", dicCode = "id") + @ApiModelProperty(value = "分类标签 nu_config_service_instruction_tag.id") + private java.lang.String instructionTagId; + /**服务类别id nu_config_service_category.id*/ + @Excel(name = "服务类别id nu_config_service_category.id", width = 15, dictTable = "nu_config_service_category", dicText = "category_name", dicCode = "id") + @Dict(dictTable = "nu_config_service_category", dicText = "category_name", dicCode = "id") + @ApiModelProperty(value = "服务类别id nu_config_service_category.id") + private java.lang.String categoryId; + /**服务类型id nu_config_service_type.id*/ + @Excel(name = "服务类型id nu_config_service_type.id", width = 15, dictTable = "nu_config_service_type", dicText = "type_name", dicCode = "id") + @Dict(dictTable = "nu_config_service_type", dicText = "type_name", dicCode = "id") + @ApiModelProperty(value = "服务类型id nu_config_service_type.id") + private java.lang.String typeId; +} diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/entity/ServiceFlowSub.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/entity/ServiceFlowSub.java new file mode 100644 index 00000000..aad7c2ec --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/entity/ServiceFlowSub.java @@ -0,0 +1,90 @@ +package com.nu.modules.config.flow.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import org.jeecg.common.constant.ProvinceCityArea; +import org.jeecg.common.util.SpringContextUtils; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: 服务指令-子流程,用于指定节点 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +@Data +@TableName("nu_config_service_flow_sub") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="nu_config_service_flow_sub对象", description="服务指令-子流程,用于指定节点") +public class ServiceFlowSub implements Serializable { + private static final long serialVersionUID = 1L; + + /**id*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "id") + private java.lang.String id; + /**名称*/ + @Excel(name = "名称", width = 15) + @ApiModelProperty(value = "名称") + private java.lang.String name; + /**主表ID*/ + @Excel(name = "主表ID", width = 15, dictTable = "nu_config_service_flow_main", dicText = "flow_name", dicCode = "id") + @Dict(dictTable = "nu_config_service_flow_main", dicText = "flow_name", dicCode = "id") + @ApiModelProperty(value = "主表ID") + private java.lang.String mainId; + /**服务指令ID*/ + @Excel(name = "服务指令ID", width = 15, dictTable = "nu_config_service_directive", dicText = "directive_name", dicCode = "id") + @Dict(dictTable = "nu_config_service_directive", dicText = "directive_name", dicCode = "id") + @ApiModelProperty(value = "服务指令ID") + private java.lang.String directiveId; + /**下一流程节点ID*/ + @Excel(name = "下一流程节点ID", width = 15, dictTable = "nu_config_service_flow_sub", dicText = "name", dicCode = "id") + @Dict(dictTable = "nu_config_service_flow_sub", dicText = "name", dicCode = "id") + @ApiModelProperty(value = "下一流程节点ID") + private java.lang.String subId; + /**流程编码,用于按钮点击时的入参,用来获取具体的指令*/ + @Excel(name = "流程编码,用于按钮点击时的入参,用来获取具体的指令", width = 15) + @ApiModelProperty(value = "流程编码,用于按钮点击时的入参,用来获取具体的指令") + private java.lang.String flowCode; + /**是否启用 Y启用 N未启用*/ + @Excel(name = "是否启用 Y启用 N未启用", width = 15, dicCode = "iz_enabled") + @Dict(dicCode = "iz_enabled") + @ApiModelProperty(value = "是否启用 Y启用 N未启用") + private java.lang.String izEnabled; + /**createBy*/ + @ApiModelProperty(value = "createBy") + private java.lang.String createBy; + /**createTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "createTime") + private java.util.Date createTime; + /**updateBy*/ + @ApiModelProperty(value = "updateBy") + private java.lang.String updateBy; + /**updateTime*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "updateTime") + private java.util.Date updateTime; + /**是否删除 0未删除 1删除*/ + @Excel(name = "是否删除 0未删除 1删除", width = 15) + @ApiModelProperty(value = "是否删除 0未删除 1删除") + @TableLogic + private java.lang.String delFlag; +} diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/ServiceFlowMainMapper.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/ServiceFlowMainMapper.java new file mode 100644 index 00000000..9dc33866 --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/ServiceFlowMainMapper.java @@ -0,0 +1,14 @@ +package com.nu.modules.config.flow.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.nu.modules.config.flow.entity.ServiceFlowMain; + +/** + * @Description: 服务指令-主流程 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +public interface ServiceFlowMainMapper extends BaseMapper { + +} diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/ServiceFlowSubMapper.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/ServiceFlowSubMapper.java new file mode 100644 index 00000000..d2e58f88 --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/ServiceFlowSubMapper.java @@ -0,0 +1,14 @@ +package com.nu.modules.config.flow.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.nu.modules.config.flow.entity.ServiceFlowSub; + +/** + * @Description: 服务指令-子流程,用于指定节点 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +public interface ServiceFlowSubMapper extends BaseMapper { + +} diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/xml/ServiceFlowMainMapper.xml b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/xml/ServiceFlowMainMapper.xml new file mode 100644 index 00000000..5083de82 --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/xml/ServiceFlowMainMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/xml/ServiceFlowSubMapper.xml b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/xml/ServiceFlowSubMapper.xml new file mode 100644 index 00000000..055a1213 --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/mapper/xml/ServiceFlowSubMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/IServiceFlowMainService.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/IServiceFlowMainService.java new file mode 100644 index 00000000..6c1966ed --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/IServiceFlowMainService.java @@ -0,0 +1,14 @@ +package com.nu.modules.config.flow.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.nu.modules.config.flow.entity.ServiceFlowMain; + +/** + * @Description: 服务指令-主流程 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +public interface IServiceFlowMainService extends IService { + +} diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/IServiceFlowSubService.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/IServiceFlowSubService.java new file mode 100644 index 00000000..af6dc94e --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/IServiceFlowSubService.java @@ -0,0 +1,14 @@ +package com.nu.modules.config.flow.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.nu.modules.config.flow.entity.ServiceFlowSub; + +/** + * @Description: 服务指令-子流程,用于指定节点 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +public interface IServiceFlowSubService extends IService { + +} diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/impl/ServiceFlowMainServiceImpl.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/impl/ServiceFlowMainServiceImpl.java new file mode 100644 index 00000000..a0cfb9af --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/impl/ServiceFlowMainServiceImpl.java @@ -0,0 +1,18 @@ +package com.nu.modules.config.flow.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.nu.modules.config.flow.entity.ServiceFlowMain; +import com.nu.modules.config.flow.mapper.ServiceFlowMainMapper; +import com.nu.modules.config.flow.service.IServiceFlowMainService; +import org.springframework.stereotype.Service; + +/** + * @Description: 服务指令-主流程 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +@Service +public class ServiceFlowMainServiceImpl extends ServiceImpl implements IServiceFlowMainService { + +} diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/impl/ServiceFlowSubServiceImpl.java b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/impl/ServiceFlowSubServiceImpl.java new file mode 100644 index 00000000..31e74dc5 --- /dev/null +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/flow/service/impl/ServiceFlowSubServiceImpl.java @@ -0,0 +1,18 @@ +package com.nu.modules.config.flow.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.nu.modules.config.flow.entity.ServiceFlowSub; +import com.nu.modules.config.flow.mapper.ServiceFlowSubMapper; +import com.nu.modules.config.flow.service.IServiceFlowSubService; +import org.springframework.stereotype.Service; + +/** + * @Description: 服务指令-子流程,用于指定节点 + * @Author: jeecg-boot + * @Date: 2025-12-08 + * @Version: V1.0 + */ +@Service +public class ServiceFlowSubServiceImpl extends ServiceImpl implements IServiceFlowSubService { + +}