zhuguifei
2026-03-10 2c1fd10c6fbabb8e9f0e9f07fe66fb36c008e883
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
package com.shlanbao.tzsc.pms.sch.workorder.controller;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
import com.shlanbao.tzsc.base.controller.BaseController;
import com.shlanbao.tzsc.base.model.DataGrid;
import com.shlanbao.tzsc.pms.sch.workorder.service.CraftServiceI;
 
/**
 * 工艺控制器
 * @author Leejean
 * @create 2014年11月18日下午2:23:51
 */
@Controller
@RequestMapping("/pms/craft")
public class CraftController extends BaseController {
    
    @Autowired
    private CraftServiceI craftService;
    
    /**
     * 获取工单的Craft工艺参数
     * @author Leejean
     * @create 2014年11月20日下午4:32:11
     * @param workOrderId 工单ID
     * @return
     */
    @ResponseBody
    @RequestMapping("/getCraftByWorkOrder")
    public DataGrid getCraftByWorkOrder(String workOrderId){
        try {
            return craftService.queryCraftByWorkOrder(workOrderId);
        } catch (Exception e) {
            log.error("获取工单["+workOrderId+"]的工艺参数异常", e);
        }
        return null;
    }
}