考勤出入场修改

This commit is contained in:
haozq 2025-08-16 16:26:53 +08:00
parent 015210d5a3
commit 3f30910694
3 changed files with 8 additions and 3 deletions

View File

@ -45,12 +45,12 @@ public interface RemoteUakUtilsService {
/** /**
* 考勤机解绑 * 考勤机解绑
* @param userId * @param String
* @param proId * @param proId
* @param source * @param source
*/ */
@PostMapping(value = "/business/delDevByProId") @PostMapping(value = "/business/delDevByProId")
public void delDevByProId(@RequestParam(value = "userId") int userId, @RequestParam(value = "proId")int proId, public void delDevByProId(@RequestParam(value = "deviceCode") String deviceCode, @RequestParam(value = "proId")int proId,
@RequestHeader(SecurityConstants.FROM_SOURCE) String source); @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/** /**

View File

@ -28,7 +28,7 @@ public class MyFilter extends OncePerRequestFilter {
@Override @Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
log.debug("进入MyFilter过滤器,parameterMap"); log.debug("进入MyFilter过滤器,parameterMap");
System.err.println(request.getRequestURI()); // System.err.println(request.getRequestURI());
if (SystemGlobal.POST.equals(request.getMethod()) || SystemGlobal.PUT.equals(request.getMethod()) ){ if (SystemGlobal.POST.equals(request.getMethod()) || SystemGlobal.PUT.equals(request.getMethod()) ){
//去除文件上传 //去除文件上传
String header = request.getHeader(HttpHeaders.CONTENT_TYPE); String header = request.getHeader(HttpHeaders.CONTENT_TYPE);

View File

@ -49,6 +49,11 @@ public class SendUserController {
} }
} }
/**
* 删除当前考勤机的全部人员
* @param deviceCode
* @param proId
*/
@PostMapping("delDevByProId") @PostMapping("delDevByProId")
public void delDevByProId(String deviceCode,int proId) { public void delDevByProId(String deviceCode,int proId) {
try { try {