|
@@ -1,28 +1,21 @@
|
|
|
package com.jjt.biz.controller;
|
|
package com.jjt.biz.controller;
|
|
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
-import javax.annotation.Resource;
|
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
-
|
|
|
|
|
-import io.swagger.annotations.Api;
|
|
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
+import com.jjt.biz.domain.BizModelDetail;
|
|
|
|
|
+import com.jjt.biz.service.IBizModelDetailService;
|
|
|
import com.jjt.common.annotation.Log;
|
|
import com.jjt.common.annotation.Log;
|
|
|
import com.jjt.common.core.controller.BaseController;
|
|
import com.jjt.common.core.controller.BaseController;
|
|
|
import com.jjt.common.core.domain.AjaxResult;
|
|
import com.jjt.common.core.domain.AjaxResult;
|
|
|
|
|
+import com.jjt.common.core.page.TableDataInfo;
|
|
|
import com.jjt.common.enums.BusinessType;
|
|
import com.jjt.common.enums.BusinessType;
|
|
|
-import com.jjt.biz.domain.BizModelDetail;
|
|
|
|
|
-import com.jjt.biz.service.IBizModelDetailService;
|
|
|
|
|
import com.jjt.common.utils.poi.ExcelUtil;
|
|
import com.jjt.common.utils.poi.ExcelUtil;
|
|
|
-import com.jjt.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
+
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 业务模型明细Controller
|
|
* 业务模型明细Controller
|
|
@@ -30,11 +23,10 @@ import com.jjt.common.core.page.TableDataInfo;
|
|
|
* @author jjt
|
|
* @author jjt
|
|
|
* @date 2024-08-26
|
|
* @date 2024-08-26
|
|
|
*/
|
|
*/
|
|
|
-@Api(tags="业务模型明细")
|
|
|
|
|
|
|
+@Api(tags = "业务模型明细")
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("/hl/bd")
|
|
@RequestMapping("/hl/bd")
|
|
|
-public class BizModelDetailController extends BaseController
|
|
|
|
|
-{
|
|
|
|
|
|
|
+public class BizModelDetailController extends BaseController {
|
|
|
@Resource
|
|
@Resource
|
|
|
private IBizModelDetailService bizModelDetailService;
|
|
private IBizModelDetailService bizModelDetailService;
|
|
|
|
|
|
|
@@ -44,8 +36,7 @@ public class BizModelDetailController extends BaseController
|
|
|
@ApiOperation("查询业务模型明细列表")
|
|
@ApiOperation("查询业务模型明细列表")
|
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:list')")
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:list')")
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
- public TableDataInfo list(BizModelDetail bizModelDetail)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public TableDataInfo list(BizModelDetail bizModelDetail) {
|
|
|
startPage();
|
|
startPage();
|
|
|
List<BizModelDetail> list = bizModelDetailService.selectBizModelDetailList(bizModelDetail);
|
|
List<BizModelDetail> list = bizModelDetailService.selectBizModelDetailList(bizModelDetail);
|
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
@@ -58,8 +49,7 @@ public class BizModelDetailController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:export')")
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:export')")
|
|
|
@Log(title = "业务模型明细", businessType = BusinessType.EXPORT)
|
|
@Log(title = "业务模型明细", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
@PostMapping("/export")
|
|
|
- public void export(HttpServletResponse response, BizModelDetail bizModelDetail)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public void export(HttpServletResponse response, BizModelDetail bizModelDetail) {
|
|
|
List<BizModelDetail> list = bizModelDetailService.selectBizModelDetailList(bizModelDetail);
|
|
List<BizModelDetail> list = bizModelDetailService.selectBizModelDetailList(bizModelDetail);
|
|
|
ExcelUtil<BizModelDetail> util = new ExcelUtil<BizModelDetail>(BizModelDetail.class);
|
|
ExcelUtil<BizModelDetail> util = new ExcelUtil<BizModelDetail>(BizModelDetail.class);
|
|
|
util.exportExcel(response, list, "业务模型明细数据");
|
|
util.exportExcel(response, list, "业务模型明细数据");
|
|
@@ -71,8 +61,7 @@ public class BizModelDetailController extends BaseController
|
|
|
@ApiOperation("获取业务模型明细详细信息")
|
|
@ApiOperation("获取业务模型明细详细信息")
|
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:query')")
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:query')")
|
|
|
@GetMapping(value = "/{bizDetailId}")
|
|
@GetMapping(value = "/{bizDetailId}")
|
|
|
- public AjaxResult getInfo(@PathVariable("bizDetailId") Long bizDetailId)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public AjaxResult getInfo(@PathVariable("bizDetailId") Long bizDetailId) {
|
|
|
return success(bizModelDetailService.selectBizModelDetailByBizDetailId(bizDetailId));
|
|
return success(bizModelDetailService.selectBizModelDetailByBizDetailId(bizDetailId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -83,8 +72,7 @@ public class BizModelDetailController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:add')")
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:add')")
|
|
|
@Log(title = "业务模型明细", businessType = BusinessType.INSERT)
|
|
@Log(title = "业务模型明细", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
- public AjaxResult add(@RequestBody BizModelDetail bizModelDetail)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public AjaxResult add(@RequestBody BizModelDetail bizModelDetail) {
|
|
|
return toAjax(bizModelDetailService.insertBizModelDetail(bizModelDetail));
|
|
return toAjax(bizModelDetailService.insertBizModelDetail(bizModelDetail));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -95,8 +83,7 @@ public class BizModelDetailController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:edit')")
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:edit')")
|
|
|
@Log(title = "业务模型明细", businessType = BusinessType.UPDATE)
|
|
@Log(title = "业务模型明细", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
@PutMapping
|
|
|
- public AjaxResult edit(@RequestBody BizModelDetail bizModelDetail)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public AjaxResult edit(@RequestBody BizModelDetail bizModelDetail) {
|
|
|
return toAjax(bizModelDetailService.updateBizModelDetail(bizModelDetail));
|
|
return toAjax(bizModelDetailService.updateBizModelDetail(bizModelDetail));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -106,9 +93,8 @@ public class BizModelDetailController extends BaseController
|
|
|
@ApiOperation("删除业务模型明细")
|
|
@ApiOperation("删除业务模型明细")
|
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:remove')")
|
|
@PreAuthorize("@ss.hasPermi('hl:bd:remove')")
|
|
|
@Log(title = "业务模型明细", businessType = BusinessType.DELETE)
|
|
@Log(title = "业务模型明细", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("/{bizDetailIds}")
|
|
|
|
|
- public AjaxResult remove(@PathVariable Long[] bizDetailIds)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ @DeleteMapping("/{bizDetailIds}")
|
|
|
|
|
+ public AjaxResult remove(@PathVariable Long[] bizDetailIds) {
|
|
|
return toAjax(bizModelDetailService.deleteBizModelDetailByBizDetailIds(bizDetailIds));
|
|
return toAjax(bizModelDetailService.deleteBizModelDetailByBizDetailIds(bizDetailIds));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|