|
@@ -19,37 +19,35 @@ import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 监管批次数据Controller
|
|
* 监管批次数据Controller
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @author zhx
|
|
* @author zhx
|
|
* @date 2024-09-26
|
|
* @date 2024-09-26
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/supervise/pcsj")
|
|
@RequestMapping("/supervise/pcsj")
|
|
-public class TSupervisePcsjController extends BaseController
|
|
|
|
-{
|
|
|
|
|
|
+public class TSupervisePcsjController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private ITSupervisePcsjService tSupervisePcsjService;
|
|
private ITSupervisePcsjService tSupervisePcsjService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询监管批次数据列表
|
|
* 查询监管批次数据列表
|
|
*/
|
|
*/
|
|
- //@RequiresPermissions("supervise:pcsj:list")
|
|
|
|
|
|
+ //@RequiresPermissions("supervise:pcsj:list")
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
- public TableDataInfo list(TSupervisePcsj tSupervisePcsj)
|
|
|
|
- {
|
|
|
|
|
|
+ public TableDataInfo list(TSupervisePcsj tSupervisePcsj) {
|
|
startPage();
|
|
startPage();
|
|
// tSupervisePcsj.setUploaduser(SecurityUtils.getUsername());
|
|
// tSupervisePcsj.setUploaduser(SecurityUtils.getUsername());
|
|
String xzqdm_query = tSupervisePcsj.getXzqdm();
|
|
String xzqdm_query = tSupervisePcsj.getXzqdm();
|
|
String xzq = SecurityUtils.getLoginUserXzq();
|
|
String xzq = SecurityUtils.getLoginUserXzq();
|
|
- if (StringUtils.isNotEmpty(xzqdm_query)&&StringUtils.isNotEmpty(xzq)&&!"0".equals(xzq)){
|
|
|
|
- if(xzqdm_query.indexOf(xzq)!=0){
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(xzqdm_query) && StringUtils.isNotEmpty(xzq) && !"0".equals(xzq)) {
|
|
|
|
+ if (xzqdm_query.indexOf(xzq) != 0) {
|
|
TableDataInfo rspData = new TableDataInfo();
|
|
TableDataInfo rspData = new TableDataInfo();
|
|
rspData.setCode(HttpStatus.BAD_REQUEST);
|
|
rspData.setCode(HttpStatus.BAD_REQUEST);
|
|
rspData.setMsg("参数有问题");
|
|
rspData.setMsg("参数有问题");
|
|
return rspData;
|
|
return rspData;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (StringUtils.isEmpty(xzqdm_query)){
|
|
|
|
|
|
+ if (StringUtils.isEmpty(xzqdm_query)) {
|
|
tSupervisePcsj.setXzqdm(xzq);
|
|
tSupervisePcsj.setXzqdm(xzq);
|
|
}
|
|
}
|
|
List<TSupervisePcsj> list = tSupervisePcsjService.selectTSupervisePcsjList(tSupervisePcsj);
|
|
List<TSupervisePcsj> list = tSupervisePcsjService.selectTSupervisePcsjList(tSupervisePcsj);
|
|
@@ -59,11 +57,10 @@ public class TSupervisePcsjController extends BaseController
|
|
/**
|
|
/**
|
|
* 导出监管批次数据列表
|
|
* 导出监管批次数据列表
|
|
*/
|
|
*/
|
|
- //@RequiresPermissions("supervise:pcsj:export")
|
|
|
|
|
|
+ //@RequiresPermissions("supervise:pcsj:export")
|
|
@Log(title = "监管批次数据", businessType = BusinessType.EXPORT)
|
|
@Log(title = "监管批次数据", businessType = BusinessType.EXPORT)
|
|
@PostMapping("/export")
|
|
@PostMapping("/export")
|
|
- public void export(HttpServletResponse response, TSupervisePcsj tSupervisePcsj)
|
|
|
|
- {
|
|
|
|
|
|
+ public void export(HttpServletResponse response, TSupervisePcsj tSupervisePcsj) {
|
|
List<TSupervisePcsj> list = tSupervisePcsjService.selectTSupervisePcsjList(tSupervisePcsj);
|
|
List<TSupervisePcsj> list = tSupervisePcsjService.selectTSupervisePcsjList(tSupervisePcsj);
|
|
ExcelUtil<TSupervisePcsj> util = new ExcelUtil<TSupervisePcsj>(TSupervisePcsj.class);
|
|
ExcelUtil<TSupervisePcsj> util = new ExcelUtil<TSupervisePcsj>(TSupervisePcsj.class);
|
|
util.exportExcel(response, list, "监管批次数据数据");
|
|
util.exportExcel(response, list, "监管批次数据数据");
|
|
@@ -72,43 +69,45 @@ public class TSupervisePcsjController extends BaseController
|
|
/**
|
|
/**
|
|
* 获取监管批次数据详细信息
|
|
* 获取监管批次数据详细信息
|
|
*/
|
|
*/
|
|
- //@RequiresPermissions("supervise:pcsj:query")
|
|
|
|
|
|
+ //@RequiresPermissions("supervise:pcsj:query")
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
- public AjaxResult getInfo(@PathVariable("id") String id)
|
|
|
|
- {
|
|
|
|
|
|
+ public AjaxResult getInfo(@PathVariable("id") String id) {
|
|
return success(tSupervisePcsjService.selectTSupervisePcsjById(id));
|
|
return success(tSupervisePcsjService.selectTSupervisePcsjById(id));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 新增监管批次数据
|
|
* 新增监管批次数据
|
|
*/
|
|
*/
|
|
- //@RequiresPermissions("supervise:pcsj:add")
|
|
|
|
|
|
+ //@RequiresPermissions("supervise:pcsj:add")
|
|
@Log(title = "监管批次数据", businessType = BusinessType.INSERT)
|
|
@Log(title = "监管批次数据", businessType = BusinessType.INSERT)
|
|
@PostMapping
|
|
@PostMapping
|
|
- public AjaxResult add(@RequestBody TSupervisePcsj tSupervisePcsj)
|
|
|
|
- {
|
|
|
|
|
|
+ public AjaxResult add(@RequestBody TSupervisePcsj tSupervisePcsj) {
|
|
return toAjax(tSupervisePcsjService.insertTSupervisePcsj(tSupervisePcsj));
|
|
return toAjax(tSupervisePcsjService.insertTSupervisePcsj(tSupervisePcsj));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改监管批次数据
|
|
* 修改监管批次数据
|
|
*/
|
|
*/
|
|
- //@RequiresPermissions("supervise:pcsj:edit")
|
|
|
|
|
|
+ //@RequiresPermissions("supervise:pcsj:edit")
|
|
@Log(title = "监管批次数据", businessType = BusinessType.UPDATE)
|
|
@Log(title = "监管批次数据", businessType = BusinessType.UPDATE)
|
|
@PutMapping
|
|
@PutMapping
|
|
- public AjaxResult edit(@RequestBody TSupervisePcsj tSupervisePcsj)
|
|
|
|
- {
|
|
|
|
|
|
+ public AjaxResult edit(@RequestBody TSupervisePcsj tSupervisePcsj) {
|
|
return toAjax(tSupervisePcsjService.updateTSupervisePcsj(tSupervisePcsj));
|
|
return toAjax(tSupervisePcsjService.updateTSupervisePcsj(tSupervisePcsj));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 删除监管批次数据
|
|
* 删除监管批次数据
|
|
*/
|
|
*/
|
|
- //@RequiresPermissions("supervise:pcsj:remove")
|
|
|
|
|
|
+ //@RequiresPermissions("supervise:pcsj:remove")
|
|
|
|
+// @Log(title = "监管批次数据", businessType = BusinessType.DELETE)
|
|
|
|
+// @DeleteMapping("/{ids}")
|
|
|
|
+// public AjaxResult remove(@PathVariable String[] ids)
|
|
|
|
+// {
|
|
|
|
+// return toAjax(tSupervisePcsjService.deleteTSupervisePcsjByIds(ids));
|
|
|
|
+// }
|
|
@Log(title = "监管批次数据", businessType = BusinessType.DELETE)
|
|
@Log(title = "监管批次数据", businessType = BusinessType.DELETE)
|
|
- @DeleteMapping("/{ids}")
|
|
|
|
- public AjaxResult remove(@PathVariable String[] ids)
|
|
|
|
- {
|
|
|
|
- return toAjax(tSupervisePcsjService.deleteTSupervisePcsjByIds(ids));
|
|
|
|
|
|
+ @DeleteMapping("/{id}")
|
|
|
|
+ public AjaxResult removeId(@PathVariable("id") String id) {
|
|
|
|
+ return toAjax(tSupervisePcsjService.removeTSupervisePcsjById(id));
|
|
}
|
|
}
|
|
}
|
|
}
|