|
|
@ -7,14 +7,11 @@ import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.commons.tools.validator.group.AddGroup; |
|
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
|
import com.epmet.plugin.power.dto.hik.form.HikAuthorityFormDTO; |
|
|
|
import com.epmet.plugin.power.dto.hik.form.HikPersonFormDTO; |
|
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
|
import com.epmet.plugin.power.dto.rent.RentTenantInfoDTO; |
|
|
|
import com.epmet.plugin.power.modules.rent.excel.RentTenantInfoExcel; |
|
|
|
import com.epmet.plugin.power.modules.rent.service.RentTenantInfoService; |
|
|
|
import com.epmet.plugin.power.modules.utils.HkDeviceUtil; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
@ -36,9 +33,6 @@ public class RentTenantInfoController { |
|
|
|
@Autowired |
|
|
|
private RentTenantInfoService rentTenantInfoService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private HkDeviceUtil hkDeviceUtil; |
|
|
|
|
|
|
|
@RequestMapping("page") |
|
|
|
public Result<PageData<RentTenantInfoDTO>> page(@RequestParam Map<String, Object> params) { |
|
|
|
PageData<RentTenantInfoDTO> page = rentTenantInfoService.page(params); |
|
|
@ -97,25 +91,4 @@ public class RentTenantInfoController { |
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, RentTenantInfoExcel.class); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("test") |
|
|
|
public Result<String> test(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
|
HikPersonFormDTO dto = new HikPersonFormDTO(); |
|
|
|
dto.setPersonName("张三"); |
|
|
|
dto.setGender(1); |
|
|
|
dto.setCredentialType(1); |
|
|
|
dto.setCredentialNumber("350781196403072329"); |
|
|
|
dto.setMobile("17890987654"); |
|
|
|
dto.setFaceUrl("https://ai-security-protection.oss-cn-qingdao.aliyuncs.com/test/20220501/b714a5d77e46449980ad7d6dcf3d3aab.jpg"); |
|
|
|
|
|
|
|
HikAuthorityFormDTO dto1 = new HikAuthorityFormDTO(); |
|
|
|
dto1.setPersonType(1); |
|
|
|
dto1.setPersonId("91704aafae7849529460809e04102a1e"); |
|
|
|
dto1.setCommunityId("98b6060a7b8e408dbc3278a5b4fcfe2b"); |
|
|
|
dto1.setDeviceId("edbc991eb97445e698f709f3710a6fd4"); |
|
|
|
|
|
|
|
|
|
|
|
return new Result<String>().ok(hkDeviceUtil.authorityIssued(dto1)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|