haungxing
9 months ago
2 changed files with 31 additions and 14 deletions
@ -0,0 +1,25 @@ |
|||||||
|
package com.hnac.hzims.safeproduct.feign; |
||||||
|
|
||||||
|
|
||||||
|
import com.hnac.hzims.middle.process.to.ProcessWorkFlowResponse; |
||||||
|
import com.hnac.hzims.safeproduct.flow.service.IInnerDangerFlowService; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
|
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
public class SafeInnerDangerClient implements ISafeInnerDangerClient { |
||||||
|
|
||||||
|
private IInnerDangerFlowService service; |
||||||
|
|
||||||
|
|
||||||
|
@PostMapping(SAVE_HIDDENDANGER) |
||||||
|
@Override |
||||||
|
public R saveDefect(@RequestBody ProcessWorkFlowResponse processWorkFlowResponse) { |
||||||
|
return service.listenAndUpdateDefect(processWorkFlowResponse); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue