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
package com.changhong.epc.count.controller;
 
import javax.annotation.Resource;
 
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
 
import com.changhong.epc.constter.count.nomr.CountUrlConst;
import com.changhong.epc.count.service.system.performer.IFormulaHandle;
import com.changhong.epc.count.service.system.performer.impl.FunctionParam;
 
@RestController
public class TestRest implements CountUrlConst{
 
    @Resource
    private IFormulaHandle formulaHandle;
    
    @RequestMapping(value="test", method={RequestMethod.OPTIONS, RequestMethod.POST})
    public Object test(){
        FunctionParam param = new  FunctionParam();
        // 上下文
        param.initData(null);
        // 函数ID
        param.prepare(3);
        
        return formulaHandle.execute(param);
        
    }
}