| | |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.core.domain.KeyValueVo; |
| | | import com.core.exception.CoolException; |
| | |
| | | throw new CoolException("未查找到规划组长,请联系管理员"); |
| | | } |
| | | |
| | | // 修改 settle 步骤数据 todo |
| | | plan.setSettleMsg(JSON.toJSONString(SettleDto.init(plan, manager))); |
| | | // 修改 settle 步骤数据 |
| | | List<SettleDto> list = JSON.parseArray(plan.getSettleMsg(), SettleDto.class); |
| | | for (SettleDto dto : list) { |
| | | switch (dto.getStep()) { |
| | | case 1: |
| | | dto.setCurr(Boolean.FALSE); |
| | | break; |
| | | case 2: |
| | | dto.setCurr(Boolean.TRUE); |
| | | dto.setMsg("本组组长" + manager.getNickname() + "审批通过"); |
| | | dto.setTime(DateUtils.convert(new Date())); |
| | | break; |
| | | case 3: |
| | | dto.setUserId(planLeader.getId()); |
| | | dto.setUsername(planLeader.getNickname()); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | } |
| | | plan.setSettleMsg(JSON.toJSONString(list)); |
| | | |
| | | // 修改规划单状态 |
| | | plan.setSettle(2); // 规划组长待审 |
| | |
| | | name: @pom.build.finalName@ |
| | | datasource: |
| | | driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | | # url: jdbc:sqlserver://47.97.1.152:51433;databasename=zy_crm |
| | | # username: sa |
| | | # password: Zoneyung@zy56$ |
| | | url: jdbc:sqlserver://localhost:1433;databasename=zy_crm |
| | | url: jdbc:sqlserver://47.97.1.152:51433;databasename=zy_crm |
| | | username: sa |
| | | password: sa@123 |
| | | password: Zoneyung@zy56$ |
| | | # url: jdbc:sqlserver://localhost:1433;databasename=zy_crm |
| | | # username: sa |
| | | # password: sa@123 |
| | | mvc: |
| | | static-path-pattern: /** |
| | | redis: |
| | |
| | | <choose> |
| | | <when test="deptId != null and deptId != ''"> |
| | | AND (CHARINDEX(','+#{deptId}+',', ','+sd.path+',') > 0 OR sd.id = #{deptId}) |
| | | or |
| | | ( |
| | | user_id = #{userId} |
| | | or |
| | | mc.id in |
| | | ( |
| | | select |
| | | cstmr_id |
| | | from man_cstmr_foll |
| | | where 1=1 |
| | | and user_id = #{userId} |
| | | ) |
| | | ) |
| | | </when> |
| | | <otherwise> |
| | | and |
| | |
| | | <choose> |
| | | <when test="deptId != null and deptId != ''"> |
| | | AND (CHARINDEX(','+#{deptId}+',', ','+sd.path+',') > 0 OR sd.id = #{deptId}) |
| | | or |
| | | ( |
| | | user_id = #{userId} |
| | | or |
| | | mo.id in |
| | | ( |
| | | select |
| | | order_id |
| | | from man_order_foll |
| | | where 1=1 |
| | | and user_id = #{userId} |
| | | ) |
| | | ) |
| | | </when> |
| | | <otherwise> |
| | | and |
| | |
| | | <choose> |
| | | <when test="deptId != null and deptId != ''"> |
| | | AND (CHARINDEX(','+#{deptId}+',', ','+sd.path+',') > 0 OR sd.id = #{deptId}) |
| | | or |
| | | ( |
| | | user_id = #{userId} |
| | | or |
| | | mp.id in |
| | | ( |
| | | select |
| | | plan_id |
| | | from man_plan_foll |
| | | where 1=1 |
| | | and user_id = #{userId} |
| | | ) |
| | | ) |
| | | </when> |
| | | <otherwise> |
| | | and |
| | | ( |
| | | user_id = #{userId} |
| | | or |
| | | mp.id in |
| | | ( |
| | | select |
| | | plan_id |
| | | from man_plan_foll |
| | | where 1=1 |
| | | and user_id = #{userId} |
| | | user_id = #{userId} |
| | | or |
| | | mp.id in |
| | | ( |
| | | select |
| | | plan_id |
| | | from man_plan_foll |
| | | where 1=1 |
| | | and user_id = #{userId} |
| | | ) |
| | | ) |
| | | </otherwise> |