| | |
| | | import com.vci.starter.web.util.LocalFileUtil; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.web.enumpck.ItemDblEnum; |
| | | import com.vci.web.enumpck.ItemTypeEnum; |
| | | import com.vci.enumpck.UI.ItemTypeEnum; |
| | | import com.vci.web.service.OsPortalVIServiceI; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 公式控制器 |
| | | * 表单/表格控制器 |
| | | * @author weidy |
| | | * @date 2022-2-11 |
| | | */ |
| | | @VciBusinessLog(modelName="表单/表格控制器",notStore=true) |
| | | @RestController |
| | | @RequestMapping("/portalVIController") |
| | | public class WebPortalVIController { |
| | |
| | | }else{ |
| | | return portalVIServiceI.addSave(portalVIDTO); |
| | | } |
| | | |
| | | } |
| | | /** |
| | | * 业务类型删除 |
| | | * 表单/table删除 |
| | | * btmTypeDTO 业务类型对象 |
| | | * @return 删除结果 |
| | | */ |
| | |
| | | } |
| | | } |
| | | /** |
| | | * 业务类型删除 |
| | | * 表单/table删除 |
| | | * btmTypeDTO 业务类型对象 |
| | | * @return 删除结果 |
| | | */ |
| | |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * 表单/table克隆 |
| | | * @param portalVIDTOList clong对象 |
| | | * @return |
| | | */ |
| | | @PostMapping("/clone") |
| | | @VciBusinessLog(operateName = "克隆表单/表格") |
| | |
| | | return portalVIServiceI.clone(portalVIDTOList) ? BaseResult.success("克隆成功!"):BaseResult.fail("克隆失败!"); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "删除表单时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | String exceptionMessage = "克隆表单/表格时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |