zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
commit | author | age
a18bfa 1 package com.changhong.epc.form.rest.field;
Z 2
3 import java.util.Map;
4
5 import javax.annotation.Resource;
6 import org.springframework.web.bind.annotation.RequestBody;
7 import org.springframework.web.bind.annotation.RequestMapping;
8 import org.springframework.web.bind.annotation.RequestMethod;
9 import org.springframework.web.bind.annotation.RestController;
10 import com.changhong.epc.bean.form.FormBaseEntity;
11 import com.changhong.epc.bean.form.FormKey;
12 import com.changhong.epc.bean.parsing.submit.FormulaParam;
13 import com.changhong.epc.bean.parsing.submit.FormulaResult;
14 import com.changhong.epc.constter.form.utf.FormUrlConst;
15 import com.changhong.epc.form.service.field.FormFieldService;
16
17 @RestController
18 @RequestMapping(method=RequestMethod.POST)
19 public class FormFieldRest implements FormUrlConst{
20
21     @Resource
22     private FormFieldService formFieldService;
23     
24     @RequestMapping(FORM_PROPERTY_URL)
25     public FormBaseEntity selectFormFieldProperty(@RequestBody FormKey formKey){
26         return formFieldService.selectFormFieldProperty(formKey);
27     }
28     
29     @RequestMapping(FORM_DATA_UPDATE2)
30     public Object updateFormFieldProperty(@RequestBody Map<String,Object> data){
31         return formFieldService.updateFormFieldProperty(data);
32     }
33     
34     @RequestMapping(FORM_PROPERTY_GET_FORMULA)
35     public FormulaResult getFormula(@RequestBody FormulaParam formulaParam){
36         return formFieldService.getFormula(formulaParam);
37     }
38 }