| | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.dto.PLActionClsDTO; |
| | | import com.vci.dto.PLActionDTO; |
| | | import com.vci.dto.PLActionExpDTO; |
| | | import com.vci.dto.PLActionQueryDTO; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.web.service.OsActionServiceI; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 导出Action |
| | | * 导出Action分类 |
| | | * @return |
| | | */ |
| | | @PostMapping("/exportBeans") |
| | |
| | | osActionServiceI.exportBeans(actionOid, response); |
| | | } |
| | | |
| | | /** |
| | | * 导入Action |
| | | * @param file 上传的文件 |
| | | * @return |
| | | */ |
| | | @PostMapping("/impData") |
| | | public BaseResult impData(MultipartFile file){ |
| | | try { |
| | | return osActionServiceI.impData(file); |
| | | }catch (Throwable e) { |
| | | throw new VciBaseException(VciBaseUtil.getExceptionMessage(e),new String[0],e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 导出Action |
| | | * @param plActionExpDTO 导出属性设置对象 |
| | | */ |
| | | @PostMapping("/exportAction") |
| | | public void exportAction(@RequestBody PLActionExpDTO plActionExpDTO, HttpServletResponse response) throws PLException { |
| | | try { |
| | | osActionServiceI.exportAction(plActionExpDTO, response); |
| | | }catch (Throwable e) { |
| | | throw new VciBaseException(VciBaseUtil.getExceptionMessage(e),new String[0],e); |
| | | } |
| | | } |
| | | } |