| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 | 
							- package com.ruoyi.business.controller;
 
- import com.ruoyi.business.domain.bo.BjTrackShipCompanyBo;
 
- import com.ruoyi.business.domain.bo.BreakBo;
 
- import com.ruoyi.business.domain.bo.ReportFlagBo;
 
- import com.ruoyi.business.service.IBjTrackShipCompanyService;
 
- import com.ruoyi.common.core.web.controller.BaseController;
 
- import com.ruoyi.common.core.web.domain.AjaxResult;
 
- import com.ruoyi.common.core.web.page.TableDataInfo;
 
- import com.ruoyi.common.log.annotation.Log;
 
- import com.ruoyi.common.log.enums.BusinessType;
 
- import io.swagger.v3.oas.annotations.Operation;
 
- import io.swagger.v3.oas.annotations.tags.Tag;
 
- import lombok.RequiredArgsConstructor;
 
- import org.springframework.validation.annotation.Validated;
 
- import org.springframework.web.bind.annotation.*;
 
- import javax.annotation.Resource;
 
- import java.text.ParseException;
 
- import java.util.List;
 
- /**
 
-  * 重点跟踪航运公司查询
 
-  * 前端访问路由地址为:/business/trackShipCompany
 
-  *
 
-  * @author libai
 
-  * @date 2025-10-28
 
-  */
 
- @Tag(name = "重点跟踪航运公司查询")
 
- @Validated
 
- @RequiredArgsConstructor
 
- @RestController
 
- @RequestMapping("/trackShipCompany")
 
- public class BjTrackShipCompanyController extends BaseController {
 
-     @Resource
 
-     private IBjTrackShipCompanyService bjTrackShipCompanyService;
 
-     /**
 
-      * 重点跟踪航运公司查询列表
 
-      */
 
-     @Operation(summary = "查询重点跟踪航运公司查询列表")
 
- //    @SaCheckPermission("business:trackShipCompany:list")
 
-     @GetMapping("/list")
 
-     public TableDataInfo list(BjTrackShipCompanyBo bo) {
 
-         return getDataTable(bjTrackShipCompanyService.queryPageList(bo));
 
-     }
 
-     /**
 
-      * 获取重点跟踪航运公司查询详细信息
 
-      *
 
-      * @param trackShipCompanyId 主键
 
-      */
 
-     @Operation(summary = "获取重点跟踪航运公司查询详细信息")
 
- //    @SaCheckPermission("business:trackShipCompany:query")
 
-     @GetMapping("/{trackShipCompanyId}")
 
-     public AjaxResult getInfo(@PathVariable("trackShipCompanyId") String trackShipCompanyId) {
 
-         return success(bjTrackShipCompanyService.queryById(trackShipCompanyId));
 
-     }
 
-     /**
 
-      * 新增重点跟踪航运公司
 
-      */
 
-     @Operation(summary = "新增重点跟踪航运公司")
 
- //    @RequiresPermissions("business:trackShipCompany:add")
 
-     @Log(title = "重点跟踪航运公司", businessType = BusinessType.INSERT)
 
-     @PostMapping()
 
-     public AjaxResult add(@RequestBody BjTrackShipCompanyBo bo) throws ParseException {
 
-         return toAjax(bjTrackShipCompanyService.insertByBo(bo));
 
-     }
 
-     /**
 
-      * 修改重点跟踪航运公司
 
-      */
 
-     @Operation(summary = "修改重点跟踪航运公司")
 
- //    @RequiresPermissions("business:trackShipCompany:edit")
 
-     @Log(title = "重点跟踪航运公司", businessType = BusinessType.UPDATE)
 
-     @PutMapping()
 
-     public AjaxResult edit(@RequestBody BjTrackShipCompanyBo bo) throws ParseException {
 
-         return toAjax(bjTrackShipCompanyService.updateByBo(bo));
 
-     }
 
-     /**
 
-      * 不予通报
 
-      */
 
-     @Operation(summary = "不予通报")
 
- //    @RequiresPermissions("business:trackShipCompany:edit")
 
-     @Log(title = "不予通报", businessType = BusinessType.UPDATE)
 
-     @PutMapping("/updateReportFlag")
 
-     public AjaxResult editFlag(@RequestBody ReportFlagBo bo) throws ParseException {
 
-         return toAjax(bjTrackShipCompanyService.updateFlag(bo));
 
-     }
 
-     /**
 
-      * 脱离
 
-      */
 
-     @Operation(summary = "脱离")
 
- //    @RequiresPermissions("business:trackShipCompany:edit")
 
-     @Log(title = "脱离", businessType = BusinessType.UPDATE)
 
-     @PutMapping("/updateBreak")
 
-     public AjaxResult updateBreak(@RequestBody BreakBo bo) throws ParseException {
 
-         return toAjax(bjTrackShipCompanyService.updateBreak(bo));
 
-     }
 
-     /**
 
-      * 删除重点跟踪航运公司
 
-      *
 
-      * @param trackShipCompanyId 主键串
 
-      */
 
-     @Operation(summary = "删除重点跟踪航运公司")
 
- //    @RequiresPermissions("business:trackShipCompany:remove")
 
-     @Log(title = "重点跟踪航运公司", businessType = BusinessType.DELETE)
 
-     @DeleteMapping("/{trackShipCompanyId}")
 
-     public AjaxResult remove(@PathVariable("trackShipCompanyId") String[] trackShipCompanyId) {
 
-         return toAjax(bjTrackShipCompanyService.deleteWithValidByIds(List.of(trackShipCompanyId), true));
 
-     }
 
- }
 
 
  |