|
@@ -10,6 +10,7 @@ import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.common.util.oConvertUtils;
|
|
|
import org.jeecg.modules.billet.billetHotsend.entity.BilletHotsend;
|
|
|
import org.jeecg.modules.billet.billetHotsend.entity.RealtimeStats;
|
|
|
import org.jeecg.modules.billet.billetHotsend.entity.RulerDefaultConfig;
|
|
@@ -25,6 +26,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @Description: 钢坯热送基础信息
|
|
@@ -171,6 +173,18 @@ public class BilletHotsendBaseController extends JeecgController<BilletHotsend,
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @AutoLog(value = "钢坯热送基础信息-通过铸机和炉号查询")
|
|
|
+ @ApiOperation(value="钢坯热送基础信息-通过铸机和炉号查询", notes="钢坯热送基础信息-通过铸机和炉号查询")
|
|
|
+ @GetMapping(value = "/queryByCastMachineAndFurnaceNum")
|
|
|
+ public Result<?> queryByCastMachineAndFurnaceNum(@RequestParam(name="castMachine") String castMachine,
|
|
|
+ @RequestParam(name="furnaceNum") String furnaceNum) {
|
|
|
+ List<BilletHotsend> billetHotsendList = billetHotsendBaseService.queryByCastMachineAndFurnaceNum(castMachine, furnaceNum);
|
|
|
+ if(oConvertUtils.listIsNotEmpty(billetHotsendList)) {
|
|
|
+ return Result.error("该炉号已存在!");
|
|
|
+ }
|
|
|
+ return Result.OK(billetHotsendList);
|
|
|
+ }
|
|
|
+
|
|
|
@AutoLog(value = "棒一新增")
|
|
|
@ApiOperation(value="棒一新增", notes="棒一新增")
|
|
|
@PostMapping(value = "/addOne")
|