| | |
| | | package org.springblade.mdm.test; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.mail.MessagingException; |
| | |
| | | import org.apache.neethi.AssertionBuilderFactory; |
| | | import org.apache.ws.commons.schema.XmlSchemaSerializer; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.SpringUtil; |
| | | import org.springblade.mdm.basesetting.machine.entity.Machine; |
| | | import org.springblade.mdm.commons.service.InternalEmailService; |
| | | import org.springblade.mdm.flow.entity.MesSync; |
| | | import org.springblade.mdm.flow.excution.events.CureFinishedEvent; |
| | | import org.springblade.mdm.flow.service.MesSyncService; |
| | | import org.springblade.mdm.flow.service.WIthdrawService; |
| | |
| | | SpringUtil.publishEvent(e); |
| | | } |
| | | |
| | | @GetMapping("/call-mes") |
| | | public void callMess(){ |
| | | JSONObject jsonObject = new JSONObject(); |
| | | |
| | | JSONArray dataList = new JSONArray(); |
| | | |
| | | JSONObject item = new JSONObject(); |
| | | item.put("operationId","id1"); |
| | | item.put("programNo","00001"); |
| | | item.put("curedTime", DateUtil.formatDateTime(new Date())); |
| | | |
| | | dataList.add(item); |
| | | |
| | | jsonObject.put("batchData", dataList); |
| | | |
| | | log.info("mestest data:{}",jsonObject); |
| | | |
| | | int code = mesSyncService.postData(jsonObject); |
| | | log.info("mestest response:{}",code); |
| | | } |
| | | } |