|
@@ -8,10 +8,10 @@ import com.ktg.common.annotation.Log;
|
|
|
import com.ktg.common.core.controller.BaseController;
|
|
import com.ktg.common.core.controller.BaseController;
|
|
|
import com.ktg.common.enums.BusinessType;
|
|
import com.ktg.common.enums.BusinessType;
|
|
|
import com.ktg.common.pojo.CommonResult;
|
|
import com.ktg.common.pojo.CommonResult;
|
|
|
-import com.ktg.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ktg.common.utils.FingerprintComparisonByImg;
|
|
import com.ktg.common.utils.FingerprintComparisonByImg;
|
|
|
-import com.ktg.iscs.domain.TestIscs;
|
|
|
|
|
|
|
+import com.ktg.common.utils.poi.ExcelUtil;
|
|
|
import com.ktg.common.vo.VerificationVO;
|
|
import com.ktg.common.vo.VerificationVO;
|
|
|
|
|
+import com.ktg.iscs.domain.TestIscs;
|
|
|
import com.ktg.iscs.service.IIsTicketOperLogService;
|
|
import com.ktg.iscs.service.IIsTicketOperLogService;
|
|
|
import com.ktg.iscs.service.ITestIscsService;
|
|
import com.ktg.iscs.service.ITestIscsService;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -36,8 +36,7 @@ import java.util.List;
|
|
|
@Api(tags = "测试用")
|
|
@Api(tags = "测试用")
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("/iscs/iscs")
|
|
@RequestMapping("/iscs/iscs")
|
|
|
-public class TestIscsController extends BaseController
|
|
|
|
|
-{
|
|
|
|
|
|
|
+public class TestIscsController extends BaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ITestIscsService testIscsService;
|
|
private ITestIscsService testIscsService;
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -53,8 +52,7 @@ public class TestIscsController extends BaseController
|
|
|
})
|
|
})
|
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:list')")
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:list')")
|
|
|
@GetMapping("/getTestIscsPage")
|
|
@GetMapping("/getTestIscsPage")
|
|
|
- public CommonResult<Page<TestIscs>> getTestIscsPage(Page<TestIscs> page, TestIscs testIscs)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public CommonResult<Page<TestIscs>> getTestIscsPage(Page<TestIscs> page, TestIscs testIscs) {
|
|
|
Page<TestIscs> result = testIscsService.page(page, Wrappers.<TestIscs>lambdaQuery()
|
|
Page<TestIscs> result = testIscsService.page(page, Wrappers.<TestIscs>lambdaQuery()
|
|
|
.orderByDesc(TestIscs::getId));
|
|
.orderByDesc(TestIscs::getId));
|
|
|
return CommonResult.success(result);
|
|
return CommonResult.success(result);
|
|
@@ -68,8 +66,7 @@ public class TestIscsController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:export')")
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:export')")
|
|
|
@Log(title = "测试用", businessType = BusinessType.EXPORT)
|
|
@Log(title = "测试用", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/exportTestIscs")
|
|
@PostMapping("/exportTestIscs")
|
|
|
- public void exportTestIscs(HttpServletResponse response, TestIscs testIscs)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public void exportTestIscs(HttpServletResponse response, TestIscs testIscs) {
|
|
|
Page<TestIscs> page = new Page<>();
|
|
Page<TestIscs> page = new Page<>();
|
|
|
page.setSize(-1);
|
|
page.setSize(-1);
|
|
|
page.setCurrent(1);
|
|
page.setCurrent(1);
|
|
@@ -86,8 +83,7 @@ public class TestIscsController extends BaseController
|
|
|
@Parameter(name = "id", description = "id")
|
|
@Parameter(name = "id", description = "id")
|
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:query')")
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:query')")
|
|
|
@GetMapping(value = "/selectTestIscsById")
|
|
@GetMapping(value = "/selectTestIscsById")
|
|
|
- public CommonResult<TestIscs> selectTestIscsById(Long id)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public CommonResult<TestIscs> selectTestIscsById(Long id) {
|
|
|
return CommonResult.success(testIscsService.getById(id));
|
|
return CommonResult.success(testIscsService.getById(id));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -98,8 +94,7 @@ public class TestIscsController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:add')")
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:add')")
|
|
|
@Log(title = "测试用", businessType = BusinessType.INSERT)
|
|
@Log(title = "测试用", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/insertTestIscs")
|
|
@PostMapping("/insertTestIscs")
|
|
|
- public CommonResult<Boolean> insertTestIscs(@RequestBody @Parameter(name = "testIscs", description = "新增数据类,放到body") TestIscs testIscs)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public CommonResult<Boolean> insertTestIscs(@RequestBody @Parameter(name = "testIscs", description = "新增数据类,放到body") TestIscs testIscs) {
|
|
|
return CommonResult.success(testIscsService.save(testIscs));
|
|
return CommonResult.success(testIscsService.save(testIscs));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -110,8 +105,7 @@ public class TestIscsController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:edit')")
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:edit')")
|
|
|
@Log(title = "测试用", businessType = BusinessType.UPDATE)
|
|
@Log(title = "测试用", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/updateTestIscs")
|
|
@PostMapping("/updateTestIscs")
|
|
|
- public CommonResult<Boolean> updateTestIscs(@RequestBody @Parameter(name = "testIscs", description = "修改数据类,放到body") TestIscs testIscs)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public CommonResult<Boolean> updateTestIscs(@RequestBody @Parameter(name = "testIscs", description = "修改数据类,放到body") TestIscs testIscs) {
|
|
|
return CommonResult.success(testIscsService.updateById(testIscs));
|
|
return CommonResult.success(testIscsService.updateById(testIscs));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -122,8 +116,7 @@ public class TestIscsController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:remove')")
|
|
@PreAuthorize("@ss.hasPermi('iscs:iscs:remove')")
|
|
|
@Log(title = "测试用", businessType = BusinessType.DELETE)
|
|
@Log(title = "测试用", businessType = BusinessType.DELETE)
|
|
|
@PostMapping("/deleteTestIscsByIds")
|
|
@PostMapping("/deleteTestIscsByIds")
|
|
|
- public CommonResult<Boolean> deleteTestIscsByIds(String ids)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ public CommonResult<Boolean> deleteTestIscsByIds(String ids) {
|
|
|
Assert.notBlank(ids, "请选择需要删除的数据!");
|
|
Assert.notBlank(ids, "请选择需要删除的数据!");
|
|
|
Long[] longIds = Convert.toLongArray(ids);
|
|
Long[] longIds = Convert.toLongArray(ids);
|
|
|
return CommonResult.success(testIscsService.removeBatchByIds(Arrays.asList(longIds)));
|
|
return CommonResult.success(testIscsService.removeBatchByIds(Arrays.asList(longIds)));
|
|
@@ -153,4 +146,20 @@ public class TestIscsController extends BaseController
|
|
|
return CommonResult.success(true);
|
|
return CommonResult.success(true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /* @ApiOperation("测试生成离线虹软所需硬件信息包-----------")
|
|
|
|
|
+ @GetMapping(value = "/testPrintSystem")
|
|
|
|
|
+ public CommonResult<String> testWebsocketLog() {
|
|
|
|
|
+
|
|
|
|
|
+ //人脸识别引擎库存放路径
|
|
|
|
|
+ FaceEngine faceEngine = new FaceEngine("D:\\work\\app\\appinstall\\ArcSoft_ArcFacePro_windows_x64_java_V4.2\\libs\\WIN64");
|
|
|
|
|
+ ActiveDeviceInfo activeDeviceInfo = new ActiveDeviceInfo();
|
|
|
|
|
+ //采集设备信息(可离线)
|
|
|
|
|
+ int errorCode = faceEngine.getActiveDeviceInfo(activeDeviceInfo);
|
|
|
|
|
+ System.out.println("采集设备信息errorCode:" + errorCode);
|
|
|
|
|
+ String deviceInfo = activeDeviceInfo.getDeviceInfo();
|
|
|
|
|
+ System.out.println("设备信息:" + deviceInfo);
|
|
|
|
|
+ return CommonResult.success("设备信息:" + deviceInfo);
|
|
|
|
|
+ }*/
|
|
|
|
|
+
|
|
|
}
|
|
}
|