package org.jeecg.modules.msi.controller; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.system.base.controller.JeecgController; import org.jeecg.modules.msi.entity.MsiWebapiJsonEntity; import org.jeecg.modules.msi.service.IMsiWebapiJsonService; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @Slf4j @Api(tags = "自动化线数据") @RestController @RequestMapping("/msi/webapi") public class MsiWebapiJsonController extends JeecgController { @AutoLog(value = "自动化线数据接收") @ApiOperation(value = "自动化线数据接收 ", notes = "自动化线数据接收") @PostMapping(value = "/receiveAutomation") public void receiveSaveMsiWebApiJson(String data) { MsiWebapiJsonEntity entity = new MsiWebapiJsonEntity(); if (StringUtils.isBlank(data)) { return; } entity.setModuleType("MDC"); //后续进行其他业务关联 service.save(entity); } }