【fix sonar】 DuplicateCheckController.java 文件

This commit is contained in:
tianwenbo
2023-03-07 17:14:11 +08:00
parent 4b1d480380
commit 5292628950
@@ -8,6 +8,7 @@ import com.jero.common.util.SqlInjectionUtil;
import com.jero.modules.system.mapper.SysDictMapper; import com.jero.modules.system.mapper.SysDictMapper;
import com.jero.modules.system.model.DuplicateCheckVo; import com.jero.modules.system.model.DuplicateCheckVo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@@ -37,7 +38,8 @@ public class DuplicateCheckController {
* *
* @return * @return
*/ */
@RequestMapping(value = "/check", method = RequestMethod.GET) // @RequestMapping(value = "/check", method = RequestMethod.GET)
@GetMapping("/check")
@ApiOperation("重复校验接口") @ApiOperation("重复校验接口")
public Result<Object> doDuplicateCheck(DuplicateCheckVo duplicateCheckVo, HttpServletRequest request) { public Result<Object> doDuplicateCheck(DuplicateCheckVo duplicateCheckVo, HttpServletRequest request) {
Long num = null; Long num = null;