|
@@ -67,7 +67,8 @@ public class WorkController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
UserRequest userRequest;
|
|
UserRequest userRequest;
|
|
-
|
|
|
|
|
|
+ @Value("${queue.delete-scene:#{null}}")
|
|
|
|
+ String deleteScene;
|
|
@ApiOperation(value = "列表", position = 1)
|
|
@ApiOperation(value = "列表", position = 1)
|
|
@PostMapping("list")
|
|
@PostMapping("list")
|
|
public Result<WorkEntity> list(@RequestBody AgePageDto param) {
|
|
public Result<WorkEntity> list(@RequestBody AgePageDto param) {
|
|
@@ -142,10 +143,9 @@ public class WorkController extends BaseController {
|
|
if(ObjUtil.isNotNull(byId)){
|
|
if(ObjUtil.isNotNull(byId)){
|
|
workService.remove(id);
|
|
workService.remove(id);
|
|
if (ObjUtil.isNotEmpty(byId.getNum())){
|
|
if (ObjUtil.isNotEmpty(byId.getNum())){
|
|
- JSONObject params = new JSONObject();
|
|
|
|
|
|
+ Map<String,String> params = new HashMap<>();
|
|
params.put("sceneNum", byId.getNum());
|
|
params.put("sceneNum", byId.getNum());
|
|
- params.put("platform", "qjkk");
|
|
|
|
- fdkkClient.deleteScene(userRequest.getCurrentToken(),params.toJSONString());
|
|
|
|
|
|
+ rabbitMqProducerUtil.sendByWorkQueue(deleteScene,params);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return Result.success();
|
|
return Result.success();
|