| | |
| | | import com.doumee.service.business.impl.hksync.HkSyncPrivilegeServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | */ |
| | | @Api(tags = "ERP数据同步接口") |
| | | @RestController |
| | | @RequestMapping("/business/erp") |
| | | @RequestMapping("/business/erpsync") |
| | | public class ERPSyncController extends BaseController { |
| | | |
| | | @Autowired |
| | |
| | | private HkSyncPrivilegeServiceImpl hkSyncPrivilegeService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("【海康】全量同步门禁设备接口") |
| | | @PostMapping("/getDevices") |
| | | // @RequiresPermissions("business:hksync:device") |
| | | @ApiOperation("【ERP】全量同步组织信息接口") |
| | | @PostMapping("/syncCompanies") |
| | | @RequiresPermissions("business:erpsync:company") |
| | | public ApiResponse getDevices(@RequestBody AcsDeviceListRequest param) { |
| | | String result = hkSyncDeviceService.syncHkDevices(param); |
| | | return ApiResponse.success(result); |