zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
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
package com.changhong.epc.admin.controller.corres;
 
 
import java.util.List;
import java.util.Map;
 
import javax.annotation.Resource;
 
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
import com.changhong.epc.admin.service.corres.CorresElFieldService;
import com.changhong.epc.bean.admin.CorresElField;
import com.changhong.epc.bean.admin.extend.CorresElFieldExtendFind;
import com.changhong.epc.constter.admin.AdminUrlConst;
 
@RestController
public class CorresElFieldController  implements AdminUrlConst{
 
    @Resource(name="corresElFieldServiceImpl")
    private CorresElFieldService corresElFieldService;
    
    /**
     * 查询出所有常量
     * 
     */
    @PostMapping(REST_ADMIN_CORRESELFIELD_SELECT)
    public CorresElFieldExtendFind selectMapper(){
        return corresElFieldService.selectAll();
    }
    
    
    /**
     * 修改常量
     * @param corr
     * @return
     */
    @PostMapping(REST_ADMIN_CORRESELFIELD_UPDATE)
    public int updateCorres(@RequestBody CorresElField corr){
        return corresElFieldService.updateCorres(corr);
    }
    
    
    /**
     * 逻辑删除常量
     * @param corr
     * @return
     */
    @PostMapping(REST_ADMIN_CORRESELFIELD_DELET)
    public int deleteCorres(@RequestBody CorresElField corr){
        return corresElFieldService.deleteCorres(corr);
    }
    
    /**
     * 查询出所有data_start为0常量
     * 
     */
    @PostMapping(REST_ADMIN_CORRESELFIELD_FIND)
    public List<CorresElField> findCorres(@RequestBody CorresElField corr){
        return corresElFieldService.findCorres(corr);
    }
    
    /**
     * 添加常量
     * 
     */
    @PostMapping(REST_ADMIN_CORRESELFIELD_ADD)
    public int addCorres(@RequestBody CorresElField corr){
        return corresElFieldService.addCorres(corr);
    }
    
//    /**
//     *通过常量business_meaning_code 取 md_code 
//     *
//     */
//    @PostMapping(GET_MDCODE_BY_BMCODE)
//    public String getMDCodeByBMCode(@RequestBody Map<String,String> map){
//        return corresElFieldService.getMDCodeByBMCode(map.get("bmCode"));
//    }
    
    /**
     *通过常量business_meaning_code 取 md_code 
     *
     */
    @PostMapping(GET_CORRESELFIELD)
    public List<CorresElField> getCorresElField(@RequestBody CorresElField corr){
        return corresElFieldService.getCorresElField(corr);
    }
    
}