|
|
@@ -18,7 +18,8 @@ import com.zd.system.api.feign.RemoteUserService;
|
|
|
import com.zd.system.api.vo.SysLogoConfigVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.apache.ibatis.annotations.Param;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
@@ -37,6 +38,8 @@ import java.util.*;
|
|
|
@Api(tags = {"电子信息牌"})
|
|
|
public class LabBoardApi {
|
|
|
|
|
|
+ private final Logger logger = LoggerFactory.getLogger(LabBoardApi.class);
|
|
|
+
|
|
|
@Autowired
|
|
|
private RemoteUserService remoteUserService;
|
|
|
@Autowired
|
|
|
@@ -421,6 +424,7 @@ public class LabBoardApi {
|
|
|
@ApiOperation(value = "刷卡验证")
|
|
|
@GetMapping(value = "/cardValidate")
|
|
|
public ResultData cardValidate(@RequestParam("labId") Long labId,@RequestParam("cardNum") String cardNum) {
|
|
|
+ logger.info("实验室编号:"+labId+"刷卡卡号:"+cardNum);
|
|
|
ResultData resultData=remoteDutyService.securityNumList(labId,cardNum);
|
|
|
if(resultData==null && resultData.getCode()!=HttpStatus.SUCCESS){
|
|
|
return ResultData.fail("未识别到身份信息,请联系管理人员录入卡号信息");
|