jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/Query/PrepareOnlineQuery.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/controller/PrepareOnlineController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/mapper/BsOrderSchedulingMapper.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/service/impl/BsOrderSchedulingServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jcdm-main/src/main/resources/mapper/bs/orderScheduling/BsOrderSchedulingMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jcdm-ui/package.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jcdm-ui/src/api/main/bs/prepareOnline/prepareOnline.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jcdm-ui/src/views/main/kb/prepareOnline/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/Query/PrepareOnlineQuery.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,17 @@ package com.jcdm.main.bs.orderScheduling.Query; import lombok.Data; @Data public class PrepareOnlineQuery { /** * å·¥åç¼å· */ private String orderNo; /** * è¿ä¿®åéæºå· */ private String engineNo; } jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/controller/PrepareOnlineController.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,32 @@ package com.jcdm.main.bs.orderScheduling.controller; import com.jcdm.common.core.controller.BaseController; import com.jcdm.common.core.page.TableDataInfo; import com.jcdm.main.bs.orderScheduling.Query.PrepareOnlineQuery; import com.jcdm.main.bs.orderScheduling.domain.BsOrderScheduling; import com.jcdm.main.bs.orderScheduling.service.impl.BsOrderSchedulingServiceImpl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController @RequestMapping("/bs/prepareOnline") public class PrepareOnlineController extends BaseController { @Autowired private BsOrderSchedulingServiceImpl bsOrderSchedulingService; // @PreAuthorize("@ss.hasPermi('bs:orderScheduling:list')") @PostMapping("/list") public TableDataInfo list(@RequestBody PrepareOnlineQuery prepareOnlineQuery) { List<BsOrderScheduling> list = bsOrderSchedulingService.getPrepareOnlineList(prepareOnlineQuery); return getDataTable(list); } } jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/mapper/BsOrderSchedulingMapper.java
@@ -1,7 +1,9 @@ package com.jcdm.main.bs.orderScheduling.mapper; import java.util.List; import com.jcdm.main.bs.orderScheduling.Query.PrepareOnlineQuery; import com.jcdm.main.bs.orderScheduling.domain.BsOrderScheduling; import java.util.List; /** * 订åæ产Mapperæ¥å£ @@ -28,6 +30,14 @@ public List<BsOrderScheduling> selectBsOrderSchedulingList(BsOrderScheduling bsOrderScheduling); /** * æ¥è¯¢åç®±ä¸çº¿å表 * * @param prepareOnlineQuery 订åæ产 * @return åç®±ä¸çº¿å表 */ public List<BsOrderScheduling> getPrepareOnlineList(PrepareOnlineQuery prepareOnlineQuery); /** * æ°å¢è®¢åæ产 * * @param bsOrderScheduling 订åæ产 jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/service/impl/BsOrderSchedulingServiceImpl.java
@@ -1,15 +1,14 @@ package com.jcdm.main.bs.orderScheduling.service.impl; import java.util.List; import cn.hutool.core.util.StrUtil; import com.fasterxml.jackson.databind.ObjectMapper; import com.jcdm.common.utils.DateUtils; import com.jcdm.main.bs.orderScheduling.Query.PrepareOnlineQuery; import com.jcdm.main.bs.orderScheduling.domain.BsOrderScheduling; import com.jcdm.main.bs.orderScheduling.mapper.BsOrderSchedulingMapper; import com.jcdm.main.bs.orderScheduling.service.IBsOrderSchedulingService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.jcdm.main.bs.orderScheduling.mapper.BsOrderSchedulingMapper; import com.jcdm.main.bs.orderScheduling.domain.BsOrderScheduling; import com.jcdm.main.bs.orderScheduling.service.IBsOrderSchedulingService; import java.util.List; /** * 订åæ产Serviceä¸å¡å±å¤ç @@ -18,7 +17,7 @@ * @date 2024-01-13 */ @Service public class BsOrderSchedulingServiceImpl implements IBsOrderSchedulingService public class BsOrderSchedulingServiceImpl implements IBsOrderSchedulingService { @Autowired private BsOrderSchedulingMapper bsOrderSchedulingMapper; @@ -52,6 +51,15 @@ return bsOrderSchedulingMapper.selectBsOrderSchedulingList(bsOrderScheduling); } /** * æ¥è¯¢åç®±ä¸çº¿å表 * @param prepareOnlineQuery * @return list */ public List<BsOrderScheduling> getPrepareOnlineList(PrepareOnlineQuery prepareOnlineQuery){ return bsOrderSchedulingMapper.getPrepareOnlineList(prepareOnlineQuery); } /** * æ°å¢è®¢åæ产 * jcdm-main/src/main/resources/mapper/bs/orderScheduling/BsOrderSchedulingMapper.xml
@@ -76,7 +76,19 @@ <include refid="selectBsOrderSchedulingVo"/> where id = #{id} </select> <select id="getPrepareOnlineList" resultType="com.jcdm.main.bs.orderScheduling.domain.BsOrderScheduling"> select bos.* from bs_order_scheduling bos <where> <if test="prepareOnlineQuery.orderNo != null and prepareOnlineQuery.orderNo != '' "> and bos.order_no = #{prepareOnlineQuery.orderNo} </if> <if test="prepareOnlineQuery.engineNo != null and prepareOnlineQuery.engineNo != '' "> and bos.engine_no = #{prepareOnlineQuery.engineNo} </if> </where> </select> <insert id="insertBsOrderScheduling" parameterType="BsOrderScheduling" useGeneratedKeys="true" keyProperty="id"> insert into bs_order_scheduling <trim prefix="(" suffix=")" suffixOverrides=","> jcdm-ui/package.json
@@ -41,7 +41,7 @@ "clipboard": "2.0.8", "core-js": "3.25.3", "echarts": "5.4.0", "element-ui": "2.15.13", "element-ui": "^2.15.13", "file-saver": "2.0.5", "fuse.js": "6.4.3", "highlight.js": "9.18.5", jcdm-ui/src/api/main/bs/prepareOnline/prepareOnline.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,10 @@ import request from '@/utils/request' // æ¥è¯¢å表 export function listTechnologyRoute(query) { return request({ url: '/bs/technologyRoute/list', method: 'get', params: query }) } jcdm-ui/src/views/main/kb/prepareOnline/index.vue
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,81 @@ <template> <div class="app-container"> <el-card class="box-card"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"> <el-form-item label-width="120" label="å·¥èºæµç¨ç¼ç " prop="routeCode"> <el-input v-model="queryParams.routeCode" placeholder="请è¾å ¥å·¥èºæµç¨ç¼ç " clearable @keyup.enter.native="handleQuery" /> </el-form-item> <el-form-item style="float: right"> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">æç´¢</el-button> </el-form-item> </el-form> </el-card> <el-card style="margin-top: 10px" class="box-card"> <el-table border v-loading="loading" :data="dataList" v-if="dataList.length > 0"> <el-table-column type="selection" width="55" align="center" /> <el-table-column :show-overflow-tooltip='true' label="å·¥åç¼å·" width="130" align="center"> <template slot-scope="scope"> <router-link :to="{path: '/main/route-data/index/', query: {routeCode: scope.row.routeCode,routeId: scope.row.id} }" class="link-type"> <span>{{ scope.row.routeCode }}</span> </router-link> </template> </el-table-column> <el-table-column :show-overflow-tooltip='true' label="产åå°ç³»å" width="130" align="center" prop="routeName"> </el-table-column> <el-table-column label="SNæµæ°´å·" width="130" align="center" prop="productCode"> </el-table-column> <el-table-column label="ç¶æ" width="160" align="center" prop="productName"> </el-table-column> <el-table-column label="æ¯å¦æå°" align="center" prop="version"> </el-table-column> <el-table-column label="æå°æ¶é´" align="center" prop="status"> <template slot-scope="scope"> <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/> </template> </el-table-column> </el-table> <el-empty v-else> <span slot="description">ææ æ°æ®</span> </el-empty> </el-card> </div> </template> <script> export default { name: "index", dicts: ['sys_normal_disable'], data(){ return{ // æ¥è¯¢åæ° queryParams: { pageNum: 1, pageSize: 10, routeCode: null, routeName: null, productCode: null, productName: null, status: null, dataSource: null, }, dataList: [] } }, methods:{ /** æç´¢æé®æä½ */ handleQuery() { this.queryParams.pageNum = 1; this.getList(); }, } } </script> <style scoped> </style>