| | |
| | | package com.vci.web.controller; |
| | | |
| | | import com.vci.starter.web.annotation.controller.VciUnCheckRight; |
| | | import com.vci.starter.web.annotation.log.VciBusinessLog; |
| | | import com.vci.starter.web.pagemodel.*; |
| | | import com.vci.web.dto.*; |
| | |
| | | import com.vci.web.query.UIDataGridQuery; |
| | | import com.vci.web.query.UIFormQuery; |
| | | import com.vci.web.query.UITreeQuery; |
| | | import com.vci.web.query.UITreeRootQuery; |
| | | import com.vci.web.service.UIDataServiceI; |
| | | import org.omg.CORBA.PUBLIC_MEMBER; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import plm.bs.bom.clientobject.ClientBusinessObject; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | * @return 列表数据 |
| | | */ |
| | | @PostMapping("/dataGridQuery") |
| | | @VciUnCheckRight |
| | | @VciBusinessLog(operateName = "列表数据的查询",description = "${param.btmname}里的${param.tableDefineId}") |
| | | public DataGrid dataGrid(UIDataGridQuery dataGridQuery){ |
| | | return uiDataService.getDataForGrid(dataGridQuery); |
| | |
| | | * @return 表单的数据 |
| | | */ |
| | | @PostMapping("/dataFormQuery") |
| | | @VciUnCheckRight |
| | | @VciBusinessLog(operateName = "表单的查询",description = "${param.btmname}里的${param.formDefineId}") |
| | | public BaseResult<UIFormDataVO> getDataForForm(UIFormQuery formQuery){ |
| | | return BaseResult.success(uiDataService.getDataForForm(formQuery)); |
| | |
| | | * @return 树的数据 |
| | | */ |
| | | @PostMapping("/getDataForTree") |
| | | @VciUnCheckRight |
| | | @VciBusinessLog(operateName = "树的查询",description = "${param.btmname}") |
| | | public List<Tree> getDataForTree(UITreeQuery treeQuery){ |
| | | return uiDataService.getDataForTree(treeQuery); |
| | |
| | | * @return 执行的结果 |
| | | */ |
| | | @PostMapping("/addSave") |
| | | @VciUnCheckRight |
| | | @VciBusinessLog(operateName = "添加数据",description = "${param.btmname}") |
| | | public BaseResult<Map<String,Object>> addSave(@RequestBody FormDataDTO formDataDTO){ |
| | | return uiDataService.addSave(formDataDTO); |
| | |
| | | * @return 执行的结果 |
| | | */ |
| | | @PutMapping("/editSave") |
| | | @VciUnCheckRight |
| | | @VciBusinessLog(operateName = "修改数据",description = "${param.btmname}里的${param.oid}") |
| | | public BaseResult<Map<String,Object>> editSave(@RequestBody FormDataDTO formDataDTO){ |
| | | return uiDataService.editSave(formDataDTO); |
| | |
| | | * @return 执行的结果 |
| | | */ |
| | | @DeleteMapping("/deleteData") |
| | | @VciUnCheckRight |
| | | @VciBusinessLog(operateName = "删除数据",description = "${param.dataList.0.btmname}的${param.dataList.${join}.oid}") |
| | | public BaseResult deleteData(@RequestBody DeleteDataDTO deleteDataDTO){ |
| | | return uiDataService.batchDelete(deleteDataDTO); |