sgj
2026-01-13 4e4bc0f110b1d2ebbce80a37b80697e8ac0347e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.fzzy.work;
 
import com.fzzy.work.domain.WorkOrderConf;
import com.fzzy.work.service.WorkOrderConfService;
import com.ruoyi.common.core.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
import javax.annotation.Resource;
 
/**
 * 工单管理
 */
@Controller
@RequestMapping("/work")
public class WorkOrderController extends BaseController {
 
 
    private static final String prefix = "work";
 
    @Resource
    private WorkOrderConfService workOrderConfService;
 
 
    /**
     * 工单列表页面
     *
     */
    @GetMapping("/list")
    public String list(ModelMap mmap) {
 
        return prefix + "/list";
    }
 
 
    /**
     * 工单无业务列表页面
     *
     */
    @GetMapping("/no-business")
    public String noBusiness(ModelMap mmap) {
 
        return prefix + "/no-business";
    }
 
    /**
     * 根据配置ID 获取到配置信息
     * 工单流程图配置
     *
     */
    @GetMapping("/flow-conf")
    public String noBusiness(@RequestParam("id") String id, ModelMap mmap) {
 
        WorkOrderConf conf = workOrderConfService.selectById(id);
        if (null == conf) conf = new WorkOrderConf();
 
        mmap.put("data", conf);
 
        return prefix + "/flow-conf";
    }
}