Merge branch 'master' of http://bore.pub:10439/r/HangZhouMes
# Conflicts:
# hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/job/Downpush.java
| | |
| | | </el-header> |
| | | <div id="line"></div> |
| | | <el-container> |
| | | <el-aside :width="isCollapse ? '30px' : '200px'" style="background-color: #fff;"> |
| | | <el-aside :width="isCollapse ? '0px' : '200px'" style="background-color: #fff;"> |
| | | <el-row :span="20"> |
| | | <el-menu :default-active="activePath" class="el-menu-vertical-demo" > |
| | | <div class="menu"> |
| | |
| | | |
| | | ul li { |
| | | height: 28px; |
| | | width: 200px; |
| | | width: 180px; |
| | | line-height: 30px; |
| | | /* background: rgb(128, 128, 128); */ |
| | | color: #000000; |
| | |
| | | dialoglea.value = true; // 打开绑定架子对话框 |
| | | fetchFlowCardId(); |
| | | }; |
| | | const selectproject = () => { |
| | | dialogFormVisible.value = true; |
| | | selectgong(); |
| | | }; |
| | | // 值班信息 |
| | | const fetchFlowCardId = async () => { |
| | | try { |
| | |
| | | const requestData = { |
| | | state: 100 |
| | | }; |
| | | // 调用接口获取选项数据的函数 |
| | | |
| | | |
| | | |
| | | |
| | | const selectgong = async (queryString: string) => { |
| | | try { |
| | | const response = await request.post('/loadGlass/optimizeProject/listByState',{ |
| | | ...requestData, |
| | | query: queryString |
| | | }) |
| | | if (response.code == 200) { |
| | | titleSelectJson.value.processType = response.data; |
| | | } else { |
| | | ElMessage.error(response.message); |
| | | } |
| | | } |
| | | catch (error) { |
| | | // 处理错误 |
| | | console.error(error); |
| | | } |
| | | } |
| | | const fetchOptions = async (queryString: string) => { |
| | | try { |
| | | // 发送请求到后端接口 |
| | |
| | | ...requestData, |
| | | query: queryString // 将查询字符串作为参数传递 |
| | | }); |
| | | |
| | | if (response.code == 200) { |
| | | titleSelectJson.value.processType = response.data; |
| | | // titleSelectJson.value.processType = response.data; |
| | | console.log(response.data); |
| | | |
| | | } else { |
| | |
| | | } catch (error) { |
| | | console.error('Error fetching options:', error); |
| | | } |
| | | }; |
| | | }; |
| | | // 处理用户输入变化的方法 |
| | | const handleInputChange = async (value: string) => { |
| | | if (value) { |
| | |
| | | message: t('basicData.pause'), |
| | | }) |
| | | } |
| | | |
| | | }; |
| | | // 删除 |
| | | const handleConfirma = async () => { |
| | |
| | | filmsId: "", |
| | | patternThickness: 0, |
| | | number: 0 |
| | | }); |
| | | |
| | | }); |
| | | if (response.code == 200) { |
| | | // 绑定成功,处理逻辑 |
| | | ElMessage.success(response.message); |
| | |
| | | const uniqueHeights = new Set(response.data.map(item => item.height)); |
| | | const uniqueFilmsIds = new Set(response.data.map(item => item.filmsId)); |
| | | const uniqueThicknesses = new Set(response.data.map(item => item.thickness)); |
| | | |
| | | selectOptions.value = Array.from(uniqueWidths).map(width => ({ |
| | | value: width, |
| | | label: width, |
| | |
| | | } |
| | | // 开始上片 |
| | | const handle = async () => { |
| | | if (markingMachineStatus.value === 'green' && cuttingMachineStatus.value === 'green') { |
| | | |
| | | if (markingMachineStatus.value === 'green' && cuttingMachineStatus.value === 'green') { |
| | | try { |
| | | let engineeringId = window.localStorage.getItem('engineeringId') |
| | | console.log(engineeringId); |
| | | |
| | | const response = await request.post('/loadGlass/engineering/engineering/changeTask', { |
| | | engineerId: engineeringId, |
| | | state: 1, |
| | |
| | | <el-button @click="confirmCutting" style="margin-left: 30px;margin-top: -3px;" >{{ $t('basicData.change') }}</el-button> |
| | | |
| | | </div> |
| | | <el-button :disabled="!canSelectProject" style="margin-top: 5px;margin-left: 15px;" type="primary" @click="dialogFormVisible = true">{{ $t('basicData.selectproject') }}</el-button> |
| | | <el-button :disabled="!canSelectProject" style="margin-top: 5px;margin-left: 15px;" type="primary" @click="selectproject">{{ $t('basicData.selectproject') }}</el-button> |
| | | <el-button :disabled="!canSelectProject" :style="{ backgroundColor: canStartLoading ? 'green' : 'initial',color: canStartLoading ? 'white' : 'black', }" style="margin-top: 5px;margin-left: 20px;" @click="handleBind">{{ $t('basicData.startloading') }}</el-button> |
| | | <el-button style="margin-top: 5px;margin-left: 20px;" id="searchButton" type="warning" @click="handleBinda">{{ $t('basicData.stop') }}</el-button> |
| | | <el-button style="margin-top: 5px;margin-left: 20px;" id="searchButton" type="info" @click="handlezhiban">{{ $t('searchOrder.dutyinformation') }}</el-button> |
| | |
| | | <artifactId>mssql-jdbc</artifactId> |
| | | <version>6.4.0.jre8</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.liquibase</groupId> |
| | | <artifactId>liquibase-core</artifactId> |
| | | <version>3.8.1</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | </project> |
| | |
| | | active: dev |
| | | application: |
| | | name: cacheGlass |
| | | liquibase: |
| | | enabled: false |
| | | mybatis-plus: |
| | | mapper-locations: classpath*:mapper/*.xml |
| | | configuration: |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.github.yulichang.toolkit.JoinWrappers; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | |
| | | PlcParameterObject plcMesObject = S7object.getinstance().PlcMesObject; |
| | | String mesD03Address = plcMesObject.getPlcParameter("MESToD03").getValue(); |
| | | String mesD05Address = plcMesObject.getPlcParameter("MESToD05").getValue(); |
| | | log.info("MESToD03:{},MESToD05:{}",mesD03Address,mesD05Address); |
| | | if("2".equals(mesD03Address)||"2".equals(mesD05Address)){ |
| | | log.info("有启动信号,MESToD03:{},MESToD05:{}",mesD03Address,mesD05Address); |
| | | log.info("MESToD03:{},MESToD05:{}", mesD03Address, mesD05Address); |
| | | if ("2".equals(mesD03Address) || "2".equals(mesD05Address)) { |
| | | log.info("有启动信号,MESToD03:{},MESToD05:{}", mesD03Address, mesD05Address); |
| | | } |
| | | PlcParameterObject plcParameterObject = S7object.getinstance().PlcMesObject; |
| | | String e01Status = plcParameterObject.getPlcParameter("E01State").getValue(); |
| | |
| | | if (glassCount < inCarMaxSize) { |
| | | addFeedTask(glassId, line, Const.BIG_STORAGE_IN_WAIT, widthFirst, heightFirst); |
| | | } else { |
| | | addFeedTask(glassId, line, Const.BIG_STORAGE_IN_RUN, widthFirst, heightFirst); |
| | | if (glassCount < inCarMaxSize + 1) { |
| | | addFeedTask(glassId, line, Const.BIG_STORAGE_IN_RUN, widthFirst, heightFirst); |
| | | } else { |
| | | return Boolean.FALSE; |
| | | } |
| | | } |
| | | } else { |
| | | flag = Boolean.FALSE; |
| | |
| | | if (remainWidth >= widthFirst) { |
| | | if (remainWidth - widthFirst - glassGap >= widthSecond) { |
| | | if (glassCount < inCarMaxSize) { |
| | | addFeedTask(glassId, line, Const.BIG_STORAGE_IN_WAIT, widthFirst, heightSecond); |
| | | addFeedTask(glassId, line, Const.BIG_STORAGE_IN_WAIT, widthFirst, heightFirst); |
| | | } else { |
| | | addFeedTask(glassId, line, Const.BIG_STORAGE_IN_RUN, widthFirst, heightSecond); |
| | | if (glassCount < inCarMaxSize + 1) { |
| | | addFeedTask(glassId, line, Const.BIG_STORAGE_IN_RUN, widthFirst, heightFirst); |
| | | } else { |
| | | return Boolean.FALSE; |
| | | } |
| | | } |
| | | } else { |
| | | addFeedTask(glassId, line, Const.BIG_STORAGE_IN_RUN, widthFirst, heightSecond); |
| | | if (glassCount < inCarMaxSize + 1) { |
| | | addFeedTask(glassId, line, Const.BIG_STORAGE_IN_RUN, widthFirst, heightFirst); |
| | | } else { |
| | | return Boolean.FALSE; |
| | | } |
| | | } |
| | | } else { |
| | | flag = Boolean.FALSE; |
| | |
| | | active: cz |
| | | application: |
| | | name: cacheVerticalGlass |
| | | liquibase: |
| | | enabled: false |
| | | mybatis-plus: |
| | | mapper-locations: classpath*:mapper/*.xml |
| | | configuration: |
| | |
| | | active: dev |
| | | application: |
| | | name: glassStorage |
| | | liquibase: |
| | | enabled: false |
| | | |
| | | |
| | | mybatis-plus: |
| | |
| | | active: dev |
| | | application: |
| | | name: loadGlass |
| | | liquibase: |
| | | enabled: false |
| | | mybatis-plus: |
| | | mapper-locations: classpath*:mapper/*.xml |
| | | configuration: |
| | |
| | | active: dev |
| | | application: |
| | | name: temperingGlass |
| | | liquibase: |
| | | enabled: true |
| | | change-log: classpath:changelog/changelog.sql |
| | | mybatis-plus: |
| | | mapper-locations: classpath*:mapper/*.xml |
| | | configuration: |
New file |
| | |
| | | --liquibase formatted sql |
| | | |
| | | --changeset zsh:20240904001 |
| | | --preconditions onFail:CONTINUE onError:CONTINUE |
| | | --precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'sys_dict_type'; |
| | | CREATE TABLE sys_dict_type |
| | | ( |
| | | dict_id BIGINT AUTO_INCREMENT PRIMARY KEY, |
| | | dict_name VARCHAR(32) NOT NULL, |
| | | dict_type VARCHAR(32) NOT NULL, |
| | | state CHAR(1) NOT NULL DEFAULT TRUE, |
| | | description VARCHAR(32), |
| | | create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| | | deleted char(1) DEFAULT 0 |
| | | ); |
| | | --rollback DROP TABLE sys_dict_type; |
| | | |
| | | --changeset zsh:20240904002 |
| | | --preconditions onFail:CONTINUE onError:CONTINUE |
| | | --precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'sys_dict_data'; |
| | | CREATE TABLE sys_dict_data |
| | | ( |
| | | dict_id BIGINT AUTO_INCREMENT PRIMARY KEY, |
| | | dict_sort INT NOT NULL, |
| | | dict_label VARCHAR(32) NOT NULL, |
| | | dict_value VARCHAR(32) NOT NULL, |
| | | dict_type VARCHAR(32) NOT NULL, |
| | | dict_type_value varchar(32), |
| | | state CHAR(1) NOT NULL DEFAULT TRUE, |
| | | description VARCHAR(32), |
| | | create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| | | deleted char(1) DEFAULT 0 |
| | | ); |
| | | --rollback DROP TABLE sys_dict_data; |
| | | |
| | | |
| | | --changeset zsh:20240904003 |
| | | --preconditions onFail:CONTINUE onError:CONTINUE |
| | | --precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM sys_dict_type WHERE dict_type in ('clearGlass', 'silver', 'doubleSilver', 'thirdSilver', 'ultraClear', 'heatReflect'); |
| | | INSERT INTO sys_dict_type (dict_name, dict_type, state, description, deleted) |
| | | VALUES ('白玻', 'clearGlass', '1', '0', '0'); |
| | | INSERT INTO sys_dict_type (dict_name, dict_type, state, description, deleted) |
| | | VALUES ('单银', 'silver', '1', '1', '0'); |
| | | INSERT INTO sys_dict_type (dict_name, dict_type, state, description, deleted) |
| | | VALUES ('双银', 'doubleSilver', '1', '2', '0'); |
| | | INSERT INTO sys_dict_type (dict_name, dict_type, state, description, deleted) |
| | | VALUES ('三银', 'thirdSilver', '1', '3', '0'); |
| | | INSERT INTO sys_dict_type (dict_name, dict_type, state, description, deleted) |
| | | VALUES ('超白', 'ultraClear', '1', '4', '0'); |
| | | INSERT INTO sys_dict_type (dict_name, dict_type, state, description, deleted) |
| | | VALUES ('热反射', 'heatReflect', '1', '5', '0'); |
| | | --rollback DELETE FROM sys_dict_type WHERE dict_type in ('clearGlass', 'silver', 'doubleSilver', 'thirdSilver', 'ultraClear', 'heatReflect'); |
| | | |
| | | --changeset zsh:20240904004 |
| | | --preconditions onFail:CONTINUE onError:CONTINUE |
| | | --precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM sys_dict_data WHERE dict_type in ('clearGlass', 'silver', 'doubleSilver', 'thirdSilver', 'ultraClear', 'heatReflect'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (1, '白玻', 'clearGlass', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (2, '超白', 'ultraClear', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (3, '来料白玻', 'incomingClearGlass', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (4, '欧州茶', 'europeTeaColor', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (5, '水晶灰', 'cristalGrey', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (6, '灰玻', 'grayGlass', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (7, '灰镀膜', 'grayCoating', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (8, '磨砂', 'frosted', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (9, '福特蓝', 'fordBlue', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (10, '福特蓝镀膜', 'fordBlueCoating', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (11, '蓝星灰', 'blueAstralGrey', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (12, '蓝玻', 'blueGlass', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (13, '超白长虹', 'ultraClearChanghong', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (14, '金晶灰', 'jinjinGrey', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (15, '金晶灰茶', 'jinjinTeaGrey', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (16, '镀膜', 'coatingFilm', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (17, '长虹', 'clearGlassChanghong', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (18, '阳光膜', 'solorControl', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (19, '高反底透', 'arGlass', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (20, '高白', 'arClear', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (21, '黑玻', 'blackGlass', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (22, '玉砂', 'emery', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (23, '超白磨砂', 'ultraClearFrosted', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (24, '金茶玻', 'goldenTea', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (25, '蓝灰镀膜', 'blueGraycoatingFilm', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (26, '单项透视', 'onePoint', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (27, '超白镀膜', 'ultraClearCoatingFilm', '白玻', '0', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (1, 'F绿', 'fGreen', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (2, 'F绿lowe', 'fGreenLowe', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (3, 'F绿镀膜', 'fGreenCoating', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (4, 'Low-e', 'lowe', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (5, 'super52', 'super52', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (6, '中玻在线', 'zgOnlineGlass', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (7, '北玻60离线lowe', 'ng60OfflineLowe', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (8, '南玻在线lowe', 'csgOnlineLowe', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (9, '台玻81A', 'tg81a', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (10, '台玻lowe70', 'tgLowe70', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (11, '台玻LOWE78', 'tgLowe78', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (12, '河北金瑞lowe80', 'hbJinruiLowe80', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (13, '福特蓝lowe', 'fordBlueLowe', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (14, '福莱特FXB60', 'flatFxb60', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (15, '福莱特lowe60', 'flatLowe60', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (16, '福莱特lowe70', 'flatLowe70', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (17, '福莱特lowe80', 'flatLowe80', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (18, '耀皮在线LOWE', 'sypOnlineLowe', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (19, '超白Lowe', 'ultraClearLowe', '单银', '1', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (1, '双银lowe', 'doubleSilverLowe', '双银', '2', '1', '1', '0'); |
| | | INSERT INTO sys_dict_data(dict_sort, dict_label, dict_value, dict_type, dict_type_value, state, description, deleted) |
| | | VALUES (2, '超白双银Lowe', 'ultraDoubleSilverLowe', '双银', '2', '1', '1', '0'); |
| | | --rollback DELETE FROM sys_dict_data WHERE dict_type in ('clearGlass', 'silver', 'doubleSilver', 'thirdSilver', 'ultraClear', 'heatReflect'); |
| | | |
| | | |
| | | |
| | |
| | | );
|
| | | jsonObject4.append("takeGlass", takeGlass);
|
| | |
|
| | |
|
| | | ArrayList<WebSocketServer> sendwServer4 = WebSocketServer.sessionMap.get("unloadglass");
|
| | | if (sendwServer4 != null) {
|
| | | for (WebSocketServer webserver : sendwServer4) {
|
| | |
| | |
|
| | | @Scheduled(fixedDelay = Long.MAX_VALUE)
|
| | | public void scanCodeTask() {
|
| | | JSONObject jsonObject = new JSONObject();
|
| | | log.info("扫描任务已启动");
|
| | | while (true) {
|
| | | try (Socket socket = new Socket(scanIp, scanPort);
|
| | | BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()))) {
|
| | | // 接收服务器响应
|
| | | socket.setSoTimeout(1000);
|
| | | String response;
|
| | | while ((response = in.readLine()) != null) {
|
| | | List<WebSocketServer> sendwServer = WebSocketServer.sessionMap.get("unloadglass");
|
| | | if (CollectionUtils.isNotEmpty(sendwServer)) {
|
| | | //按照玻璃id获取玻璃信息返回给前端界面,具体需要哪些数据待确认
|
| | | GlassInfo glassInfo = glassInfoService.getOne(new LambdaQueryWrapper<GlassInfo>()
|
| | | .eq(GlassInfo::getGlassId, response));
|
| | | if (null == glassInfo) {
|
| | | log.info("按照玻璃id:{},无法找到玻璃信息", response);
|
| | | } else {
|
| | | jsonObject.append("scanGlass",glassInfo);
|
| | | sendwServer.get(0).sendMessage(jsonObject.toString());
|
| | | new Thread(() -> {
|
| | | try (Socket socket = new Socket(scanIp, scanPort);
|
| | | BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()))) {
|
| | | // 接收服务器响应
|
| | | String response;
|
| | | log.info("等待扫码中......");
|
| | | while ((response = in.readLine()) != null) {
|
| | | log.info("扫描到的玻璃id:{}", response);
|
| | | List<WebSocketServer> sendwServer = WebSocketServer.sessionMap.get("scanCode");
|
| | | if (CollectionUtils.isNotEmpty(sendwServer)) {
|
| | | //按照玻璃id获取玻璃信息返回给前端界面,具体需要哪些数据待确认
|
| | | GlassInfo glassInfo = glassInfoService.getOne(new LambdaQueryWrapper<GlassInfo>()
|
| | | .eq(GlassInfo::getGlassId, response).last("limit 1"));
|
| | | if (null == glassInfo) {
|
| | | log.info("按照玻璃id:{},无法找到玻璃信息", response);
|
| | | } else {
|
| | | sendwServer.get(0).sendMessage(glassInfo.toString());
|
| | | }
|
| | | }
|
| | | }
|
| | | } catch (Exception exception) {
|
| | | log.info("读取异常,原因为{}", exception.getMessage());
|
| | | }
|
| | | } catch (Exception exception) {
|
| | | log.info("读取异常,原因为{}", exception.getMessage());
|
| | | }
|
| | | }).start();
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | active: dev |
| | | application: |
| | | name: unLoadGlass |
| | | liquibase: |
| | | enabled: false |
| | | |
| | | |
| | | mybatis-plus: |