zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
package com.shlanbao.tzsc.pms.cos.brand.controller;
 
import java.util.List;
 
import javax.servlet.http.HttpServletRequest;
 
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.base.model.PageParams;
import com.shlanbao.tzsc.pms.cos.brand.beans.SeachBean;
import com.shlanbao.tzsc.pms.cos.brand.service.BrandServiceI;
import com.shlanbao.tzsc.pms.isp.beans.RollerPackerGroup;
import com.shlanbao.tzsc.pms.isp.service.PmsIspServiceI;
import com.shlanbao.tzsc.utils.tools.SystemConstant;
/**
 * @ClassName: BrandController 
 * @Description: 成本管理 
 * @author luo
 * @date 2015年1月21日 下午2:55:34 
 *
 */
@Controller
@RequestMapping("/pms/barand")
public class BrandController extends BaseController {
    
    @Autowired
    private BrandServiceI brandService;
    
    @Autowired
    private PmsIspServiceI pmsIspService;
    
    /**
    * @Title: queryBrand_juanbao 
    * @Description: 查询卷包机组综合成本统计
    * @param  seachBean
    * @param  pageParams
    * @param  request
    * @return DataGrid    返回类型 
    * @throws
     */
    @ResponseBody
    @RequestMapping("/queryBrand_juanbao")
    public DataGrid queryBrand_juanbao(SeachBean seachBean,PageParams pageParams,HttpServletRequest request){
        try {
            seachBean.setWorkshop(SystemConstant.PAGEAING_AREA);//卷包车间ID
            List<RollerPackerGroup> rollerPackerGroup=pmsIspService.initRollerPackerGroups(request);
            DataGrid gd = brandService.queryBrandCos_juanbao(false,false,seachBean, pageParams,rollerPackerGroup);
            return gd;
        } catch (Exception e) {
            log.error("牌号统计异常", e);
        }
        return null;
    }
    /**
    * @Title: queryBrand_chengxing 
    * @Description: 成型车间综合成本考核查询
    * @param  seachBean
    * @param  pageParams
    * @return DataGrid    返回类型 
    * @throws
     */
    @ResponseBody
    @RequestMapping("/queryBrand_chengxing")
    public DataGrid queryBrand_chengxing(SeachBean seachBean,PageParams pageParams){
        try {
            seachBean.setWorkshop(SystemConstant.FILTER_AREA);
            DataGrid gd = brandService.queryBrand_chengxing(false,false,seachBean, pageParams);
            return gd;
        } catch (Exception e) {
            log.error("牌号统计异常", e);
        }
        return null;
    }
    
    /**
    * @Title: queryBrand_juanjie 
    * @Description: 卷接机成本管理考核统计
    * @param  seachBean
    * @param  pageParams
    * @return DataGrid    返回类型 
    * @throws
     */
    @ResponseBody
    @RequestMapping("/queryBrand_juanjie")
    public DataGrid queryBrand_juanjie(SeachBean seachBean,PageParams pageParams){
        try {
            seachBean.setWorkshop(SystemConstant.PAGEAING_AREA);
            seachBean.seteType(SystemConstant.WORKORDER_TYPE_JJ);
            DataGrid gd = brandService.queryBrand_chengxing(false,false,seachBean, pageParams);
            return gd;
        } catch (Exception e) {
            log.error("牌号统计异常", e);
        }
        return null;
    }
    
    /**
    * @Title: queryBrand_juanjie 
    * @Description: 包装机成本管理考核统计
    * @param  seachBean
    * @param  pageParams
    * @return DataGrid    返回类型 
    * @throws
     */
    @ResponseBody
    @RequestMapping("/queryBrand_baozhuang")
    public DataGrid queryBrand_baozhuang(SeachBean seachBean,PageParams pageParams){
        try {
            seachBean.setWorkshop(SystemConstant.PAGEAING_AREA);
            seachBean.seteType(SystemConstant.WORKORDER_TYPE_BZ);
            DataGrid gd = brandService.queryBrand_chengxing(false,false,seachBean, pageParams);
            return gd;
        } catch (Exception e) {
            log.error("牌号统计异常", e);
        }
        return null;
    }
    
    /**
    * @Title: queryBrand_juanbao 
    * @Description: 查询卷包机组综合成本统计并且统计残烟丝量
    * @param  seachBean
    * @param  pageParams
    * @param  request
    * @return DataGrid    返回类型 
    * @throws
     */
    @ResponseBody
    @RequestMapping("/queryBrandAndDis_juanbao")
    public DataGrid queryBrandAndDis_juanbao(SeachBean seachBean,PageParams pageParams,HttpServletRequest request){
        try {
            seachBean.setWorkshop(SystemConstant.PAGEAING_AREA);
            List<RollerPackerGroup> rollerPackerGroup=pmsIspService.initRollerPackerGroups(request);
            DataGrid gd = brandService.queryBrandCos_juanbao(true,false,seachBean, pageParams,rollerPackerGroup);
            return gd;
        } catch (Exception e) {
            log.error("卷包机组成本统计异常", e);
        }
        return null;
    }
    
    /**
    * @Title: queryBrand_juanbao 
    * @Description: 查询成型机组综合成本统计并且统计残烟丝量
    * @param  seachBean
    * @param  pageParams
    * @param  request
    * @return DataGrid    返回类型 
    * @throws
     */
    @ResponseBody
    @RequestMapping("/queryBrandAndDis_chengxing")
    public DataGrid queryBrandAndDis_chengxing(SeachBean seachBean,PageParams pageParams,HttpServletRequest request){
        try {
            seachBean.setWorkshop(SystemConstant.PAGEAING_AREA);
            List<RollerPackerGroup> rollerPackerGroup=pmsIspService.initRollerPackerGroups(request);
            DataGrid gd = brandService.queryBrandCos_juanbao(true,false,seachBean, pageParams,rollerPackerGroup);
            return gd;
        } catch (Exception e) {
            log.error("牌号统计异常", e);
        }
        return null;
    }
}