| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.jcdm.common.core.domain.R; |
| | | import com.jcdm.main.da.paramCollection.domain.DaParamCollection; |
| | | import com.jcdm.main.da.passingStationCollection.domain.ProductNewPassStation; |
| | | import com.jcdm.main.da.passingStationCollection.service.ProductNewPassStationService; |
| | |
| | | // InitCallback.miloService.writeToOpcByte(entity2);//写完成 |
| | | return rMiddleware; |
| | | } |
| | | |
| | | |
| | | @GetMapping("/getSfcCodeByConnectCode") |
| | | public R getSfcCodeByConnectCode(String connectCode){ |
| | | DaTileMatchMiddleware tileMatchMiddleware = new DaTileMatchMiddleware(); |
| | | if (StrUtil.isBlank(connectCode)){ |
| | | return R.fail("连杆码不能为空"); |
| | | } |
| | | DaTileMatchMiddleware daTileMatchMiddleware = new DaTileMatchMiddleware(); |
| | | daTileMatchMiddleware.setConnectingrodNo(connectCode); |
| | | List<DaTileMatchMiddleware> daTileMatchMiddlewares = daTileMatchMiddlewareService.selectDaTileMatchMiddlewareList(daTileMatchMiddleware); |
| | | if (CollUtil.isNotEmpty(daTileMatchMiddlewares)){ |
| | | tileMatchMiddleware = daTileMatchMiddlewares.get(0); |
| | | } |
| | | return R.ok(tileMatchMiddleware); |
| | | } |
| | | } |