正在显示
44 个修改的文件
包含
4800 行增加
和
3 行删除
| @@ -26,5 +26,9 @@ | @@ -26,5 +26,9 @@ | ||
| 26 | <groupId>com.zhonglai.luhui</groupId> | 26 | <groupId>com.zhonglai.luhui</groupId> |
| 27 | <artifactId>lh-public-dao</artifactId> | 27 | <artifactId>lh-public-dao</artifactId> |
| 28 | </dependency> | 28 | </dependency> |
| 29 | + <dependency> | ||
| 30 | + <groupId>com.zhonglai.luhui</groupId> | ||
| 31 | + <artifactId>lh-domain</artifactId> | ||
| 32 | + </dependency> | ||
| 29 | </dependencies> | 33 | </dependencies> |
| 30 | </project> | 34 | </project> |
| @@ -2,6 +2,8 @@ package com.zhonglai.luhui.admin.controller; | @@ -2,6 +2,8 @@ package com.zhonglai.luhui.admin.controller; | ||
| 2 | 2 | ||
| 3 | import com.zhonglai.luhui.admin.service.LuhuiGenService; | 3 | import com.zhonglai.luhui.admin.service.LuhuiGenService; |
| 4 | import io.swagger.annotations.Api; | 4 | import io.swagger.annotations.Api; |
| 5 | +import io.swagger.annotations.ApiImplicitParam; | ||
| 6 | +import io.swagger.annotations.ApiImplicitParams; | ||
| 5 | import io.swagger.annotations.ApiOperation; | 7 | import io.swagger.annotations.ApiOperation; |
| 6 | import org.apache.commons.io.IOUtils; | 8 | import org.apache.commons.io.IOUtils; |
| 7 | import org.springframework.beans.factory.annotation.Autowired; | 9 | import org.springframework.beans.factory.annotation.Autowired; |
| @@ -25,12 +27,15 @@ public class LuhuiGenController { | @@ -25,12 +27,15 @@ public class LuhuiGenController { | ||
| 25 | /** | 27 | /** |
| 26 | * 批量生成代码 | 28 | * 批量生成代码 |
| 27 | */ | 29 | */ |
| 28 | - @PreAuthorize("@ss.hasPermi('admin:luhuiGen:code')") | ||
| 29 | @ApiOperation( "代码生成") | 30 | @ApiOperation( "代码生成") |
| 31 | + @ApiImplicitParams({ | ||
| 32 | + @ApiImplicitParam(name = "databaseName", value = "数据库名称",required = true), | ||
| 33 | + @ApiImplicitParam(name = "tableNmaes", value = "表名集合") | ||
| 34 | + }) | ||
| 30 | @GetMapping("/batchGenCode/{databaseName}") | 35 | @GetMapping("/batchGenCode/{databaseName}") |
| 31 | - public void generatorCodeFromDatabase(HttpServletResponse response, @PathVariable("databaseName") String databaseName) throws IOException | 36 | + public void generatorCodeFromDatabase(HttpServletResponse response, @PathVariable("databaseName") String databaseName,String modlePath,String tableNmaes) throws IOException |
| 32 | { | 37 | { |
| 33 | - byte[] data = luhuiGenService.generatorCodeFromDb(databaseName); | 38 | + byte[] data = luhuiGenService.generatorCodeFromDb(databaseName,modlePath,tableNmaes); |
| 34 | genCode(response, data); | 39 | genCode(response, data); |
| 35 | } | 40 | } |
| 36 | 41 |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbBoldClosingCost; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 标粗结转成本Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "标粗结转成本") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/bold_closing_cost") | ||
| 38 | +public class CbBoldClosingCostController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询标粗结转成本列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_closing_cost:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbBoldClosingCost cbBoldClosingCost) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbBoldClosingCost> list = publicTemplateService.selectTList(cbBoldClosingCost); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出标粗结转成本列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_closing_cost:export')") | ||
| 67 | + @Log(title = "标粗结转成本", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbBoldClosingCost cbBoldClosingCost) | ||
| 70 | + { | ||
| 71 | + List<CbBoldClosingCost> list = publicTemplateService.selectTList(cbBoldClosingCost); | ||
| 72 | + ExcelUtil<CbBoldClosingCost> util = new ExcelUtil<CbBoldClosingCost>(CbBoldClosingCost.class); | ||
| 73 | + util.exportExcel(response, list, "标粗结转成本数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取标粗结转成本详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_closing_cost:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbBoldClosingCost.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增标粗结转成本") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_closing_cost:add')") | ||
| 88 | + @Log(title = "标粗结转成本", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbBoldClosingCost cbBoldClosingCost) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbBoldClosingCost)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改标粗结转成本") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_closing_cost:edit')") | ||
| 98 | + @Log(title = "标粗结转成本", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbBoldClosingCost cbBoldClosingCost) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbBoldClosingCost))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除标粗结转成本") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_closing_cost:remove')") | ||
| 108 | + @Log(title = "标粗结转成本", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbBoldClosingCost.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbBoldDynamicCost; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 标粗动态成本Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "标粗动态成本") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/bold_dynamic_cost") | ||
| 38 | +public class CbBoldDynamicCostController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询标粗动态成本列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_dynamic_cost:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbBoldDynamicCost cbBoldDynamicCost) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbBoldDynamicCost> list = publicTemplateService.selectTList(cbBoldDynamicCost); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出标粗动态成本列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_dynamic_cost:export')") | ||
| 67 | + @Log(title = "标粗动态成本", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbBoldDynamicCost cbBoldDynamicCost) | ||
| 70 | + { | ||
| 71 | + List<CbBoldDynamicCost> list = publicTemplateService.selectTList(cbBoldDynamicCost); | ||
| 72 | + ExcelUtil<CbBoldDynamicCost> util = new ExcelUtil<CbBoldDynamicCost>(CbBoldDynamicCost.class); | ||
| 73 | + util.exportExcel(response, list, "标粗动态成本数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取标粗动态成本详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_dynamic_cost:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbBoldDynamicCost.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增标粗动态成本") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_dynamic_cost:add')") | ||
| 88 | + @Log(title = "标粗动态成本", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbBoldDynamicCost cbBoldDynamicCost) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbBoldDynamicCost)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改标粗动态成本") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_dynamic_cost:edit')") | ||
| 98 | + @Log(title = "标粗动态成本", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbBoldDynamicCost cbBoldDynamicCost) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbBoldDynamicCost))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除标粗动态成本") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:bold_dynamic_cost:remove')") | ||
| 108 | + @Log(title = "标粗动态成本", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbBoldDynamicCost.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbDevelopmentDynamicCost; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 养成动态成本Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "养成动态成本") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/development_dynamic_cost") | ||
| 38 | +public class CbDevelopmentDynamicCostController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询养成动态成本列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_dynamic_cost:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbDevelopmentDynamicCost cbDevelopmentDynamicCost) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbDevelopmentDynamicCost> list = publicTemplateService.selectTList(cbDevelopmentDynamicCost); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出养成动态成本列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_dynamic_cost:export')") | ||
| 67 | + @Log(title = "养成动态成本", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbDevelopmentDynamicCost cbDevelopmentDynamicCost) | ||
| 70 | + { | ||
| 71 | + List<CbDevelopmentDynamicCost> list = publicTemplateService.selectTList(cbDevelopmentDynamicCost); | ||
| 72 | + ExcelUtil<CbDevelopmentDynamicCost> util = new ExcelUtil<CbDevelopmentDynamicCost>(CbDevelopmentDynamicCost.class); | ||
| 73 | + util.exportExcel(response, list, "养成动态成本数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取养成动态成本详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_dynamic_cost:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbDevelopmentDynamicCost.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增养成动态成本") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_dynamic_cost:add')") | ||
| 88 | + @Log(title = "养成动态成本", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbDevelopmentDynamicCost cbDevelopmentDynamicCost) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbDevelopmentDynamicCost)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改养成动态成本") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_dynamic_cost:edit')") | ||
| 98 | + @Log(title = "养成动态成本", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbDevelopmentDynamicCost cbDevelopmentDynamicCost) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbDevelopmentDynamicCost))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除养成动态成本") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_dynamic_cost:remove')") | ||
| 108 | + @Log(title = "养成动态成本", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbDevelopmentDynamicCost.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbDevelopmentStockCostStatistics; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 养成存塘成本统计Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "养成存塘成本统计") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/development_stock_cost_statistics") | ||
| 38 | +public class CbDevelopmentStockCostStatisticsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询养成存塘成本统计列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_stock_cost_statistics:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbDevelopmentStockCostStatistics cbDevelopmentStockCostStatistics) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbDevelopmentStockCostStatistics> list = publicTemplateService.selectTList(cbDevelopmentStockCostStatistics); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出养成存塘成本统计列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_stock_cost_statistics:export')") | ||
| 67 | + @Log(title = "养成存塘成本统计", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbDevelopmentStockCostStatistics cbDevelopmentStockCostStatistics) | ||
| 70 | + { | ||
| 71 | + List<CbDevelopmentStockCostStatistics> list = publicTemplateService.selectTList(cbDevelopmentStockCostStatistics); | ||
| 72 | + ExcelUtil<CbDevelopmentStockCostStatistics> util = new ExcelUtil<CbDevelopmentStockCostStatistics>(CbDevelopmentStockCostStatistics.class); | ||
| 73 | + util.exportExcel(response, list, "养成存塘成本统计数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取养成存塘成本统计详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_stock_cost_statistics:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbDevelopmentStockCostStatistics.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增养成存塘成本统计") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_stock_cost_statistics:add')") | ||
| 88 | + @Log(title = "养成存塘成本统计", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbDevelopmentStockCostStatistics cbDevelopmentStockCostStatistics) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbDevelopmentStockCostStatistics)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改养成存塘成本统计") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_stock_cost_statistics:edit')") | ||
| 98 | + @Log(title = "养成存塘成本统计", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbDevelopmentStockCostStatistics cbDevelopmentStockCostStatistics) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbDevelopmentStockCostStatistics))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除养成存塘成本统计") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:development_stock_cost_statistics:remove')") | ||
| 108 | + @Log(title = "养成存塘成本统计", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbDevelopmentStockCostStatistics.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbFishCostAndPriceQuery; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 斤鱼成本与售价查询Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "斤鱼成本与售价查询") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/fish_cost_and_price_query") | ||
| 38 | +public class CbFishCostAndPriceQueryController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询斤鱼成本与售价查询列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:fish_cost_and_price_query:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbFishCostAndPriceQuery cbFishCostAndPriceQuery) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbFishCostAndPriceQuery> list = publicTemplateService.selectTList(cbFishCostAndPriceQuery); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出斤鱼成本与售价查询列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:fish_cost_and_price_query:export')") | ||
| 67 | + @Log(title = "斤鱼成本与售价查询", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbFishCostAndPriceQuery cbFishCostAndPriceQuery) | ||
| 70 | + { | ||
| 71 | + List<CbFishCostAndPriceQuery> list = publicTemplateService.selectTList(cbFishCostAndPriceQuery); | ||
| 72 | + ExcelUtil<CbFishCostAndPriceQuery> util = new ExcelUtil<CbFishCostAndPriceQuery>(CbFishCostAndPriceQuery.class); | ||
| 73 | + util.exportExcel(response, list, "斤鱼成本与售价查询数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取斤鱼成本与售价查询详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:fish_cost_and_price_query:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbFishCostAndPriceQuery.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增斤鱼成本与售价查询") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:fish_cost_and_price_query:add')") | ||
| 88 | + @Log(title = "斤鱼成本与售价查询", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbFishCostAndPriceQuery cbFishCostAndPriceQuery) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbFishCostAndPriceQuery)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改斤鱼成本与售价查询") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:fish_cost_and_price_query:edit')") | ||
| 98 | + @Log(title = "斤鱼成本与售价查询", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbFishCostAndPriceQuery cbFishCostAndPriceQuery) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbFishCostAndPriceQuery))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除斤鱼成本与售价查询") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:fish_cost_and_price_query:remove')") | ||
| 108 | + @Log(title = "斤鱼成本与售价查询", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbFishCostAndPriceQuery.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbGrowthClosingCostStatistics; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 养成结转成本统计Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "养成结转成本统计") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/growth_closing_cost_statistics") | ||
| 38 | +public class CbGrowthClosingCostStatisticsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询养成结转成本统计列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:growth_closing_cost_statistics:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbGrowthClosingCostStatistics cbGrowthClosingCostStatistics) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbGrowthClosingCostStatistics> list = publicTemplateService.selectTList(cbGrowthClosingCostStatistics); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出养成结转成本统计列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:growth_closing_cost_statistics:export')") | ||
| 67 | + @Log(title = "养成结转成本统计", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbGrowthClosingCostStatistics cbGrowthClosingCostStatistics) | ||
| 70 | + { | ||
| 71 | + List<CbGrowthClosingCostStatistics> list = publicTemplateService.selectTList(cbGrowthClosingCostStatistics); | ||
| 72 | + ExcelUtil<CbGrowthClosingCostStatistics> util = new ExcelUtil<CbGrowthClosingCostStatistics>(CbGrowthClosingCostStatistics.class); | ||
| 73 | + util.exportExcel(response, list, "养成结转成本统计数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取养成结转成本统计详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:growth_closing_cost_statistics:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbGrowthClosingCostStatistics.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增养成结转成本统计") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:growth_closing_cost_statistics:add')") | ||
| 88 | + @Log(title = "养成结转成本统计", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbGrowthClosingCostStatistics cbGrowthClosingCostStatistics) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbGrowthClosingCostStatistics)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改养成结转成本统计") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:growth_closing_cost_statistics:edit')") | ||
| 98 | + @Log(title = "养成结转成本统计", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbGrowthClosingCostStatistics cbGrowthClosingCostStatistics) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbGrowthClosingCostStatistics))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除养成结转成本统计") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:growth_closing_cost_statistics:remove')") | ||
| 108 | + @Log(title = "养成结转成本统计", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbGrowthClosingCostStatistics.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbMonthlyRaisingCostSummary; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 养成成本月度汇总余额Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "养成成本月度汇总余额") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/monthly_raising_cost_summary") | ||
| 38 | +public class CbMonthlyRaisingCostSummaryController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询养成成本月度汇总余额列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_raising_cost_summary:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbMonthlyRaisingCostSummary cbMonthlyRaisingCostSummary) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbMonthlyRaisingCostSummary> list = publicTemplateService.selectTList(cbMonthlyRaisingCostSummary); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出养成成本月度汇总余额列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_raising_cost_summary:export')") | ||
| 67 | + @Log(title = "养成成本月度汇总余额", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbMonthlyRaisingCostSummary cbMonthlyRaisingCostSummary) | ||
| 70 | + { | ||
| 71 | + List<CbMonthlyRaisingCostSummary> list = publicTemplateService.selectTList(cbMonthlyRaisingCostSummary); | ||
| 72 | + ExcelUtil<CbMonthlyRaisingCostSummary> util = new ExcelUtil<CbMonthlyRaisingCostSummary>(CbMonthlyRaisingCostSummary.class); | ||
| 73 | + util.exportExcel(response, list, "养成成本月度汇总余额数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取养成成本月度汇总余额详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_raising_cost_summary:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbMonthlyRaisingCostSummary.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增养成成本月度汇总余额") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_raising_cost_summary:add')") | ||
| 88 | + @Log(title = "养成成本月度汇总余额", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbMonthlyRaisingCostSummary cbMonthlyRaisingCostSummary) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbMonthlyRaisingCostSummary)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改养成成本月度汇总余额") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_raising_cost_summary:edit')") | ||
| 98 | + @Log(title = "养成成本月度汇总余额", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbMonthlyRaisingCostSummary cbMonthlyRaisingCostSummary) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbMonthlyRaisingCostSummary))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除养成成本月度汇总余额") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_raising_cost_summary:remove')") | ||
| 108 | + @Log(title = "养成成本月度汇总余额", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbMonthlyRaisingCostSummary.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbMonthlySeedlingCostSummary; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 育苗成本月度汇总余额Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "育苗成本月度汇总余额") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/monthly_seedling_cost_summary") | ||
| 38 | +public class CbMonthlySeedlingCostSummaryController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询育苗成本月度汇总余额列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_seedling_cost_summary:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbMonthlySeedlingCostSummary cbMonthlySeedlingCostSummary) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbMonthlySeedlingCostSummary> list = publicTemplateService.selectTList(cbMonthlySeedlingCostSummary); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出育苗成本月度汇总余额列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_seedling_cost_summary:export')") | ||
| 67 | + @Log(title = "育苗成本月度汇总余额", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbMonthlySeedlingCostSummary cbMonthlySeedlingCostSummary) | ||
| 70 | + { | ||
| 71 | + List<CbMonthlySeedlingCostSummary> list = publicTemplateService.selectTList(cbMonthlySeedlingCostSummary); | ||
| 72 | + ExcelUtil<CbMonthlySeedlingCostSummary> util = new ExcelUtil<CbMonthlySeedlingCostSummary>(CbMonthlySeedlingCostSummary.class); | ||
| 73 | + util.exportExcel(response, list, "育苗成本月度汇总余额数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取育苗成本月度汇总余额详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_seedling_cost_summary:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbMonthlySeedlingCostSummary.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增育苗成本月度汇总余额") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_seedling_cost_summary:add')") | ||
| 88 | + @Log(title = "育苗成本月度汇总余额", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbMonthlySeedlingCostSummary cbMonthlySeedlingCostSummary) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbMonthlySeedlingCostSummary)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改育苗成本月度汇总余额") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_seedling_cost_summary:edit')") | ||
| 98 | + @Log(title = "育苗成本月度汇总余额", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbMonthlySeedlingCostSummary cbMonthlySeedlingCostSummary) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbMonthlySeedlingCostSummary))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除育苗成本月度汇总余额") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:monthly_seedling_cost_summary:remove')") | ||
| 108 | + @Log(title = "育苗成本月度汇总余额", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbMonthlySeedlingCostSummary.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbNurseryClosingCostStatistics; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 育苗结转成本统计Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "育苗结转成本统计") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/nursery_closing_cost_statistics") | ||
| 38 | +public class CbNurseryClosingCostStatisticsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询育苗结转成本统计列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_closing_cost_statistics:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbNurseryClosingCostStatistics cbNurseryClosingCostStatistics) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbNurseryClosingCostStatistics> list = publicTemplateService.selectTList(cbNurseryClosingCostStatistics); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出育苗结转成本统计列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_closing_cost_statistics:export')") | ||
| 67 | + @Log(title = "育苗结转成本统计", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbNurseryClosingCostStatistics cbNurseryClosingCostStatistics) | ||
| 70 | + { | ||
| 71 | + List<CbNurseryClosingCostStatistics> list = publicTemplateService.selectTList(cbNurseryClosingCostStatistics); | ||
| 72 | + ExcelUtil<CbNurseryClosingCostStatistics> util = new ExcelUtil<CbNurseryClosingCostStatistics>(CbNurseryClosingCostStatistics.class); | ||
| 73 | + util.exportExcel(response, list, "育苗结转成本统计数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取育苗结转成本统计详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_closing_cost_statistics:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbNurseryClosingCostStatistics.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增育苗结转成本统计") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_closing_cost_statistics:add')") | ||
| 88 | + @Log(title = "育苗结转成本统计", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbNurseryClosingCostStatistics cbNurseryClosingCostStatistics) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbNurseryClosingCostStatistics)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改育苗结转成本统计") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_closing_cost_statistics:edit')") | ||
| 98 | + @Log(title = "育苗结转成本统计", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbNurseryClosingCostStatistics cbNurseryClosingCostStatistics) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbNurseryClosingCostStatistics))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除育苗结转成本统计") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_closing_cost_statistics:remove')") | ||
| 108 | + @Log(title = "育苗结转成本统计", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbNurseryClosingCostStatistics.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbNurseryStockCostStatistics; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 育苗存塘成本统计Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "育苗存塘成本统计") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/nursery_stock_cost_statistics") | ||
| 38 | +public class CbNurseryStockCostStatisticsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询育苗存塘成本统计列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_stock_cost_statistics:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbNurseryStockCostStatistics cbNurseryStockCostStatistics) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbNurseryStockCostStatistics> list = publicTemplateService.selectTList(cbNurseryStockCostStatistics); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出育苗存塘成本统计列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_stock_cost_statistics:export')") | ||
| 67 | + @Log(title = "育苗存塘成本统计", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbNurseryStockCostStatistics cbNurseryStockCostStatistics) | ||
| 70 | + { | ||
| 71 | + List<CbNurseryStockCostStatistics> list = publicTemplateService.selectTList(cbNurseryStockCostStatistics); | ||
| 72 | + ExcelUtil<CbNurseryStockCostStatistics> util = new ExcelUtil<CbNurseryStockCostStatistics>(CbNurseryStockCostStatistics.class); | ||
| 73 | + util.exportExcel(response, list, "育苗存塘成本统计数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取育苗存塘成本统计详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_stock_cost_statistics:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbNurseryStockCostStatistics.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增育苗存塘成本统计") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_stock_cost_statistics:add')") | ||
| 88 | + @Log(title = "育苗存塘成本统计", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbNurseryStockCostStatistics cbNurseryStockCostStatistics) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbNurseryStockCostStatistics)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改育苗存塘成本统计") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_stock_cost_statistics:edit')") | ||
| 98 | + @Log(title = "育苗存塘成本统计", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbNurseryStockCostStatistics cbNurseryStockCostStatistics) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbNurseryStockCostStatistics))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除育苗存塘成本统计") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:nursery_stock_cost_statistics:remove')") | ||
| 108 | + @Log(title = "育苗存塘成本统计", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbNurseryStockCostStatistics.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbRearingCostDetails; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 养成成本统计明细Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "养成成本统计明细") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/rearing_cost_details") | ||
| 38 | +public class CbRearingCostDetailsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询养成成本统计明细列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:rearing_cost_details:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbRearingCostDetails cbRearingCostDetails) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbRearingCostDetails> list = publicTemplateService.selectTList(cbRearingCostDetails); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出养成成本统计明细列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:rearing_cost_details:export')") | ||
| 67 | + @Log(title = "养成成本统计明细", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbRearingCostDetails cbRearingCostDetails) | ||
| 70 | + { | ||
| 71 | + List<CbRearingCostDetails> list = publicTemplateService.selectTList(cbRearingCostDetails); | ||
| 72 | + ExcelUtil<CbRearingCostDetails> util = new ExcelUtil<CbRearingCostDetails>(CbRearingCostDetails.class); | ||
| 73 | + util.exportExcel(response, list, "养成成本统计明细数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取养成成本统计明细详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:rearing_cost_details:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbRearingCostDetails.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增养成成本统计明细") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:rearing_cost_details:add')") | ||
| 88 | + @Log(title = "养成成本统计明细", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbRearingCostDetails cbRearingCostDetails) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbRearingCostDetails)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改养成成本统计明细") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:rearing_cost_details:edit')") | ||
| 98 | + @Log(title = "养成成本统计明细", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbRearingCostDetails cbRearingCostDetails) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbRearingCostDetails))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除养成成本统计明细") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:rearing_cost_details:remove')") | ||
| 108 | + @Log(title = "养成成本统计明细", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbRearingCostDetails.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cb.CbSeedlingCostDetails; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 育苗成本统计明细Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "育苗成本统计明细") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cb/seedling_cost_details") | ||
| 38 | +public class CbSeedlingCostDetailsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询育苗成本统计明细列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cb:seedling_cost_details:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CbSeedlingCostDetails cbSeedlingCostDetails) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CbSeedlingCostDetails> list = publicTemplateService.selectTList(cbSeedlingCostDetails); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出育苗成本统计明细列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cb:seedling_cost_details:export')") | ||
| 67 | + @Log(title = "育苗成本统计明细", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CbSeedlingCostDetails cbSeedlingCostDetails) | ||
| 70 | + { | ||
| 71 | + List<CbSeedlingCostDetails> list = publicTemplateService.selectTList(cbSeedlingCostDetails); | ||
| 72 | + ExcelUtil<CbSeedlingCostDetails> util = new ExcelUtil<CbSeedlingCostDetails>(CbSeedlingCostDetails.class); | ||
| 73 | + util.exportExcel(response, list, "育苗成本统计明细数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取育苗成本统计明细详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cb:seedling_cost_details:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CbSeedlingCostDetails.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增育苗成本统计明细") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cb:seedling_cost_details:add')") | ||
| 88 | + @Log(title = "育苗成本统计明细", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CbSeedlingCostDetails cbSeedlingCostDetails) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cbSeedlingCostDetails)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改育苗成本统计明细") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cb:seedling_cost_details:edit')") | ||
| 98 | + @Log(title = "育苗成本统计明细", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CbSeedlingCostDetails cbSeedlingCostDetails) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cbSeedlingCostDetails))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除育苗成本统计明细") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cb:seedling_cost_details:remove')") | ||
| 108 | + @Log(title = "育苗成本统计明细", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CbSeedlingCostDetails.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cj; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cj.CjSamplingRecords; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 采样记录Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "采样记录") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cj/sampling_records") | ||
| 38 | +public class CjSamplingRecordsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询采样记录列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cj:sampling_records:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CjSamplingRecords cjSamplingRecords) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CjSamplingRecords> list = publicTemplateService.selectTList(cjSamplingRecords); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出采样记录列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cj:sampling_records:export')") | ||
| 67 | + @Log(title = "采样记录", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CjSamplingRecords cjSamplingRecords) | ||
| 70 | + { | ||
| 71 | + List<CjSamplingRecords> list = publicTemplateService.selectTList(cjSamplingRecords); | ||
| 72 | + ExcelUtil<CjSamplingRecords> util = new ExcelUtil<CjSamplingRecords>(CjSamplingRecords.class); | ||
| 73 | + util.exportExcel(response, list, "采样记录数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取采样记录详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cj:sampling_records:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CjSamplingRecords.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增采样记录") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cj:sampling_records:add')") | ||
| 88 | + @Log(title = "采样记录", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CjSamplingRecords cjSamplingRecords) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cjSamplingRecords)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改采样记录") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cj:sampling_records:edit')") | ||
| 98 | + @Log(title = "采样记录", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CjSamplingRecords cjSamplingRecords) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cjSamplingRecords))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除采样记录") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cj:sampling_records:remove')") | ||
| 108 | + @Log(title = "采样记录", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CjSamplingRecords.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cj; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cj.CjStockPondSamplingAnalysis; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 存塘抽样指标分析Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "存塘抽样指标分析") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cj/stock_pond_sampling_analysis") | ||
| 38 | +public class CjStockPondSamplingAnalysisController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询存塘抽样指标分析列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cj:stock_pond_sampling_analysis:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(CjStockPondSamplingAnalysis cjStockPondSamplingAnalysis) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<CjStockPondSamplingAnalysis> list = publicTemplateService.selectTList(cjStockPondSamplingAnalysis); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出存塘抽样指标分析列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cj:stock_pond_sampling_analysis:export')") | ||
| 67 | + @Log(title = "存塘抽样指标分析", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, CjStockPondSamplingAnalysis cjStockPondSamplingAnalysis) | ||
| 70 | + { | ||
| 71 | + List<CjStockPondSamplingAnalysis> list = publicTemplateService.selectTList(cjStockPondSamplingAnalysis); | ||
| 72 | + ExcelUtil<CjStockPondSamplingAnalysis> util = new ExcelUtil<CjStockPondSamplingAnalysis>(CjStockPondSamplingAnalysis.class); | ||
| 73 | + util.exportExcel(response, list, "存塘抽样指标分析数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取存塘抽样指标分析详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cj:stock_pond_sampling_analysis:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, CjStockPondSamplingAnalysis.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增存塘抽样指标分析") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cj:stock_pond_sampling_analysis:add')") | ||
| 88 | + @Log(title = "存塘抽样指标分析", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody CjStockPondSamplingAnalysis cjStockPondSamplingAnalysis) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(cjStockPondSamplingAnalysis)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改存塘抽样指标分析") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cj:stock_pond_sampling_analysis:edit')") | ||
| 98 | + @Log(title = "存塘抽样指标分析", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody CjStockPondSamplingAnalysis cjStockPondSamplingAnalysis) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((cjStockPondSamplingAnalysis))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除存塘抽样指标分析") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cj:stock_pond_sampling_analysis:remove')") | ||
| 108 | + @Log(title = "存塘抽样指标分析", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(CjStockPondSamplingAnalysis.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cl; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cl.ClAreaFeeding; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 区域投喂Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "区域投喂") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cl/area_feeding") | ||
| 38 | +public class ClAreaFeedingController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询区域投喂列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cl:area_feeding:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(ClAreaFeeding clAreaFeeding) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<ClAreaFeeding> list = publicTemplateService.selectTList(clAreaFeeding); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出区域投喂列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cl:area_feeding:export')") | ||
| 67 | + @Log(title = "区域投喂", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, ClAreaFeeding clAreaFeeding) | ||
| 70 | + { | ||
| 71 | + List<ClAreaFeeding> list = publicTemplateService.selectTList(clAreaFeeding); | ||
| 72 | + ExcelUtil<ClAreaFeeding> util = new ExcelUtil<ClAreaFeeding>(ClAreaFeeding.class); | ||
| 73 | + util.exportExcel(response, list, "区域投喂数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取区域投喂详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cl:area_feeding:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, ClAreaFeeding.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增区域投喂") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cl:area_feeding:add')") | ||
| 88 | + @Log(title = "区域投喂", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody ClAreaFeeding clAreaFeeding) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(clAreaFeeding)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改区域投喂") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cl:area_feeding:edit')") | ||
| 98 | + @Log(title = "区域投喂", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody ClAreaFeeding clAreaFeeding) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((clAreaFeeding))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除区域投喂") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cl:area_feeding:remove')") | ||
| 108 | + @Log(title = "区域投喂", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(ClAreaFeeding.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cl; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cl.ClFeedAllocation; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 饲料调拨Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "饲料调拨") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cl/feed_allocation") | ||
| 38 | +public class ClFeedAllocationController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询饲料调拨列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_allocation:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(ClFeedAllocation clFeedAllocation) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<ClFeedAllocation> list = publicTemplateService.selectTList(clFeedAllocation); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出饲料调拨列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_allocation:export')") | ||
| 67 | + @Log(title = "饲料调拨", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, ClFeedAllocation clFeedAllocation) | ||
| 70 | + { | ||
| 71 | + List<ClFeedAllocation> list = publicTemplateService.selectTList(clFeedAllocation); | ||
| 72 | + ExcelUtil<ClFeedAllocation> util = new ExcelUtil<ClFeedAllocation>(ClFeedAllocation.class); | ||
| 73 | + util.exportExcel(response, list, "饲料调拨数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取饲料调拨详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_allocation:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, ClFeedAllocation.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增饲料调拨") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_allocation:add')") | ||
| 88 | + @Log(title = "饲料调拨", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody ClFeedAllocation clFeedAllocation) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(clFeedAllocation)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改饲料调拨") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_allocation:edit')") | ||
| 98 | + @Log(title = "饲料调拨", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody ClFeedAllocation clFeedAllocation) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((clFeedAllocation))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除饲料调拨") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_allocation:remove')") | ||
| 108 | + @Log(title = "饲料调拨", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(ClFeedAllocation.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cl; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cl.ClFeedBeginningBalance; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 饲料期初Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "饲料期初") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cl/feed_beginning_balance") | ||
| 38 | +public class ClFeedBeginningBalanceController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询饲料期初列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_beginning_balance:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(ClFeedBeginningBalance clFeedBeginningBalance) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<ClFeedBeginningBalance> list = publicTemplateService.selectTList(clFeedBeginningBalance); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出饲料期初列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_beginning_balance:export')") | ||
| 67 | + @Log(title = "饲料期初", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, ClFeedBeginningBalance clFeedBeginningBalance) | ||
| 70 | + { | ||
| 71 | + List<ClFeedBeginningBalance> list = publicTemplateService.selectTList(clFeedBeginningBalance); | ||
| 72 | + ExcelUtil<ClFeedBeginningBalance> util = new ExcelUtil<ClFeedBeginningBalance>(ClFeedBeginningBalance.class); | ||
| 73 | + util.exportExcel(response, list, "饲料期初数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取饲料期初详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_beginning_balance:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, ClFeedBeginningBalance.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增饲料期初") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_beginning_balance:add')") | ||
| 88 | + @Log(title = "饲料期初", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody ClFeedBeginningBalance clFeedBeginningBalance) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(clFeedBeginningBalance)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改饲料期初") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_beginning_balance:edit')") | ||
| 98 | + @Log(title = "饲料期初", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody ClFeedBeginningBalance clFeedBeginningBalance) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((clFeedBeginningBalance))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除饲料期初") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_beginning_balance:remove')") | ||
| 108 | + @Log(title = "饲料期初", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(ClFeedBeginningBalance.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
lh-modules/lh-admin/src/main/java/com/zhonglai/luhui/admin/controller/cl/ClFeedBorrowController.java
0 → 100644
| 1 | +package com.zhonglai.luhui.admin.controller.cl; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cl.ClFeedBorrow; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 饲料借调Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "饲料借调") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cl/feed_borrow") | ||
| 38 | +public class ClFeedBorrowController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询饲料借调列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_borrow:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(ClFeedBorrow clFeedBorrow) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<ClFeedBorrow> list = publicTemplateService.selectTList(clFeedBorrow); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出饲料借调列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_borrow:export')") | ||
| 67 | + @Log(title = "饲料借调", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, ClFeedBorrow clFeedBorrow) | ||
| 70 | + { | ||
| 71 | + List<ClFeedBorrow> list = publicTemplateService.selectTList(clFeedBorrow); | ||
| 72 | + ExcelUtil<ClFeedBorrow> util = new ExcelUtil<ClFeedBorrow>(ClFeedBorrow.class); | ||
| 73 | + util.exportExcel(response, list, "饲料借调数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取饲料借调详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_borrow:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, ClFeedBorrow.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增饲料借调") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_borrow:add')") | ||
| 88 | + @Log(title = "饲料借调", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody ClFeedBorrow clFeedBorrow) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(clFeedBorrow)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改饲料借调") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_borrow:edit')") | ||
| 98 | + @Log(title = "饲料借调", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody ClFeedBorrow clFeedBorrow) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((clFeedBorrow))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除饲料借调") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_borrow:remove')") | ||
| 108 | + @Log(title = "饲料借调", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(ClFeedBorrow.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
lh-modules/lh-admin/src/main/java/com/zhonglai/luhui/admin/controller/cl/ClFeedInfoController.java
0 → 100644
| 1 | +package com.zhonglai.luhui.admin.controller.cl; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cl.ClFeedInfo; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 饲料信息Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "饲料信息") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cl/feed_info") | ||
| 38 | +public class ClFeedInfoController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询饲料信息列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_info:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(ClFeedInfo clFeedInfo) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<ClFeedInfo> list = publicTemplateService.selectTList(clFeedInfo); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出饲料信息列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_info:export')") | ||
| 67 | + @Log(title = "饲料信息", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, ClFeedInfo clFeedInfo) | ||
| 70 | + { | ||
| 71 | + List<ClFeedInfo> list = publicTemplateService.selectTList(clFeedInfo); | ||
| 72 | + ExcelUtil<ClFeedInfo> util = new ExcelUtil<ClFeedInfo>(ClFeedInfo.class); | ||
| 73 | + util.exportExcel(response, list, "饲料信息数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取饲料信息详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_info:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, ClFeedInfo.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增饲料信息") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_info:add')") | ||
| 88 | + @Log(title = "饲料信息", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody ClFeedInfo clFeedInfo) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(clFeedInfo)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改饲料信息") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_info:edit')") | ||
| 98 | + @Log(title = "饲料信息", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody ClFeedInfo clFeedInfo) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((clFeedInfo))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除饲料信息") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_info:remove')") | ||
| 108 | + @Log(title = "饲料信息", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(ClFeedInfo.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cl; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cl.ClFeedInventory; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 饲料盘点Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "饲料盘点") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cl/feed_inventory") | ||
| 38 | +public class ClFeedInventoryController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询饲料盘点列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_inventory:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(ClFeedInventory clFeedInventory) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<ClFeedInventory> list = publicTemplateService.selectTList(clFeedInventory); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出饲料盘点列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_inventory:export')") | ||
| 67 | + @Log(title = "饲料盘点", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, ClFeedInventory clFeedInventory) | ||
| 70 | + { | ||
| 71 | + List<ClFeedInventory> list = publicTemplateService.selectTList(clFeedInventory); | ||
| 72 | + ExcelUtil<ClFeedInventory> util = new ExcelUtil<ClFeedInventory>(ClFeedInventory.class); | ||
| 73 | + util.exportExcel(response, list, "饲料盘点数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取饲料盘点详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_inventory:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, ClFeedInventory.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增饲料盘点") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_inventory:add')") | ||
| 88 | + @Log(title = "饲料盘点", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody ClFeedInventory clFeedInventory) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(clFeedInventory)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改饲料盘点") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_inventory:edit')") | ||
| 98 | + @Log(title = "饲料盘点", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody ClFeedInventory clFeedInventory) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((clFeedInventory))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除饲料盘点") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_inventory:remove')") | ||
| 108 | + @Log(title = "饲料盘点", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(ClFeedInventory.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
lh-modules/lh-admin/src/main/java/com/zhonglai/luhui/admin/controller/cl/ClFeedPriceController.java
0 → 100644
| 1 | +package com.zhonglai.luhui.admin.controller.cl; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cl.ClFeedPrice; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 饲料价格Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "饲料价格") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cl/feed_price") | ||
| 38 | +public class ClFeedPriceController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询饲料价格列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_price:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(ClFeedPrice clFeedPrice) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<ClFeedPrice> list = publicTemplateService.selectTList(clFeedPrice); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出饲料价格列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_price:export')") | ||
| 67 | + @Log(title = "饲料价格", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, ClFeedPrice clFeedPrice) | ||
| 70 | + { | ||
| 71 | + List<ClFeedPrice> list = publicTemplateService.selectTList(clFeedPrice); | ||
| 72 | + ExcelUtil<ClFeedPrice> util = new ExcelUtil<ClFeedPrice>(ClFeedPrice.class); | ||
| 73 | + util.exportExcel(response, list, "饲料价格数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取饲料价格详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_price:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, ClFeedPrice.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增饲料价格") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_price:add')") | ||
| 88 | + @Log(title = "饲料价格", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody ClFeedPrice clFeedPrice) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(clFeedPrice)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改饲料价格") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_price:edit')") | ||
| 98 | + @Log(title = "饲料价格", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody ClFeedPrice clFeedPrice) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((clFeedPrice))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除饲料价格") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_price:remove')") | ||
| 108 | + @Log(title = "饲料价格", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(ClFeedPrice.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cl; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cl.ClFeedPurchaseRequisition; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 饲料申购Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "饲料申购") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cl/feed_purchase_requisition") | ||
| 38 | +public class ClFeedPurchaseRequisitionController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询饲料申购列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_purchase_requisition:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(ClFeedPurchaseRequisition clFeedPurchaseRequisition) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<ClFeedPurchaseRequisition> list = publicTemplateService.selectTList(clFeedPurchaseRequisition); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出饲料申购列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_purchase_requisition:export')") | ||
| 67 | + @Log(title = "饲料申购", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, ClFeedPurchaseRequisition clFeedPurchaseRequisition) | ||
| 70 | + { | ||
| 71 | + List<ClFeedPurchaseRequisition> list = publicTemplateService.selectTList(clFeedPurchaseRequisition); | ||
| 72 | + ExcelUtil<ClFeedPurchaseRequisition> util = new ExcelUtil<ClFeedPurchaseRequisition>(ClFeedPurchaseRequisition.class); | ||
| 73 | + util.exportExcel(response, list, "饲料申购数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取饲料申购详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_purchase_requisition:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, ClFeedPurchaseRequisition.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增饲料申购") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_purchase_requisition:add')") | ||
| 88 | + @Log(title = "饲料申购", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody ClFeedPurchaseRequisition clFeedPurchaseRequisition) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(clFeedPurchaseRequisition)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改饲料申购") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_purchase_requisition:edit')") | ||
| 98 | + @Log(title = "饲料申购", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody ClFeedPurchaseRequisition clFeedPurchaseRequisition) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((clFeedPurchaseRequisition))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除饲料申购") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_purchase_requisition:remove')") | ||
| 108 | + @Log(title = "饲料申购", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(ClFeedPurchaseRequisition.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.cl; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.cl.ClFeedStockIn; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 饲料入库Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "饲料入库") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/cl/feed_stock_in") | ||
| 38 | +public class ClFeedStockInController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询饲料入库列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_stock_in:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(ClFeedStockIn clFeedStockIn) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<ClFeedStockIn> list = publicTemplateService.selectTList(clFeedStockIn); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出饲料入库列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_stock_in:export')") | ||
| 67 | + @Log(title = "饲料入库", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, ClFeedStockIn clFeedStockIn) | ||
| 70 | + { | ||
| 71 | + List<ClFeedStockIn> list = publicTemplateService.selectTList(clFeedStockIn); | ||
| 72 | + ExcelUtil<ClFeedStockIn> util = new ExcelUtil<ClFeedStockIn>(ClFeedStockIn.class); | ||
| 73 | + util.exportExcel(response, list, "饲料入库数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取饲料入库详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_stock_in:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, ClFeedStockIn.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增饲料入库") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_stock_in:add')") | ||
| 88 | + @Log(title = "饲料入库", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody ClFeedStockIn clFeedStockIn) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(clFeedStockIn)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改饲料入库") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_stock_in:edit')") | ||
| 98 | + @Log(title = "饲料入库", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody ClFeedStockIn clFeedStockIn) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((clFeedStockIn))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除饲料入库") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:cl:feed_stock_in:remove')") | ||
| 108 | + @Log(title = "饲料入库", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(ClFeedStockIn.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionAllocation; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保调拨Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保调拨") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_allocation") | ||
| 38 | +public class DbAnimalProtectionAllocationController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保调拨列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_allocation:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionAllocation dbAnimalProtectionAllocation) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionAllocation> list = publicTemplateService.selectTList(dbAnimalProtectionAllocation); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保调拨列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_allocation:export')") | ||
| 67 | + @Log(title = "动保调拨", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionAllocation dbAnimalProtectionAllocation) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionAllocation> list = publicTemplateService.selectTList(dbAnimalProtectionAllocation); | ||
| 72 | + ExcelUtil<DbAnimalProtectionAllocation> util = new ExcelUtil<DbAnimalProtectionAllocation>(DbAnimalProtectionAllocation.class); | ||
| 73 | + util.exportExcel(response, list, "动保调拨数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保调拨详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_allocation:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionAllocation.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保调拨") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_allocation:add')") | ||
| 88 | + @Log(title = "动保调拨", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionAllocation dbAnimalProtectionAllocation) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionAllocation)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保调拨") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_allocation:edit')") | ||
| 98 | + @Log(title = "动保调拨", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionAllocation dbAnimalProtectionAllocation) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionAllocation))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保调拨") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_allocation:remove')") | ||
| 108 | + @Log(title = "动保调拨", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionAllocation.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionAreaUsage; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保区域使用Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保区域使用") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_area_usage") | ||
| 38 | +public class DbAnimalProtectionAreaUsageController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保区域使用列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_area_usage:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionAreaUsage dbAnimalProtectionAreaUsage) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionAreaUsage> list = publicTemplateService.selectTList(dbAnimalProtectionAreaUsage); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保区域使用列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_area_usage:export')") | ||
| 67 | + @Log(title = "动保区域使用", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionAreaUsage dbAnimalProtectionAreaUsage) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionAreaUsage> list = publicTemplateService.selectTList(dbAnimalProtectionAreaUsage); | ||
| 72 | + ExcelUtil<DbAnimalProtectionAreaUsage> util = new ExcelUtil<DbAnimalProtectionAreaUsage>(DbAnimalProtectionAreaUsage.class); | ||
| 73 | + util.exportExcel(response, list, "动保区域使用数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保区域使用详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_area_usage:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionAreaUsage.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保区域使用") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_area_usage:add')") | ||
| 88 | + @Log(title = "动保区域使用", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionAreaUsage dbAnimalProtectionAreaUsage) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionAreaUsage)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保区域使用") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_area_usage:edit')") | ||
| 98 | + @Log(title = "动保区域使用", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionAreaUsage dbAnimalProtectionAreaUsage) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionAreaUsage))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保区域使用") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_area_usage:remove')") | ||
| 108 | + @Log(title = "动保区域使用", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionAreaUsage.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionBeginning; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保期初Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保期初") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_beginning") | ||
| 38 | +public class DbAnimalProtectionBeginningController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保期初列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_beginning:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionBeginning dbAnimalProtectionBeginning) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionBeginning> list = publicTemplateService.selectTList(dbAnimalProtectionBeginning); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保期初列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_beginning:export')") | ||
| 67 | + @Log(title = "动保期初", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionBeginning dbAnimalProtectionBeginning) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionBeginning> list = publicTemplateService.selectTList(dbAnimalProtectionBeginning); | ||
| 72 | + ExcelUtil<DbAnimalProtectionBeginning> util = new ExcelUtil<DbAnimalProtectionBeginning>(DbAnimalProtectionBeginning.class); | ||
| 73 | + util.exportExcel(response, list, "动保期初数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保期初详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_beginning:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionBeginning.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保期初") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_beginning:add')") | ||
| 88 | + @Log(title = "动保期初", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionBeginning dbAnimalProtectionBeginning) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionBeginning)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保期初") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_beginning:edit')") | ||
| 98 | + @Log(title = "动保期初", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionBeginning dbAnimalProtectionBeginning) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionBeginning))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保期初") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_beginning:remove')") | ||
| 108 | + @Log(title = "动保期初", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionBeginning.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionInbound; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保入库Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保入库") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_inbound") | ||
| 38 | +public class DbAnimalProtectionInboundController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保入库列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inbound:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionInbound dbAnimalProtectionInbound) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionInbound> list = publicTemplateService.selectTList(dbAnimalProtectionInbound); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保入库列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inbound:export')") | ||
| 67 | + @Log(title = "动保入库", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionInbound dbAnimalProtectionInbound) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionInbound> list = publicTemplateService.selectTList(dbAnimalProtectionInbound); | ||
| 72 | + ExcelUtil<DbAnimalProtectionInbound> util = new ExcelUtil<DbAnimalProtectionInbound>(DbAnimalProtectionInbound.class); | ||
| 73 | + util.exportExcel(response, list, "动保入库数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保入库详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inbound:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionInbound.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保入库") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inbound:add')") | ||
| 88 | + @Log(title = "动保入库", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionInbound dbAnimalProtectionInbound) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionInbound)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保入库") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inbound:edit')") | ||
| 98 | + @Log(title = "动保入库", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionInbound dbAnimalProtectionInbound) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionInbound))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保入库") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inbound:remove')") | ||
| 108 | + @Log(title = "动保入库", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionInbound.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionInfo; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保信息Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保信息") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_info") | ||
| 38 | +public class DbAnimalProtectionInfoController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保信息列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_info:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionInfo dbAnimalProtectionInfo) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionInfo> list = publicTemplateService.selectTList(dbAnimalProtectionInfo); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保信息列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_info:export')") | ||
| 67 | + @Log(title = "动保信息", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionInfo dbAnimalProtectionInfo) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionInfo> list = publicTemplateService.selectTList(dbAnimalProtectionInfo); | ||
| 72 | + ExcelUtil<DbAnimalProtectionInfo> util = new ExcelUtil<DbAnimalProtectionInfo>(DbAnimalProtectionInfo.class); | ||
| 73 | + util.exportExcel(response, list, "动保信息数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保信息详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_info:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionInfo.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保信息") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_info:add')") | ||
| 88 | + @Log(title = "动保信息", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionInfo dbAnimalProtectionInfo) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionInfo)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保信息") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_info:edit')") | ||
| 98 | + @Log(title = "动保信息", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionInfo dbAnimalProtectionInfo) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionInfo))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保信息") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_info:remove')") | ||
| 108 | + @Log(title = "动保信息", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionInfo.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionInventory; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保盘点Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保盘点") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_inventory") | ||
| 38 | +public class DbAnimalProtectionInventoryController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保盘点列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inventory:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionInventory dbAnimalProtectionInventory) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionInventory> list = publicTemplateService.selectTList(dbAnimalProtectionInventory); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保盘点列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inventory:export')") | ||
| 67 | + @Log(title = "动保盘点", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionInventory dbAnimalProtectionInventory) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionInventory> list = publicTemplateService.selectTList(dbAnimalProtectionInventory); | ||
| 72 | + ExcelUtil<DbAnimalProtectionInventory> util = new ExcelUtil<DbAnimalProtectionInventory>(DbAnimalProtectionInventory.class); | ||
| 73 | + util.exportExcel(response, list, "动保盘点数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保盘点详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inventory:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionInventory.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保盘点") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inventory:add')") | ||
| 88 | + @Log(title = "动保盘点", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionInventory dbAnimalProtectionInventory) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionInventory)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保盘点") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inventory:edit')") | ||
| 98 | + @Log(title = "动保盘点", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionInventory dbAnimalProtectionInventory) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionInventory))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保盘点") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_inventory:remove')") | ||
| 108 | + @Log(title = "动保盘点", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionInventory.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionLoan; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保借调Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保借调") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_loan") | ||
| 38 | +public class DbAnimalProtectionLoanController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保借调列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_loan:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionLoan dbAnimalProtectionLoan) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionLoan> list = publicTemplateService.selectTList(dbAnimalProtectionLoan); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保借调列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_loan:export')") | ||
| 67 | + @Log(title = "动保借调", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionLoan dbAnimalProtectionLoan) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionLoan> list = publicTemplateService.selectTList(dbAnimalProtectionLoan); | ||
| 72 | + ExcelUtil<DbAnimalProtectionLoan> util = new ExcelUtil<DbAnimalProtectionLoan>(DbAnimalProtectionLoan.class); | ||
| 73 | + util.exportExcel(response, list, "动保借调数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保借调详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_loan:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionLoan.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保借调") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_loan:add')") | ||
| 88 | + @Log(title = "动保借调", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionLoan dbAnimalProtectionLoan) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionLoan)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保借调") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_loan:edit')") | ||
| 98 | + @Log(title = "动保借调", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionLoan dbAnimalProtectionLoan) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionLoan))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保借调") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_loan:remove')") | ||
| 108 | + @Log(title = "动保借调", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionLoan.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionPondUsage; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保塘口使用Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保塘口使用") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_pond_usage") | ||
| 38 | +public class DbAnimalProtectionPondUsageController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保塘口使用列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_pond_usage:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionPondUsage dbAnimalProtectionPondUsage) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionPondUsage> list = publicTemplateService.selectTList(dbAnimalProtectionPondUsage); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保塘口使用列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_pond_usage:export')") | ||
| 67 | + @Log(title = "动保塘口使用", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionPondUsage dbAnimalProtectionPondUsage) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionPondUsage> list = publicTemplateService.selectTList(dbAnimalProtectionPondUsage); | ||
| 72 | + ExcelUtil<DbAnimalProtectionPondUsage> util = new ExcelUtil<DbAnimalProtectionPondUsage>(DbAnimalProtectionPondUsage.class); | ||
| 73 | + util.exportExcel(response, list, "动保塘口使用数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保塘口使用详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_pond_usage:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionPondUsage.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保塘口使用") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_pond_usage:add')") | ||
| 88 | + @Log(title = "动保塘口使用", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionPondUsage dbAnimalProtectionPondUsage) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionPondUsage)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保塘口使用") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_pond_usage:edit')") | ||
| 98 | + @Log(title = "动保塘口使用", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionPondUsage dbAnimalProtectionPondUsage) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionPondUsage))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保塘口使用") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_pond_usage:remove')") | ||
| 108 | + @Log(title = "动保塘口使用", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionPondUsage.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionPrescription; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保处方Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保处方") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_prescription") | ||
| 38 | +public class DbAnimalProtectionPrescriptionController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保处方列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_prescription:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionPrescription dbAnimalProtectionPrescription) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionPrescription> list = publicTemplateService.selectTList(dbAnimalProtectionPrescription); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保处方列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_prescription:export')") | ||
| 67 | + @Log(title = "动保处方", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionPrescription dbAnimalProtectionPrescription) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionPrescription> list = publicTemplateService.selectTList(dbAnimalProtectionPrescription); | ||
| 72 | + ExcelUtil<DbAnimalProtectionPrescription> util = new ExcelUtil<DbAnimalProtectionPrescription>(DbAnimalProtectionPrescription.class); | ||
| 73 | + util.exportExcel(response, list, "动保处方数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保处方详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_prescription:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionPrescription.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保处方") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_prescription:add')") | ||
| 88 | + @Log(title = "动保处方", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionPrescription dbAnimalProtectionPrescription) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionPrescription)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保处方") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_prescription:edit')") | ||
| 98 | + @Log(title = "动保处方", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionPrescription dbAnimalProtectionPrescription) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionPrescription))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保处方") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_prescription:remove')") | ||
| 108 | + @Log(title = "动保处方", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionPrescription.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.db; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.db.DbAnimalProtectionPurchaseRequisition; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保申购Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保申购") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/db/animal_protection_purchase_requisition") | ||
| 38 | +public class DbAnimalProtectionPurchaseRequisitionController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保申购列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_purchase_requisition:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbAnimalProtectionPurchaseRequisition dbAnimalProtectionPurchaseRequisition) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbAnimalProtectionPurchaseRequisition> list = publicTemplateService.selectTList(dbAnimalProtectionPurchaseRequisition); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保申购列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_purchase_requisition:export')") | ||
| 67 | + @Log(title = "动保申购", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbAnimalProtectionPurchaseRequisition dbAnimalProtectionPurchaseRequisition) | ||
| 70 | + { | ||
| 71 | + List<DbAnimalProtectionPurchaseRequisition> list = publicTemplateService.selectTList(dbAnimalProtectionPurchaseRequisition); | ||
| 72 | + ExcelUtil<DbAnimalProtectionPurchaseRequisition> util = new ExcelUtil<DbAnimalProtectionPurchaseRequisition>(DbAnimalProtectionPurchaseRequisition.class); | ||
| 73 | + util.exportExcel(response, list, "动保申购数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保申购详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_purchase_requisition:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbAnimalProtectionPurchaseRequisition.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保申购") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_purchase_requisition:add')") | ||
| 88 | + @Log(title = "动保申购", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbAnimalProtectionPurchaseRequisition dbAnimalProtectionPurchaseRequisition) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbAnimalProtectionPurchaseRequisition)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保申购") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_purchase_requisition:edit')") | ||
| 98 | + @Log(title = "动保申购", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbAnimalProtectionPurchaseRequisition dbAnimalProtectionPurchaseRequisition) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbAnimalProtectionPurchaseRequisition))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保申购") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:db:animal_protection_purchase_requisition:remove')") | ||
| 108 | + @Log(title = "动保申购", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbAnimalProtectionPurchaseRequisition.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.dbkb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.dbkb.DbkbAnimalHealthProtectionInboundDetails; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保入库明细Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保入库明细") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/dbkb/animal_health_protection_inbound_details") | ||
| 38 | +public class DbkbAnimalHealthProtectionInboundDetailsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保入库明细列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inbound_details:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbkbAnimalHealthProtectionInboundDetails dbkbAnimalHealthProtectionInboundDetails) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbkbAnimalHealthProtectionInboundDetails> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionInboundDetails); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保入库明细列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inbound_details:export')") | ||
| 67 | + @Log(title = "动保入库明细", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbkbAnimalHealthProtectionInboundDetails dbkbAnimalHealthProtectionInboundDetails) | ||
| 70 | + { | ||
| 71 | + List<DbkbAnimalHealthProtectionInboundDetails> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionInboundDetails); | ||
| 72 | + ExcelUtil<DbkbAnimalHealthProtectionInboundDetails> util = new ExcelUtil<DbkbAnimalHealthProtectionInboundDetails>(DbkbAnimalHealthProtectionInboundDetails.class); | ||
| 73 | + util.exportExcel(response, list, "动保入库明细数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保入库明细详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inbound_details:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbkbAnimalHealthProtectionInboundDetails.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保入库明细") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inbound_details:add')") | ||
| 88 | + @Log(title = "动保入库明细", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbkbAnimalHealthProtectionInboundDetails dbkbAnimalHealthProtectionInboundDetails) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbkbAnimalHealthProtectionInboundDetails)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保入库明细") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inbound_details:edit')") | ||
| 98 | + @Log(title = "动保入库明细", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbkbAnimalHealthProtectionInboundDetails dbkbAnimalHealthProtectionInboundDetails) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbkbAnimalHealthProtectionInboundDetails))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保入库明细") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inbound_details:remove')") | ||
| 108 | + @Log(title = "动保入库明细", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbkbAnimalHealthProtectionInboundDetails.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.dbkb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.dbkb.DbkbAnimalHealthProtectionInventory; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保进出存Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保进出存") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/dbkb/animal_health_protection_inventory") | ||
| 38 | +public class DbkbAnimalHealthProtectionInventoryController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保进出存列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inventory:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbkbAnimalHealthProtectionInventory dbkbAnimalHealthProtectionInventory) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbkbAnimalHealthProtectionInventory> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionInventory); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保进出存列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inventory:export')") | ||
| 67 | + @Log(title = "动保进出存", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbkbAnimalHealthProtectionInventory dbkbAnimalHealthProtectionInventory) | ||
| 70 | + { | ||
| 71 | + List<DbkbAnimalHealthProtectionInventory> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionInventory); | ||
| 72 | + ExcelUtil<DbkbAnimalHealthProtectionInventory> util = new ExcelUtil<DbkbAnimalHealthProtectionInventory>(DbkbAnimalHealthProtectionInventory.class); | ||
| 73 | + util.exportExcel(response, list, "动保进出存数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保进出存详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inventory:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbkbAnimalHealthProtectionInventory.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保进出存") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inventory:add')") | ||
| 88 | + @Log(title = "动保进出存", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbkbAnimalHealthProtectionInventory dbkbAnimalHealthProtectionInventory) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbkbAnimalHealthProtectionInventory)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保进出存") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inventory:edit')") | ||
| 98 | + @Log(title = "动保进出存", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbkbAnimalHealthProtectionInventory dbkbAnimalHealthProtectionInventory) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbkbAnimalHealthProtectionInventory))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保进出存") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_inventory:remove')") | ||
| 108 | + @Log(title = "动保进出存", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbkbAnimalHealthProtectionInventory.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.dbkb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.dbkb.DbkbAnimalHealthProtectionOutboundDetails; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保出库明细Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保出库明细") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/dbkb/animal_health_protection_outbound_details") | ||
| 38 | +public class DbkbAnimalHealthProtectionOutboundDetailsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保出库明细列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_outbound_details:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbkbAnimalHealthProtectionOutboundDetails dbkbAnimalHealthProtectionOutboundDetails) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbkbAnimalHealthProtectionOutboundDetails> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionOutboundDetails); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保出库明细列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_outbound_details:export')") | ||
| 67 | + @Log(title = "动保出库明细", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbkbAnimalHealthProtectionOutboundDetails dbkbAnimalHealthProtectionOutboundDetails) | ||
| 70 | + { | ||
| 71 | + List<DbkbAnimalHealthProtectionOutboundDetails> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionOutboundDetails); | ||
| 72 | + ExcelUtil<DbkbAnimalHealthProtectionOutboundDetails> util = new ExcelUtil<DbkbAnimalHealthProtectionOutboundDetails>(DbkbAnimalHealthProtectionOutboundDetails.class); | ||
| 73 | + util.exportExcel(response, list, "动保出库明细数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保出库明细详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_outbound_details:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbkbAnimalHealthProtectionOutboundDetails.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保出库明细") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_outbound_details:add')") | ||
| 88 | + @Log(title = "动保出库明细", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbkbAnimalHealthProtectionOutboundDetails dbkbAnimalHealthProtectionOutboundDetails) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbkbAnimalHealthProtectionOutboundDetails)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保出库明细") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_outbound_details:edit')") | ||
| 98 | + @Log(title = "动保出库明细", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbkbAnimalHealthProtectionOutboundDetails dbkbAnimalHealthProtectionOutboundDetails) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbkbAnimalHealthProtectionOutboundDetails))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保出库明细") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_outbound_details:remove')") | ||
| 108 | + @Log(title = "动保出库明细", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbkbAnimalHealthProtectionOutboundDetails.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.dbkb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.dbkb.DbkbAnimalHealthProtectionRecords; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保投用记录Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保投用记录") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/dbkb/animal_health_protection_records") | ||
| 38 | +public class DbkbAnimalHealthProtectionRecordsController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保投用记录列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_records:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbkbAnimalHealthProtectionRecords dbkbAnimalHealthProtectionRecords) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbkbAnimalHealthProtectionRecords> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionRecords); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保投用记录列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_records:export')") | ||
| 67 | + @Log(title = "动保投用记录", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbkbAnimalHealthProtectionRecords dbkbAnimalHealthProtectionRecords) | ||
| 70 | + { | ||
| 71 | + List<DbkbAnimalHealthProtectionRecords> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionRecords); | ||
| 72 | + ExcelUtil<DbkbAnimalHealthProtectionRecords> util = new ExcelUtil<DbkbAnimalHealthProtectionRecords>(DbkbAnimalHealthProtectionRecords.class); | ||
| 73 | + util.exportExcel(response, list, "动保投用记录数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保投用记录详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_records:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbkbAnimalHealthProtectionRecords.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保投用记录") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_records:add')") | ||
| 88 | + @Log(title = "动保投用记录", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbkbAnimalHealthProtectionRecords dbkbAnimalHealthProtectionRecords) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbkbAnimalHealthProtectionRecords)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保投用记录") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_records:edit')") | ||
| 98 | + @Log(title = "动保投用记录", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbkbAnimalHealthProtectionRecords dbkbAnimalHealthProtectionRecords) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbkbAnimalHealthProtectionRecords))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保投用记录") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_records:remove')") | ||
| 108 | + @Log(title = "动保投用记录", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbkbAnimalHealthProtectionRecords.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.dbkb; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.dbkb.DbkbAnimalHealthProtectionSummary; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 动保投用汇总Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "动保投用汇总") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/dbkb/animal_health_protection_summary") | ||
| 38 | +public class DbkbAnimalHealthProtectionSummaryController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询动保投用汇总列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_summary:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(DbkbAnimalHealthProtectionSummary dbkbAnimalHealthProtectionSummary) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<DbkbAnimalHealthProtectionSummary> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionSummary); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出动保投用汇总列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_summary:export')") | ||
| 67 | + @Log(title = "动保投用汇总", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, DbkbAnimalHealthProtectionSummary dbkbAnimalHealthProtectionSummary) | ||
| 70 | + { | ||
| 71 | + List<DbkbAnimalHealthProtectionSummary> list = publicTemplateService.selectTList(dbkbAnimalHealthProtectionSummary); | ||
| 72 | + ExcelUtil<DbkbAnimalHealthProtectionSummary> util = new ExcelUtil<DbkbAnimalHealthProtectionSummary>(DbkbAnimalHealthProtectionSummary.class); | ||
| 73 | + util.exportExcel(response, list, "动保投用汇总数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取动保投用汇总详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_summary:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, DbkbAnimalHealthProtectionSummary.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增动保投用汇总") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_summary:add')") | ||
| 88 | + @Log(title = "动保投用汇总", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody DbkbAnimalHealthProtectionSummary dbkbAnimalHealthProtectionSummary) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(dbkbAnimalHealthProtectionSummary)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改动保投用汇总") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_summary:edit')") | ||
| 98 | + @Log(title = "动保投用汇总", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody DbkbAnimalHealthProtectionSummary dbkbAnimalHealthProtectionSummary) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((dbkbAnimalHealthProtectionSummary))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除动保投用汇总") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:dbkb:animal_health_protection_summary:remove')") | ||
| 108 | + @Log(title = "动保投用汇总", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(DbkbAnimalHealthProtectionSummary.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.fy; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.fy.FyCostExpenseEntry; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 费用成本录入Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "费用成本录入") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/fy/cost_expense_entry") | ||
| 38 | +public class FyCostExpenseEntryController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询费用成本录入列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_expense_entry:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(FyCostExpenseEntry fyCostExpenseEntry) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<FyCostExpenseEntry> list = publicTemplateService.selectTList(fyCostExpenseEntry); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出费用成本录入列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_expense_entry:export')") | ||
| 67 | + @Log(title = "费用成本录入", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, FyCostExpenseEntry fyCostExpenseEntry) | ||
| 70 | + { | ||
| 71 | + List<FyCostExpenseEntry> list = publicTemplateService.selectTList(fyCostExpenseEntry); | ||
| 72 | + ExcelUtil<FyCostExpenseEntry> util = new ExcelUtil<FyCostExpenseEntry>(FyCostExpenseEntry.class); | ||
| 73 | + util.exportExcel(response, list, "费用成本录入数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取费用成本录入详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_expense_entry:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, FyCostExpenseEntry.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增费用成本录入") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_expense_entry:add')") | ||
| 88 | + @Log(title = "费用成本录入", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody FyCostExpenseEntry fyCostExpenseEntry) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(fyCostExpenseEntry)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改费用成本录入") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_expense_entry:edit')") | ||
| 98 | + @Log(title = "费用成本录入", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody FyCostExpenseEntry fyCostExpenseEntry) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((fyCostExpenseEntry))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除费用成本录入") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_expense_entry:remove')") | ||
| 108 | + @Log(title = "费用成本录入", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(FyCostExpenseEntry.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.fy; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.fy.FyCostItemMaintenance; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 成本项目维护Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "成本项目维护") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/fy/cost_item_maintenance") | ||
| 38 | +public class FyCostItemMaintenanceController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询成本项目维护列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_item_maintenance:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(FyCostItemMaintenance fyCostItemMaintenance) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<FyCostItemMaintenance> list = publicTemplateService.selectTList(fyCostItemMaintenance); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出成本项目维护列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_item_maintenance:export')") | ||
| 67 | + @Log(title = "成本项目维护", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, FyCostItemMaintenance fyCostItemMaintenance) | ||
| 70 | + { | ||
| 71 | + List<FyCostItemMaintenance> list = publicTemplateService.selectTList(fyCostItemMaintenance); | ||
| 72 | + ExcelUtil<FyCostItemMaintenance> util = new ExcelUtil<FyCostItemMaintenance>(FyCostItemMaintenance.class); | ||
| 73 | + util.exportExcel(response, list, "成本项目维护数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取成本项目维护详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_item_maintenance:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, FyCostItemMaintenance.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增成本项目维护") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_item_maintenance:add')") | ||
| 88 | + @Log(title = "成本项目维护", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody FyCostItemMaintenance fyCostItemMaintenance) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(fyCostItemMaintenance)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改成本项目维护") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_item_maintenance:edit')") | ||
| 98 | + @Log(title = "成本项目维护", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody FyCostItemMaintenance fyCostItemMaintenance) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((fyCostItemMaintenance))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除成本项目维护") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:fy:cost_item_maintenance:remove')") | ||
| 108 | + @Log(title = "成本项目维护", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(FyCostItemMaintenance.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.fy; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.fy.FyCustomerBeginningBalanceManagement; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 客户期初管理Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "客户期初管理") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/fy/customer_beginning_balance_management") | ||
| 38 | +public class FyCustomerBeginningBalanceManagementController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询客户期初管理列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_beginning_balance_management:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(FyCustomerBeginningBalanceManagement fyCustomerBeginningBalanceManagement) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<FyCustomerBeginningBalanceManagement> list = publicTemplateService.selectTList(fyCustomerBeginningBalanceManagement); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出客户期初管理列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_beginning_balance_management:export')") | ||
| 67 | + @Log(title = "客户期初管理", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, FyCustomerBeginningBalanceManagement fyCustomerBeginningBalanceManagement) | ||
| 70 | + { | ||
| 71 | + List<FyCustomerBeginningBalanceManagement> list = publicTemplateService.selectTList(fyCustomerBeginningBalanceManagement); | ||
| 72 | + ExcelUtil<FyCustomerBeginningBalanceManagement> util = new ExcelUtil<FyCustomerBeginningBalanceManagement>(FyCustomerBeginningBalanceManagement.class); | ||
| 73 | + util.exportExcel(response, list, "客户期初管理数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取客户期初管理详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_beginning_balance_management:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, FyCustomerBeginningBalanceManagement.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增客户期初管理") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_beginning_balance_management:add')") | ||
| 88 | + @Log(title = "客户期初管理", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody FyCustomerBeginningBalanceManagement fyCustomerBeginningBalanceManagement) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(fyCustomerBeginningBalanceManagement)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改客户期初管理") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_beginning_balance_management:edit')") | ||
| 98 | + @Log(title = "客户期初管理", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody FyCustomerBeginningBalanceManagement fyCustomerBeginningBalanceManagement) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((fyCustomerBeginningBalanceManagement))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除客户期初管理") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_beginning_balance_management:remove')") | ||
| 108 | + @Log(title = "客户期初管理", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(FyCustomerBeginningBalanceManagement.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
| 1 | +package com.zhonglai.luhui.admin.controller.fy; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import com.ruoyi.common.annotation.DataSource; | ||
| 5 | +import com.ruoyi.common.enums.DataSourceType; | ||
| 6 | +import javax.servlet.http.HttpServletResponse; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 15 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 17 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 18 | +import org.springframework.web.bind.annotation.RestController; | ||
| 19 | +import com.ruoyi.common.annotation.Log; | ||
| 20 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 21 | +import com.ruoyi.common.core.domain.AjaxResult; | ||
| 22 | +import com.ruoyi.common.enums.BusinessType; | ||
| 23 | +import com.zhonglai.luhui.dao.service.PublicTemplateService; | ||
| 24 | +import com.zhonglai.luhui.domain.fy.FyCustomerCollectionSettlement; | ||
| 25 | +import com.ruoyi.common.utils.poi.ExcelUtil; | ||
| 26 | + | ||
| 27 | +import com.ruoyi.common.core.page.TableDataInfo; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * 客户收款结算Controller | ||
| 31 | + * | ||
| 32 | + * @author zhonglai | ||
| 33 | + * @date 2024-04-24 | ||
| 34 | + */ | ||
| 35 | +@Api(tags = "客户收款结算") | ||
| 36 | +@RestController | ||
| 37 | +@RequestMapping("/admin/fy/customer_collection_settlement") | ||
| 38 | +public class FyCustomerCollectionSettlementController extends BaseController | ||
| 39 | +{ | ||
| 40 | + @Autowired | ||
| 41 | + private PublicTemplateService publicTemplateService; | ||
| 42 | + | ||
| 43 | + @ApiOperation(value ="查询客户收款结算列表",notes="\n" + | ||
| 44 | + "公共参数描述:\n" + | ||
| 45 | + "条件参数:\n" + | ||
| 46 | + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" + | ||
| 47 | + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" + | ||
| 48 | + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" + | ||
| 49 | + "orderBy; //排序(如:\"id desc,name asc\")\n" + | ||
| 50 | + "\n" + | ||
| 51 | + "分页参数:\n" + | ||
| 52 | + "pageNum; //当前记录起始索引,从1开始\n" + | ||
| 53 | + "pageSize; //每页显示记录数") | ||
| 54 | + @DataSource(DataSourceType.SLAVE) | ||
| 55 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_collection_settlement:list')") | ||
| 56 | + @GetMapping("/list") | ||
| 57 | + public TableDataInfo list(FyCustomerCollectionSettlement fyCustomerCollectionSettlement) | ||
| 58 | + { | ||
| 59 | + startPage(); | ||
| 60 | + List<FyCustomerCollectionSettlement> list = publicTemplateService.selectTList(fyCustomerCollectionSettlement); | ||
| 61 | + return getDataTable(list); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @ApiOperation("导出客户收款结算列表") | ||
| 65 | + @DataSource(DataSourceType.SLAVE) | ||
| 66 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_collection_settlement:export')") | ||
| 67 | + @Log(title = "客户收款结算", businessType = BusinessType.EXPORT) | ||
| 68 | + @PostMapping("/export") | ||
| 69 | + public void export(HttpServletResponse response, FyCustomerCollectionSettlement fyCustomerCollectionSettlement) | ||
| 70 | + { | ||
| 71 | + List<FyCustomerCollectionSettlement> list = publicTemplateService.selectTList(fyCustomerCollectionSettlement); | ||
| 72 | + ExcelUtil<FyCustomerCollectionSettlement> util = new ExcelUtil<FyCustomerCollectionSettlement>(FyCustomerCollectionSettlement.class); | ||
| 73 | + util.exportExcel(response, list, "客户收款结算数据"); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + @ApiOperation("获取客户收款结算详细信息") | ||
| 77 | + @DataSource(DataSourceType.SLAVE) | ||
| 78 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_collection_settlement:query')") | ||
| 79 | + @GetMapping(value = "/{id}") | ||
| 80 | + public AjaxResult getInfo(@PathVariable("id") Integer id) | ||
| 81 | + { | ||
| 82 | + return success(publicTemplateService.getTById(id, FyCustomerCollectionSettlement.class)); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + @ApiOperation("新增客户收款结算") | ||
| 86 | + @DataSource(DataSourceType.SLAVE) | ||
| 87 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_collection_settlement:add')") | ||
| 88 | + @Log(title = "客户收款结算", businessType = BusinessType.INSERT) | ||
| 89 | + @PostMapping | ||
| 90 | + public AjaxResult add(@RequestBody FyCustomerCollectionSettlement fyCustomerCollectionSettlement) | ||
| 91 | + { | ||
| 92 | + return toAjax(publicTemplateService.add(fyCustomerCollectionSettlement)); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + @ApiOperation("修改客户收款结算") | ||
| 96 | + @DataSource(DataSourceType.SLAVE) | ||
| 97 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_collection_settlement:edit')") | ||
| 98 | + @Log(title = "客户收款结算", businessType = BusinessType.UPDATE) | ||
| 99 | + @PutMapping | ||
| 100 | + public AjaxResult edit(@RequestBody FyCustomerCollectionSettlement fyCustomerCollectionSettlement) | ||
| 101 | + { | ||
| 102 | + return toAjax(publicTemplateService.edit((fyCustomerCollectionSettlement))); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + @ApiOperation("删除客户收款结算") | ||
| 106 | + @DataSource(DataSourceType.SLAVE) | ||
| 107 | + @PreAuthorize("@ss.hasPermi('admin:fy:customer_collection_settlement:remove')") | ||
| 108 | + @Log(title = "客户收款结算", businessType = BusinessType.DELETE) | ||
| 109 | + @DeleteMapping("/{ids}") | ||
| 110 | + public AjaxResult remove(@PathVariable Integer[] ids) | ||
| 111 | + { | ||
| 112 | + return toAjax(publicTemplateService.removeByIds(FyCustomerCollectionSettlement.class,ids)); | ||
| 113 | + } | ||
| 114 | +} |
-
请 注册 或 登录 后发表评论