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
package cn.autoform.web.controller.formoperation;
 
import java.util.List;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
 
import cn.autoform.db.entity.FormOperationEntity;
import cn.autoform.db.entity.TenantEntity;
import cn.autoform.fw.exception.RestResult;
import cn.autoform.fw.utility.RestResultGenerator;
import cn.autoform.web.service.formoperation.FormOperationInfoService;
 
/**
 * 
 * @author huaixun.zhang
 *
 */
@RestController
public class FormOperationController {
    
    @Autowired
    private FormOperationInfoService formOperationInfoService = null;
    
    /**
     * 获取维护表单基本信息
     * @param tenantID
     * @return 维护表单基本信息
     */
    @RequestMapping(value = "${requset.formOperation01}", method = RequestMethod.POST)
    public RestResult<List<FormOperationEntity>> getFormOperationInfoService(@RequestBody TenantEntity tenant) {
        List<FormOperationEntity> entity = formOperationInfoService.receiveFormOperationInfo(tenant.getTenantID());
        return RestResultGenerator.genSuccessResult(entity);
    }
}