commit | author | age
|
a18bfa
|
1 |
package com.changhong.epc.tenant.controller.norm; |
Z |
2 |
|
|
3 |
import com.changhong.epc.bean.tenant.master.MasterDefine; |
|
4 |
import com.changhong.epc.bean.tenant.master.extend.MasterDefinesExtend; |
|
5 |
import com.changhong.epc.constter.tenant.TenantUrlConst; |
|
6 |
import com.changhong.epc.tenant.service.norm.impl.MasterDefineServiceImpl; |
|
7 |
import org.springframework.beans.factory.annotation.Autowired; |
|
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
import org.springframework.web.bind.annotation.RestController; |
|
11 |
|
|
12 |
import javax.annotation.Resource; |
|
13 |
import java.util.List; |
|
14 |
|
|
15 |
@RestController |
|
16 |
public class MasterDefineController implements TenantUrlConst { |
|
17 |
|
|
18 |
@Autowired |
|
19 |
private MasterDefineServiceImpl masterDefineService; |
|
20 |
|
|
21 |
/** |
|
22 |
* 查询主数据维度 |
|
23 |
*/ |
|
24 |
@PostMapping(REST_TENANT_MASTERTYPE_SELECT) |
|
25 |
public List<MasterDefine> selectByQuery(@RequestBody MasterDefine masterDefine){ |
|
26 |
return masterDefineService.selectByQuery(masterDefine); |
|
27 |
} |
|
28 |
|
|
29 |
/** |
|
30 |
* 查询所有主数据列表 |
|
31 |
* @return |
|
32 |
*/ |
|
33 |
@PostMapping(REST_TENANT_MASTERTYPE_SELECTALLMASTER) |
|
34 |
public List<MasterDefine> selectAllMaster() { |
|
35 |
return masterDefineService.selectAllMaster(); |
|
36 |
} |
|
37 |
|
|
38 |
/** |
|
39 |
* 查询所有主数据下所有元素 |
|
40 |
*/ |
|
41 |
@PostMapping(REST_TENANT_MASTERTYPE_SELECTELE) |
|
42 |
public List<MasterDefinesExtend> selectEle(@RequestBody MasterDefine masterDefine){ |
|
43 |
return masterDefineService.selectEle(masterDefine); |
|
44 |
} |
|
45 |
|
|
46 |
/** |
|
47 |
* 查询所有主数据下所有元素 |
|
48 |
*/ |
|
49 |
@PostMapping(REST_TENANT_MASTERTYPE_SELECTNAME) |
|
50 |
public List<MasterDefinesExtend> selectName(@RequestBody MasterDefine masterDefine){ |
|
51 |
return masterDefineService.selectName(masterDefine); |
|
52 |
} |
|
53 |
|
|
54 |
|
|
55 |
/** |
|
56 |
* 自用,票据取值公式表 |
|
57 |
*/ |
|
58 |
@PostMapping("/syn/master") |
|
59 |
public int synMaster(@RequestBody MasterDefine master){ |
|
60 |
return masterDefineService.synMaster(master); |
|
61 |
} |
|
62 |
|
|
63 |
/** |
|
64 |
* 查询可配置 |
|
65 |
*/ |
|
66 |
@PostMapping(REST_TENANT_MASTERTYPE_SELECTCONFIGMASTER) |
|
67 |
public List<MasterDefine> selectAllConfigM() { |
|
68 |
MasterDefine master =new MasterDefine(); |
|
69 |
master.setConfigType("4"); |
|
70 |
return masterDefineService.selectAllConfigM(master); |
|
71 |
} |
|
72 |
|
|
73 |
|
|
74 |
} |