| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.api.bmo.inspection.IInspectionBMO; |
| | | import com.java110.api.listener.AbstractServiceApiListener; |
| | | import com.java110.api.listener.AbstractServiceApiPlusListener; |
| | | import com.java110.core.annotation.Java110Listener; |
| | | import com.java110.core.context.DataFlowContext; |
| | | import com.java110.core.smo.hardwareAdapation.IMachineInnerServiceSMO; |
| | |
| | | * add by wuxw 2019-06-30 |
| | | */ |
| | | @Java110Listener("updateInspectionPlanStateListener") |
| | | public class UpdateInspectionPlanStateListener extends AbstractServiceApiListener { |
| | | public class UpdateInspectionPlanStateListener extends AbstractServiceApiPlusListener { |
| | | |
| | | @Autowired |
| | | private IInspectionPlanInnerServiceSMO inspectionPlanInnerServiceSMOImpl; |
| | |
| | | @Override |
| | | protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) { |
| | | |
| | | HttpHeaders header = new HttpHeaders(); |
| | | context.getRequestCurrentHeaders().put(CommonConstant.HTTP_ORDER_TYPE_CD, "D"); |
| | | JSONArray businesses = new JSONArray(); |
| | | |
| | | AppService service = event.getAppService(); |
| | | |
| | | //添加单元信息 |
| | | businesses.add(inspectionBMOImpl.updateInspectionPlanState(reqJson, context)); |
| | | |
| | | ResponseEntity<String> responseEntity = inspectionBMOImpl.callService(context, service.getServiceCode(), businesses); |
| | | |
| | | context.setResponseEntity(responseEntity); |
| | | inspectionBMOImpl.updateInspectionPlanState(reqJson, context); |
| | | } |
| | | |
| | | @Override |