diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/BaseEvectionFormController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/BaseEvectionFormController.java index 333ab2e9..48fa64e0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/BaseEvectionFormController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/BaseEvectionFormController.java @@ -1,15 +1,22 @@ package com.ruoyi.system.controller; +import java.util.HashMap; import java.util.List; + +import com.ruoyi.process.general.service.IProcessService; +import com.ruoyi.system.domain.Vo.BaseEvectionFormVo; +import com.ruoyi.system.domain.Vo.BaseExpenseAccountVo; +import com.ruoyi.system.service.ISysUserService; +import org.activiti.engine.RuntimeService; +import org.activiti.engine.TaskService; +import org.activiti.engine.runtime.ProcessInstance; +import org.activiti.engine.task.Task; +import org.apache.commons.lang3.BooleanUtils; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.*; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.system.domain.BaseEvectionForm; @@ -19,6 +26,9 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.core.page.TableDataInfo; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpSession; + /** * 出差单Controller * @@ -34,6 +44,16 @@ public class BaseEvectionFormController extends BaseController @Autowired private IBaseEvectionFormService baseEvectionFormService; + @Autowired + private TaskService taskService; + + @Autowired + private RuntimeService runtimeService; + + @Autowired + private IProcessService processService; + + @RequiresPermissions("system:baseEvectionForm:view") @GetMapping() public String baseEvectionForm() @@ -47,10 +67,10 @@ public class BaseEvectionFormController extends BaseController @RequiresPermissions("system:baseEvectionForm:list") @PostMapping("/list") @ResponseBody - public TableDataInfo list(BaseEvectionForm baseEvectionForm) + public TableDataInfo list(BaseEvectionFormVo baseEvectionFormVo) { startPage(); - List list = baseEvectionFormService.selectBaseEvectionFormList(baseEvectionForm); + List list = baseEvectionFormService.selectBaseEvectionFormList(baseEvectionFormVo); return getDataTable(list); } @@ -61,10 +81,10 @@ public class BaseEvectionFormController extends BaseController @Log(title = "出差单", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody - public AjaxResult export(BaseEvectionForm baseEvectionForm) + public AjaxResult export(BaseEvectionFormVo baseEvectionFormVo) { - List list = baseEvectionFormService.selectBaseEvectionFormList(baseEvectionForm); - ExcelUtil util = new ExcelUtil(BaseEvectionForm.class); + List list = baseEvectionFormService.selectBaseEvectionFormList(baseEvectionFormVo); + ExcelUtil util = new ExcelUtil(BaseEvectionFormVo.class); return util.exportExcel(list, "出差单数据"); } @@ -86,7 +106,84 @@ public class BaseEvectionFormController extends BaseController @ResponseBody public AjaxResult addSave(BaseEvectionForm baseEvectionForm) { - return toAjax(baseEvectionFormService.insertBaseEvectionForm(baseEvectionForm)); + // 审核状态-待审核 + baseEvectionForm.setAuditStatus("0"); + baseEvectionFormService.submitApply(baseEvectionForm); + return AjaxResult.success(); + } + + /** + * 加载审批弹窗 + * */ + @GetMapping("/showVerifyDialog/{taskId}") + public String showVerifyDialog(@PathVariable("taskId") String taskId, ModelMap mmap) { + Task task = taskService.createTaskQuery().taskId(taskId).singleResult(); + String processInstanceId = task.getProcessInstanceId(); + ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult(); + BaseEvectionFormVo baseEvectionFormVo = baseEvectionFormService.selectBaseEvectionFormById(new Long(processInstance.getBusinessKey())); + mmap.put("formData", baseEvectionFormVo); + mmap.put("taskId", taskId); + String verifyName = task.getTaskDefinitionKey().substring(0, 1).toUpperCase() + task.getTaskDefinitionKey().substring(1); + return prefix + "/task" + verifyName; + } + @ModelAttribute("/preloadObj") + public BaseEvectionFormVo getObj(@RequestParam(value = "evectionId", required = false) Long evectionId, HttpSession session) { + if (evectionId != null) { + return baseEvectionFormService.selectBaseEvectionFormById(evectionId); + } + return new BaseEvectionFormVo(); + } + /** + * 完成任务 + * + * @return + */ + @RequestMapping(value = "/complete/{taskId}", method = {RequestMethod.POST, RequestMethod.GET}) + @ResponseBody + public AjaxResult complete(@PathVariable("taskId") String taskId, @RequestParam(value = "saveEntity", required = false) String saveEntity, + @ModelAttribute("preloadObj") BaseEvectionFormVo baseEvectionFormVo, HttpServletRequest request) { + boolean saveEntityBoolean = BooleanUtils.toBoolean(saveEntity); + + if (saveEntityBoolean){ + baseEvectionFormService.updateBaseEvectionForm(baseEvectionFormVo); + } + String instanceId = baseEvectionFormVo.getInstanceId(); + + String instanceType = baseEvectionFormVo.getInstanceType(); + boolean approvedFlag = processService.complete(taskId, instanceId, baseEvectionFormVo.getApplyTitle(), + baseEvectionFormVo.getEvectionCode(), + "evection", new HashMap(), request); + if(!approvedFlag){ + // 审核状态-审核拒绝 + baseEvectionFormVo.setAuditStatus("2"); + } + // 如果任务已结束更新业务表状态 方法中传入的值为原来的instanceId,只是做了调整 + boolean processIsFinish = processService.judgeProcessIsFinish(instanceId); + if (processIsFinish) { + // 审核通过 + baseEvectionFormVo.setAuditStatus("1"); + // 提交 + if("submit".equals(instanceType)){ + // 使用状态-是 + baseEvectionFormVo.setUseStatus("1"); + } + // 作废 + else if("cancel".equals(instanceType)){ + // 使用状态-已作废 + baseEvectionFormVo.setUseStatus("2"); + } + // 恢复 + else if("restore".equals(instanceType)){ + // 使用状态-是 + baseEvectionFormVo.setUseStatus("1"); + } + } + baseEvectionFormService.updateBaseEvectionForm(baseEvectionFormVo); + // 驳回申请后继续申请,可能修改表单 + if (saveEntityBoolean) { + baseEvectionFormService.updateBaseEvectionForm(baseEvectionFormVo); + } + return success("任务已完成"); } /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEvectionForm.java b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEvectionForm.java index 923fe339..bab1e184 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEvectionForm.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEvectionForm.java @@ -68,10 +68,10 @@ public class BaseEvectionForm extends BaseEntity /** 出差时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "预计出差开始时间") - private String evectionBeginTime; + private Date evectionBeginTime; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "预计出差结束时间") - private String evectionEndTime; + private Date evectionEndTime; /** 派工单号 */ @Excel(name = "派工单号") @@ -119,8 +119,7 @@ public class BaseEvectionForm extends BaseEntity /** 流程实例类型 */ private String instanceType; - /** 流程实例类型名称 */ - private String instanceTypeName; + /** 提交流程实例ID */ private String submitInstanceId; @@ -154,13 +153,7 @@ public class BaseEvectionForm extends BaseEntity public void setInstanceType(String instanceType) { this.instanceType = instanceType; } - public String getInstanceTypeName() { - return instanceTypeName; - } - public void setInstanceTypeName(String instanceTypeName) { - this.instanceTypeName = instanceTypeName; - } public String getSubmitInstanceId() { return submitInstanceId; } @@ -310,19 +303,19 @@ public class BaseEvectionForm extends BaseEntity return evectionCauses; } - public String getEvectionBeginTime() { + public Date getEvectionBeginTime() { return evectionBeginTime; } - public void setEvectionBeginTime(String evectionBeginTime) { + public void setEvectionBeginTime(Date evectionBeginTime) { this.evectionBeginTime = evectionBeginTime; } - public String getEvectionEndTime() { + public Date getEvectionEndTime() { return evectionEndTime; } - public void setEvectionEndTime(String evectionEndTime) { + public void setEvectionEndTime(Date evectionEndTime) { this.evectionEndTime = evectionEndTime; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/Vo/BaseEvectionFormVo.java b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/Vo/BaseEvectionFormVo.java new file mode 100644 index 00000000..109da674 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/Vo/BaseEvectionFormVo.java @@ -0,0 +1,34 @@ +package com.ruoyi.system.domain.Vo; + +import com.ruoyi.system.domain.BaseEvectionForm; +import lombok.Data; + +import java.util.Date; + +//出差单VO类 +@Data +public class BaseEvectionFormVo extends BaseEvectionForm { + private static final long serialVersionUID = -3627380777050403384L; + + /** 申请人姓名 */ + private String applyUserName; + /** 任务ID */ + private String taskId; + /** 任务名称 */ + private String taskName; + /** 办理时间 */ + private Date doneTime; + /** 创建人 */ + private String createUserName; + /** 流程实例状态 1 激活 2 挂起 */ + private String suspendState; + /** 待办用户id */ + private String todoUserId; + /** 流程实例类型名称 */ + private String instanceTypeName; + + /** + * 关键词 + */ + private String keyword; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/BaseEvectionFormMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/BaseEvectionFormMapper.java index 444a7551..9803c568 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/BaseEvectionFormMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/BaseEvectionFormMapper.java @@ -2,6 +2,7 @@ package com.ruoyi.system.mapper; import java.util.List; import com.ruoyi.system.domain.BaseEvectionForm; +import com.ruoyi.system.domain.Vo.BaseEvectionFormVo; /** * 出差单Mapper接口 @@ -17,7 +18,7 @@ public interface BaseEvectionFormMapper * @param evectionId 出差单ID * @return 出差单 */ - public BaseEvectionForm selectBaseEvectionFormById(Long evectionId); + public BaseEvectionFormVo selectBaseEvectionFormById(Long evectionId); /** * 查询出差单列表 @@ -25,7 +26,7 @@ public interface BaseEvectionFormMapper * @param baseEvectionForm 出差单 * @return 出差单集合 */ - public List selectBaseEvectionFormList(BaseEvectionForm baseEvectionForm); + public List selectBaseEvectionFormList(BaseEvectionForm baseEvectionForm); /** * 新增出差单 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseEvectionFormService.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseEvectionFormService.java index e3c050d2..81530887 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseEvectionFormService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseEvectionFormService.java @@ -1,7 +1,11 @@ package com.ruoyi.system.service; import java.util.List; + +import com.ruoyi.sales.domain.SalesAftersalesNotice; import com.ruoyi.system.domain.BaseEvectionForm; +import com.ruoyi.system.domain.Vo.BaseEvectionFormVo; +import org.activiti.engine.runtime.ProcessInstance; /** * 出差单Service接口 @@ -17,7 +21,7 @@ public interface IBaseEvectionFormService * @param evectionId 出差单ID * @return 出差单 */ - public BaseEvectionForm selectBaseEvectionFormById(Long evectionId); + public BaseEvectionFormVo selectBaseEvectionFormById(Long evectionId); /** * 查询出差单列表 @@ -25,7 +29,7 @@ public interface IBaseEvectionFormService * @param baseEvectionForm 出差单 * @return 出差单集合 */ - public List selectBaseEvectionFormList(BaseEvectionForm baseEvectionForm); + public List selectBaseEvectionFormList(BaseEvectionForm baseEvectionForm); /** * 新增出差单 @@ -74,4 +78,10 @@ public interface IBaseEvectionFormService int restoreBaseEvectionFormById(Long evectionId); Object getId(); + + + /** + * 审批流程启动 + * */ + ProcessInstance submitApply(BaseEvectionForm baseEvectionForm); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseEvectionFormServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseEvectionFormServiceImpl.java index d485c505..9a4c842e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseEvectionFormServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseEvectionFormServiceImpl.java @@ -1,16 +1,37 @@ package com.ruoyi.system.service.impl; +import java.util.HashMap; import java.util.List; +import java.util.Map; +import java.util.Set; +import com.github.pagehelper.Page; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.page.PageDomain; +import com.ruoyi.common.core.page.TableSupport; import com.ruoyi.common.core.redis.RedisCache; import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.process.general.service.IProcessService; +import com.ruoyi.process.todoitem.mapper.BizTodoItemMapper; +import com.ruoyi.system.domain.BaseExpenseAccount; +import com.ruoyi.system.domain.Vo.BaseEvectionFormVo; +import com.ruoyi.system.domain.Vo.BaseExpenseAccountVo; +import com.ruoyi.system.mapper.SysUserMapper; +import com.ruoyi.system.service.ISysRoleService; +import org.activiti.engine.TaskService; +import org.activiti.engine.impl.persistence.entity.TaskEntityImpl; +import org.activiti.engine.runtime.ProcessInstance; +import org.activiti.engine.task.Task; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.system.mapper.BaseEvectionFormMapper; import com.ruoyi.system.domain.BaseEvectionForm; import com.ruoyi.system.service.IBaseEvectionFormService; import com.ruoyi.common.core.text.Convert; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; /** * 出差单Service业务层处理 @@ -27,6 +48,22 @@ public class BaseEvectionFormServiceImpl implements IBaseEvectionFormService @Autowired private RedisCache redisCache; + + @Autowired + private SysUserMapper userMapper; + + @Autowired + private TaskService taskService; + + @Autowired + private BizTodoItemMapper todoItemMapper; + + @Autowired + private IProcessService processService; + + @Autowired + private ISysRoleService roleService; + /** * 查询出差单 * @@ -34,7 +71,7 @@ public class BaseEvectionFormServiceImpl implements IBaseEvectionFormService * @return 出差单 */ @Override - public BaseEvectionForm selectBaseEvectionFormById(Long evectionId) + public BaseEvectionFormVo selectBaseEvectionFormById(Long evectionId) { return baseEvectionFormMapper.selectBaseEvectionFormById(evectionId); } @@ -46,9 +83,59 @@ public class BaseEvectionFormServiceImpl implements IBaseEvectionFormService * @return 出差单 */ @Override - public List selectBaseEvectionFormList(BaseEvectionForm baseEvectionForm) + public List selectBaseEvectionFormList(BaseEvectionForm baseEvectionForm) { - return baseEvectionFormMapper.selectBaseEvectionFormList(baseEvectionForm); + PageDomain pageDomain = TableSupport.buildPageRequest(); + Integer pageNum = pageDomain.getPageNum(); + Integer pageSize = pageDomain.getPageSize(); + //PageHelper 仅对第一List分页有效 + Page list = (Page) baseEvectionFormMapper.selectBaseEvectionFormList(baseEvectionForm); + Page returnList = new Page<>(); + for(BaseEvectionFormVo baseEvectionFormVo : list){ + SysUser sysUser = userMapper.selectUserByLoginName(baseEvectionFormVo.getCreateBy()); + if (sysUser != null) { + baseEvectionFormVo.setCreateBy(sysUser.getUserName()); + } + SysUser sysUser2 = userMapper.selectUserByLoginName(baseEvectionFormVo.getApplyUser()); + if (sysUser2!=null){ + baseEvectionFormVo.setApplyUserName(sysUser2.getUserName()); + } + String instanceId = baseEvectionFormVo.getInstanceId(); + // 当前环节 + if (StringUtils.isNotBlank(instanceId)) { + List taskList = taskService.createTaskQuery() + .processInstanceId(instanceId) +// .singleResult(); + .list(); // 例如请假会签,会同时拥有多个任务 + if (!CollectionUtils.isEmpty(taskList)) { + TaskEntityImpl task = (TaskEntityImpl) taskList.get(0); + String taskId = task.getId(); + baseEvectionFormVo.setTaskId(taskId); + // 设置待办用户 + List todoUserList = todoItemMapper.selectUndealTodoUserList(taskId); + if(!CollectionUtils.isEmpty(taskList)){ + baseEvectionFormVo.setTodoUserId(String.join(",",todoUserList)); + } + if (task.getSuspensionState() == 2) { + baseEvectionFormVo.setTaskName("已挂起"); + baseEvectionFormVo.setSuspendState("2"); + } else { + baseEvectionFormVo.setTaskName(task.getName()); + baseEvectionFormVo.setSuspendState("1"); + } + } else { + // 已办结或者已撤销 + baseEvectionFormVo.setTaskName("已结束"); + } + } else { + baseEvectionFormVo.setTaskName("未启动"); + } + returnList.add(baseEvectionFormVo); + } + returnList.setTotal(CollectionUtils.isEmpty(list) ? 0 : list.getTotal()); + returnList.setPageNum(pageNum); + returnList.setPageSize(pageSize); + return returnList; } /** @@ -132,4 +219,102 @@ public class BaseEvectionFormServiceImpl implements IBaseEvectionFormService public Object getId() { return redisCache.getCacheObject("CC"); } + + + /** + * 审批流程启动 + * */ + @Transactional(rollbackFor = Exception.class) + @Override + public ProcessInstance submitApply(BaseEvectionForm baseEvectionForm) { + + + SysUser user = ShiroUtils.getSysUser(); + baseEvectionForm.setApplyUser(user.getLoginName()); + baseEvectionForm.setApplyTime(DateUtils.getNowDate()); + baseEvectionForm.setEvectionCode(redisCache.generateBillNo("CC")); + // 保存 + insertBaseEvectionForm(baseEvectionForm); + // 启动流程 + String applyTitle = user.getUserName()+"发起了出差单提交审批-"+DateUtils.dateTimeNow(); + String instanceType = "submit"; + ProcessInstance processInstance = startProcessInstance(applyTitle,instanceType,baseEvectionForm, user); + String processInstanceId = processInstance.getProcessInstanceId(); + // 提交实例id + baseEvectionForm.setSubmitInstanceId(processInstanceId); + // 存在提交完就流程结束的情况 + boolean processIsFinish = processService.judgeProcessIsFinish(processInstanceId); + if(processIsFinish){ + // 审核状态-审核通过 + baseEvectionForm.setAuditStatus("1"); + } + baseEvectionFormMapper.updateBaseEvectionForm(baseEvectionForm); + return processInstance; + } + + + + private ProcessInstance startProcessInstance(String applyTitle, String instanceType, BaseEvectionForm baseEvectionForm, SysUser user) { + Long evectionId = baseEvectionForm.getEvectionId(); + String businessKey = evectionId.toString(); // 实体类 ID,作为流程的业务 key + String key = "evection"; + Map variables = new HashMap<>(); + // 构造authority传参 + buildAuthority(user, variables); + baseEvectionForm.setApplyTitle(applyTitle); + // 启动流程 + ProcessInstance processInstance = processService.submitApply(user.getLoginName(), businessKey, applyTitle, + baseEvectionForm.getEvectionCode(), key, variables); + String processInstanceId = processInstance.getId(); + baseEvectionForm.setInstanceId(processInstanceId); // 建立双向关系 + baseEvectionForm.setInstanceType(instanceType); + return processInstance; + } + + private void buildAuthority(SysUser user, Map variables) { + Set roleKeys = roleService.selectRoleKeys(user.getUserId()); + + variables.put("authority",1); + //判断请购人的角色,进入相应的逻辑,设置节点审批人变量 + if(roleKeys.contains("ywyRole") || roleKeys.contains("ywjlRole") || roleKeys.contains("ywzgRole")){ + // 业务经理 + variables.put("ccjlRole","ywjlRole"); + // 业务主管 + variables.put("cczgRole","ywzgRole"); + }else if(roleKeys.contains("cgyRole") || roleKeys.contains("cgjlRole") || roleKeys.contains("cgzgRole")){ + // 采购经理 + variables.put("ccjlRole","cgjlRole"); + // 采购主管 + variables.put("cczgRole","cgzgRole"); + }else if (roleKeys.contains("gcwyRole") || roleKeys.contains("gcjlRole") || roleKeys.contains("gczgRole")){ + // 工程经理 + variables.put("ccjlRole","gcjlRole"); + // 工程主管 + variables.put("cczgRole","gczgRole"); + } else if (roleKeys.contains("scyRole") || roleKeys.contains("scjlRole") || roleKeys.contains("sczgRole")){ + // 生产经理 + variables.put("ccjlRole","scjlRoe"); + // 生产主管 + variables.put("cczgRole","sczgRole"); + }else if (roleKeys.contains("shgcsRole") || roleKeys.contains("shjlRole") || roleKeys.contains("shzgRole")){ + // 售后经理 + variables.put("ccjlRole","shjlRole"); + // 售后主管 + variables.put("cczgRole","shzgRole"); + }else if(roleKeys.contains("cgyyRole") || roleKeys.contains("ckzgRole")){ + variables.put("ccjlRole","shzgRole"); + // 售后主管 + variables.put("cczgRole","shzgRole"); + }else if (roleKeys.contains("cwRole") || roleKeys.contains("cwjlRole")){ + variables.put("ccjlRole","cwjlRole"); + // 售后主管 + variables.put("cczgRole","cwJlRole"); + }else{ + variables.put("authority",2); + } + if(roleKeys.contains("admin")){ + // 角色包含业务经理、采购经理、工程经理、生产经理 + variables.put("authority",2); + } + } } diff --git a/ruoyi-admin/src/main/resources/mapper/system/BaseEvectionFormMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/BaseEvectionFormMapper.xml index 804aded6..575c847e 100644 --- a/ruoyi-admin/src/main/resources/mapper/system/BaseEvectionFormMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/system/BaseEvectionFormMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from base_evection_form - and audit_status = #{auditStatus} @@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where evection_id = #{evectionId} - + insert into base_evection_form audit_status, @@ -160,7 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + update base_evection_form audit_status = #{auditStatus}, @@ -174,7 +174,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" evection_addr = #{evectionAddr}, evection_detail_addr = #{evectionDetailAddr}, evection_causes = #{evectionCauses}, - evection_time = #{evectionTime}, dispatchlist_code = #{dispatchlistCode}, make_code = #{makeCode}, travel_mode = #{travelMode}, @@ -182,7 +181,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" transportation_cost_budget = #{transportationCostBudget}, accommodation_budget = #{accommodationBudget}, other_expenses_budget = #{otherExpensesBudget}, - reality_evenction_time = #{realityEvenctionTime}, apply_user = #{applyUser}, create_by = #{createBy}, create_time = #{createTime}, @@ -196,7 +194,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" restore_instance_id = #{restoreInstanceId}, apply_title = #{applyTitle}, apply_time = #{applyTime}, - del_flag = #{delFlag}, where evection_id = #{evectionId} diff --git a/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/add.html b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/add.html index 98c88de5..94ded6b3 100644 --- a/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/add.html @@ -110,18 +110,18 @@ -
- -
-
- - - - - - -
-
-
+ + + + + + + + + + + +
diff --git a/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/baseEvectionForm.html b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/baseEvectionForm.html index e32fb754..9581a7b9 100644 --- a/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/baseEvectionForm.html +++ b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/baseEvectionForm.html @@ -58,6 +58,7 @@
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskModifyApply.html b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskModifyApply.html new file mode 100644 index 00000000..e8a88530 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskModifyApply.html @@ -0,0 +1,121 @@ + + + + + + + +
+
+ + + + + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + + - + + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskZjlVerify.html b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskZjlVerify.html new file mode 100644 index 00000000..f6b86842 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskZjlVerify.html @@ -0,0 +1,134 @@ + + + + + + + +
+
+ + + + + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + + - + + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskccjlVerify.html b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskccjlVerify.html new file mode 100644 index 00000000..e9de922f --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskccjlVerify.html @@ -0,0 +1,134 @@ + + + + + + + +
+
+ + + + + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + + - + + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskcczgVerify.html b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskcczgVerify.html new file mode 100644 index 00000000..9213ff59 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/taskcczgVerify.html @@ -0,0 +1,134 @@ + + + + + + + +
+
+ + + + + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + + - + + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file