From faa10625350a681f7720733724081b76f34ccd4a Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期四, 08 八月 2024 10:30:03 +0800
Subject: [PATCH] #

---
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/SuggestLocRuleServiceImpl.java |   12 
 zy-asrs-wms/src/main/resources/sql/menu/suggestLocRule.sql                                 |    9 
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/param/CreateSuggestLocRuleParam.java |   59 ++
 zy-asrs-wms/src/main/resources/mapper/asrs/SuggestLocRuleMapper.xml                        |    5 
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/SuggestLocRuleService.java          |    8 
 zy-asrs-admin/src/components/mat/selectMat/index.vue                                       |  356 ++++++++++++++++
 zy-asrs-admin/src/views/strategy/suggestLocRule/index.vue                                  |  265 ++++++++++++
 zy-asrs-admin/src/views/strategy/suggestLocRule/edit.vue                                   |  196 ++++++++
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/mapper/SuggestLocRuleMapper.java            |   12 
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/SuggestLocRule.java                  |  270 ++++++++++++
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/SuggestLocRuleController.java    |  117 +++++
 11 files changed, 1,309 insertions(+), 0 deletions(-)

diff --git a/zy-asrs-admin/src/components/mat/selectMat/index.vue b/zy-asrs-admin/src/components/mat/selectMat/index.vue
new file mode 100644
index 0000000..0d73d3b
--- /dev/null
+++ b/zy-asrs-admin/src/components/mat/selectMat/index.vue
@@ -0,0 +1,356 @@
+<script setup>
+import { getCurrentInstance, ref, watch, reactive } from 'vue';
+import { useRouter } from "vue-router";
+import { get, post, postForm } from '@/utils/request.js'
+import { message, Modal } from 'ant-design-vue';
+import { logout } from '@/config.js';
+import { formatMessage } from '@/utils/localeUtils.js';
+import useTableSearch from '@/utils/tableUtils.jsx';
+const context = getCurrentInstance()?.appContext.config.globalProperties;
+
+const router = useRouter();
+
+const emit = defineEmits(['handleOk'])
+
+const TABLE_KEY = 'table-mat';
+let currentPage = 1;
+let pageSize = 10;
+let tableData = ref([]);
+let selectedData = ref([]);
+let open = ref(false);
+const searchInput = ref("")
+
+const showWidth = ref("60%")
+
+const {
+    getColumnSearchProps,
+} = useTableSearch();
+
+const state = reactive({
+    selectedRowKeys: [],
+    loading: false,
+    columns: [],
+});
+const onSelectChange = (selectedRowKeys) => {
+  // console.log('selectedRowKeys changed: ', selectedRowKeys);
+  state.selectedRowKeys = selectedRowKeys;
+  selectedData.value = selectedRowKeys;
+};
+
+getColumns();
+getPage();
+
+state.columns = [
+    {
+        title: '#ID',
+        dataIndex: 'id',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('id'),
+    },
+    {
+        title: formatMessage('db.man_mat.tag_id', '鎵�灞炲綊绫�'),
+        dataIndex: 'tagId$',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('tagId$'),
+    },
+    {
+        title: formatMessage('db.man_mat.matnr', '鍟嗗搧缂栧彿'),
+        dataIndex: 'matnr',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('matnr'),
+    },
+    {
+        title: formatMessage('db.man_mat.maktx', '鍟嗗搧鍚嶇О'),
+        dataIndex: 'maktx',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('maktx'),
+    },
+    {
+        title: formatMessage('db.man_mat.name', '鍒悕'),
+        dataIndex: 'name',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('name'),
+    },
+    {
+        title: formatMessage('db.man_mat.specs', '瑙勬牸'),
+        dataIndex: 'specs',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('specs'),
+    },
+    {
+        title: formatMessage('db.man_mat.model', '鍨嬪彿'),
+        dataIndex: 'model',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('model'),
+    },
+    {
+        title: formatMessage('db.man_mat.color', '棰滆壊'),
+        dataIndex: 'color',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('color'),
+    },
+    {
+        title: formatMessage('db.man_mat.brand', '鍝佺墝'),
+        dataIndex: 'brand',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('brand'),
+    },
+    {
+        title: formatMessage('db.man_mat.unit', '鍗曚綅'),
+        dataIndex: 'unit',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('unit'),
+    },
+    {
+        title: formatMessage('db.man_mat.price', '鍗曚环'),
+        dataIndex: 'price',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('price'),
+    },
+    {
+        title: formatMessage('db.man_mat.sku', 'sku'),
+        dataIndex: 'sku',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('sku'),
+    },
+    {
+        title: formatMessage('db.man_mat.units', '鍗曚綅閲�'),
+        dataIndex: 'units',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('units'),
+    },
+    {
+        title: formatMessage('db.man_mat.barcode', '鏉$爜'),
+        dataIndex: 'barcode',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('barcode'),
+    },
+    {
+        title: formatMessage('db.man_mat.origin', '浜у湴'),
+        dataIndex: 'origin',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('origin'),
+    },
+    {
+        title: formatMessage('db.man_mat.manu', '鍘傚'),
+        dataIndex: 'manu',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('manu'),
+    },
+    {
+        title: formatMessage('db.man_mat.manu_date', '鐢熶骇鏃ユ湡'),
+        dataIndex: 'manuDate',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('manuDate'),
+    },
+    {
+        title: formatMessage('db.man_mat.item_num', '鍝侀」鏁�'),
+        dataIndex: 'itemNum',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('itemNum'),
+    },
+    {
+        title: formatMessage('db.man_mat.weight', '閲嶉噺'),
+        dataIndex: 'weight',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('weight'),
+    },
+    {
+        title: formatMessage('db.man_mat.length', '闀垮害'),
+        dataIndex: 'length',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('length'),
+    },
+    {
+        title: formatMessage('db.man_mat.volume', '浣撶Н'),
+        dataIndex: 'volume',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('volume'),
+    },
+    {
+        title: formatMessage('db.man_mat.three_code', '涓夋柟缂栫爜'),
+        dataIndex: 'threeCode',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('threeCode'),
+    },
+    {
+        title: formatMessage('db.man_mat.supp', '渚涘簲鍟�'),
+        dataIndex: 'supp',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('supp'),
+    },
+    {
+        title: formatMessage('db.man_mat.supp_code', '渚涘簲鍟嗙紪鐮�'),
+        dataIndex: 'suppCode',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('suppCode'),
+    },
+    {
+        title: formatMessage('db.man_mat.dead_time', '淇濊川鏈�'),
+        dataIndex: 'deadTime',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('deadTime'),
+    },
+
+    {
+        title: formatMessage('db.man_mat.uuid', '缂栧彿'),
+        dataIndex: 'uuid',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('uuid'),
+    },
+    {
+        title: formatMessage('db.man_mat.flag', '鏍囪瘑'),
+        dataIndex: 'flag',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('flag'),
+    },
+    {
+        title: formatMessage('db.man_mat.sort', '鎺掑簭'),
+        dataIndex: 'sort',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('sort'),
+    },
+    {
+        title: formatMessage('db.man_mat.status', '鐘舵��'),
+        dataIndex: 'status$',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('status$'),
+    },
+    {
+        title: formatMessage('db.man_mat.memo', '澶囨敞'),
+        dataIndex: 'memo',
+        width: 140,
+        ellipsis: true,
+        ...getColumnSearchProps('memo'),
+    },
+];
+
+//鍔犺浇鎵╁睍瀛楁
+async function getColumns() {
+    let fieldResp = await post('/api/matField/list', {
+        fieldType: 0
+    })
+    let fieldResult = fieldResp.data;
+    let tmp = state.columns;
+    if (fieldResult.code == 200) {
+        let data = fieldResult.data;
+
+        data.forEach((item) => {
+            tmp.push({
+                title: formatMessage(item.language, item.describe),
+                name: item.name,
+                dataIndex: item.name,
+                key: item.name,
+                width: 140,
+            })
+        })
+
+        // tmp.push({
+        //   title: formatMessage('common.operation', '鎿嶄綔'),
+        //   name: 'oper',
+        //   dataIndex: 'oper',
+        //   key: 'oper',
+        //   width: 140,
+        // })
+
+        state.columns = tmp;
+    } else if (result.code === 401) {
+        message.error(result.msg);
+        logout()
+    } else {
+        message.error(result.msg);
+    }
+}
+
+function getPage() {
+    post('/api/mat/page', {
+        current: currentPage,
+        pageSize: pageSize,
+        condition: searchInput.value
+    }).then((resp) => {
+        let result = resp.data;
+        if (result.code == 200) {
+            let data = result.data;
+            tableData.value = data.records;
+        } else if (result.code === 401) {
+            message.error(result.msg);
+            logout()
+        } else {
+            message.error(result.msg);
+        }
+    })
+}
+
+const handleOk = () => {
+    open.value = false;
+    emit('handleOk', selectedData.value)
+
+    state.selectedRowKeys = []
+    selectedData.value = []
+}
+
+const handleCancel = () => {
+    open.value = false;
+}
+
+const onSearch = () => {
+  getPage()
+}
+
+defineExpose({
+    tableData,
+    open,
+    showWidth,
+})
+
+</script>
+
+<script>
+export default {
+    name: 'selectMatComponent'
+}
+</script>
+
+<template>
+    <div>
+        <a-modal v-model:open="open" :width="showWidth" @ok="handleOk" @cancel="handleCancel">
+            <div class="table-header">
+                <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '璇疯緭鍏�')" style="width: 200px;" @search="onSearch" />
+            </div>
+            <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }" :data-source="tableData" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id"
+                :scroll="{ y: 768 }" :columns="state.columns">
+            </a-table>
+        </a-modal>
+    </div>
+</template>
+
+<style></style>
diff --git a/zy-asrs-admin/src/views/strategy/suggestLocRule/edit.vue b/zy-asrs-admin/src/views/strategy/suggestLocRule/edit.vue
new file mode 100644
index 0000000..1b78f2b
--- /dev/null
+++ b/zy-asrs-admin/src/views/strategy/suggestLocRule/edit.vue
@@ -0,0 +1,196 @@
+<script setup>
+import { ref, nextTick } from 'vue';
+import { get, post, postBlob, postForm } from '@/utils/request.js'
+import { formatMessage } from '@/utils/localeUtils.js';
+import { message } from 'ant-design-vue';
+import SelectMatView from '@/components/mat/selectMat/index.vue'
+
+const formTable = ref(null);
+const submitButton = ref(null);
+const isSave = ref(true);
+const open = ref(false);
+const selectMatChild = ref(null)
+const initFormData = {}
+let formData = ref(initFormData);
+
+const emit = defineEmits(['tableReload'])
+
+const handleOk = (e) => {
+    nextTick(() => {
+        setTimeout(() => {
+            submitButton.value.$el.click();
+        }, 100);
+    });
+};
+
+const onFinish = values => {
+    // console.log('Success:', values);
+    open.value = false;
+
+    if(isSave.value) {
+        formData.value.matIdList = formData.value.matId;
+    }
+    console.log(formData.value);
+
+    post(isSave.value ? '/api/suggestLocRule/save' : '/api/suggestLocRule/update', formData.value).then((resp) => {
+        let result = resp.data;
+        if (result.code === 200) {
+            message.success(isSave.value ? formatMessage('page.add.success', '鏂板鎴愬姛') : formatMessage('page.update.success', '鏇存柊鎴愬姛'));
+        } else {
+            message.error(result.msg);
+        }
+        emit('tableReload', 'reload')
+        nextTick(() => {
+            formTable.value.resetFields()
+        })
+    })
+};
+const onFinishFailed = errorInfo => {
+    console.log('Failed:', errorInfo);
+};
+
+const matQueryList = ref(null);
+matQuery();
+function matQuery() {
+    postForm('/api/mat/query', {}).then(resp => {
+        let result = resp.data;
+        matQueryList.value = result.data;
+    })
+}
+const userQueryList = ref(null);
+userQuery();
+function userQuery() {
+    postForm('/api/user/query', {}).then(resp => {
+        let result = resp.data;
+        userQueryList.value = result.data;
+    })
+}
+
+const handleSelectMatClick = () => {
+    selectMatChild.value.open = true;
+}
+
+const handleSelectMatOk = (result) => {
+    let tmp = [];
+
+    if(formData.value.matId != undefined) {
+        tmp = [...formData.value.matId]
+    }
+
+    result.forEach((id) => {
+        if(tmp.indexOf(id) == -1) {
+            tmp.push(id);
+        }
+    })
+
+    formData.value.matId = tmp;
+}
+
+
+defineExpose({
+    open,
+    formData,
+    initFormData,
+    isSave,
+})
+
+</script>
+
+<script>
+export default {
+    name: '鎺ㄨ崘鍖哄煙-edit'
+}
+</script>
+
+<template>
+    <div>
+        <a-modal v-model:open="open"
+            :title="isSave ? formatMessage('page.add', '娣诲姞') : formatMessage('page.edit', '缂栬緫')" @ok="handleOk"
+            style="width: 600px;">
+            <a-form :model="formData" ref="formTable" name="formTable" :label-col="{ span: 8 }"
+                :wrapper-col="{ span: 16 }" style="display: flex;justify-content: space-between;flex-wrap: wrap;"
+                autocomplete="off" @finish="onFinish" @finishFailed="onFinishFailed">
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.mat_id', '鍟嗗搧')" name="matId"
+                    style="width: 250px;" :rules="[{ required: true }]">
+                    <a-select v-model:value="formData.matId" mode="multiple" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+                        style="width: 100%" show-search :options="matQueryList" optionFilterProp="label"
+                        optionLabelProp="label" @click="handleSelectMatClick" :open="false">
+                    </a-select>
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.batch', '鎵瑰彿')" name="batch"
+                    style="width: 250px;">
+                    <a-input v-model:value="formData.batch" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.start_row', '璧峰鎺�')" name="startRow"
+                    style="width: 250px;" :rules="[{ required: true }]">
+                    <a-input v-model:value="formData.startRow" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.target_row', '缁撴潫鎺�')" name="targetRow"
+                    style="width: 250px;" :rules="[{ required: true }]">
+                    <a-input v-model:value="formData.targetRow" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.start_bay', '璧峰鍒�')" name="startBay"
+                    style="width: 250px;" :rules="[{ required: true }]">
+                    <a-input v-model:value="formData.startBay" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.target_bay', '缁撴潫鍒�')" name="targetBay"
+                    style="width: 250px;" :rules="[{ required: true }]">
+                    <a-input v-model:value="formData.targetBay" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.start_lev', '璧峰灞�')" name="startLev"
+                    style="width: 250px;" :rules="[{ required: true }]">
+                    <a-input v-model:value="formData.startLev" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.target_lev', '缁撴潫灞�')" name="targetLev"
+                    style="width: 250px;" :rules="[{ required: true }]">
+                    <a-input v-model:value="formData.targetLev" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.status', '鐘舵��')" name="status"
+                    style="width: 250px;">
+                    <a-select v-model:value="formData.status" :options="[
+                        { label: '姝e父', value: 1 },
+                        { label: '绂佺敤', value: 0 },
+                    ]">
+                    </a-select>
+                </a-form-item>
+                <!-- <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.create_time', '娣诲姞鏃堕棿')"
+                    name="createTime" style="width: 250px;">
+                    <a-date-picker v-model:value="formData.createTime" show-time format="YYYY-MM-DD HH:mm:ss"
+                        value-format="YYYY-MM-DD HH:mm:ss" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.create_by', '娣诲姞浜哄憳')" name="createBy"
+                    style="width: 250px;">
+                    <a-select v-model:value="formData.createBy" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+                        style="width: 100%" show-search :options="userQueryList" optionFilterProp="label"
+                        optionLabelProp="label">
+                    </a-select>
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.update_time', '淇敼鏃堕棿')"
+                    name="updateTime" style="width: 250px;">
+                    <a-date-picker v-model:value="formData.updateTime" show-time format="YYYY-MM-DD HH:mm:ss"
+                        value-format="YYYY-MM-DD HH:mm:ss" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.update_by', '淇敼浜哄憳')" name="updateBy"
+                    style="width: 250px;">
+                    <a-select v-model:value="formData.updateBy" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+                        style="width: 100%" show-search :options="userQueryList" optionFilterProp="label"
+                        optionLabelProp="label">
+                    </a-select>
+                </a-form-item> -->
+                <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.memo', '澶囨敞')" name="memo"
+                    style="width: 250px;">
+                    <a-input v-model:value="formData.memo" />
+                </a-form-item>
+
+                <a-form-item>
+                    <a-button type="primary" html-type="submit" ref="submitButton"
+                        style="visibility: hidden;">Submit</a-button>
+                </a-form-item>
+            </a-form>
+        </a-modal>
+
+        <SelectMatView ref="selectMatChild" @handle-ok="handleSelectMatOk" />
+    </div>
+</template>
+
+<style></style>
diff --git a/zy-asrs-admin/src/views/strategy/suggestLocRule/index.vue b/zy-asrs-admin/src/views/strategy/suggestLocRule/index.vue
new file mode 100644
index 0000000..fff97e8
--- /dev/null
+++ b/zy-asrs-admin/src/views/strategy/suggestLocRule/index.vue
@@ -0,0 +1,265 @@
+<script setup>
+import { getCurrentInstance, ref, computed, reactive } from 'vue';
+import { useRouter } from "vue-router";
+import { get, post, postBlob } from '@/utils/request.js'
+import { message, Modal } from 'ant-design-vue';
+import { logout } from '@/config.js';
+import EditView from './edit.vue'
+import { formatMessage } from '@/utils/localeUtils.js';
+import useTableSearch from '@/utils/tableUtils.jsx';
+const context = getCurrentInstance()?.appContext.config.globalProperties;
+
+const router = useRouter();
+
+const TABLE_KEY = 'table-suggestLocRule';
+let currentPage = 1;
+let pageSize = 10;
+const searchInput = ref("")
+const editChild = ref(null)
+
+let tableData = ref([]);
+getPage();
+
+const {
+  getColumnSearchProps,
+  handleResizeColumn,
+} = useTableSearch();
+
+const columns = [
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.mat_id', '鍟嗗搧'),
+    dataIndex: ['mat$','matnr'],
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('matId$'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.batch', '鎵瑰彿'),
+    dataIndex: 'batch',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('batch'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.start_row', '璧峰鎺�'),
+    dataIndex: 'startRow',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('startRow'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.target_row', '缁撴潫鎺�'),
+    dataIndex: 'targetRow',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('targetRow'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.start_bay', '璧峰鍒�'),
+    dataIndex: 'startBay',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('startBay'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.target_bay', '缁撴潫鍒�'),
+    dataIndex: 'targetBay',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('targetBay'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.start_lev', '璧峰灞�'),
+    dataIndex: 'startLev',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('startLev'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.target_lev', '缁撴潫灞�'),
+    dataIndex: 'targetLev',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('targetLev'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.status', '鐘舵��'),
+    dataIndex: 'status$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('status$'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.create_time', '娣诲姞鏃堕棿'),
+    dataIndex: 'createTime$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('createTime$'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.create_by', '娣诲姞浜哄憳'),
+    dataIndex: 'createBy$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('createBy$'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.update_time', '淇敼鏃堕棿'),
+    dataIndex: 'updateTime$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('updateTime$'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.update_by', '淇敼浜哄憳'),
+    dataIndex: 'updateBy$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('updateBy$'),
+  },
+  {
+    title: formatMessage('db.strategy_suggest_loc_rule.memo', '澶囨敞'),
+    dataIndex: 'memo',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('memo'),
+  },
+
+  {
+    title: formatMessage('common.operation', '鎿嶄綔'),
+    name: 'oper',
+    dataIndex: 'oper',
+    key: 'oper',
+    width: 140,
+    fixed: 'right',
+  },
+];
+
+const state = reactive({
+  selectedRowKeys: [],
+  loading: false,
+});
+const hasSelected = computed(() => state.selectedRowKeys.length > 0);
+const start = () => {
+  state.loading = true;
+  // ajax request after empty completing
+  setTimeout(() => {
+    state.loading = false;
+    state.selectedRowKeys = [];
+  }, 1000);
+};
+const onSelectChange = selectedRowKeys => {
+  // console.log('selectedRowKeys changed: ', selectedRowKeys);
+  state.selectedRowKeys = selectedRowKeys;
+};
+
+function getPage() {
+  post('/api/suggestLocRule/page', {
+    current: currentPage,
+    pageSize: pageSize,
+    condition: searchInput.value
+  }).then((resp) => {
+    let result = resp.data;
+    if (result.code == 200) {
+      let data = result.data;
+      tableData.value = data;
+    } else if (result.code === 401) {
+      message.error(result.msg);
+      logout()
+    } else {
+      message.error(result.msg);
+    }
+  })
+}
+
+const handleEdit = (item) => {
+  editChild.value.open = true;
+  editChild.value.formData = item == null ? editChild.value.initFormData : JSON.parse(JSON.stringify(item));
+  editChild.value.isSave = item == null;
+}
+
+const handleDel = (rows) => {
+  Modal.confirm({
+    title: formatMessage('page.delete', '鍒犻櫎'),
+    content: formatMessage('page.delete.confirm', '纭畾鍒犻櫎璇ラ」鍚楋紵'),
+    maskClosable: true,
+    onOk: async () => {
+      const hide = message.loading(formatMessage('common.loading', '璇锋眰涓�'));
+      try {
+        post('/api/suggestLocRule/remove/' + rows.map((row) => row.id).join(','), {}).then(resp => {
+          let result = resp.data;
+          if (result.code === 200) {
+            message.success(result.msg);
+          } else {
+            message.error(result.msg);
+          }
+          getPage()
+          hide()
+        })
+      } catch (error) {
+        message.error(formatMessage('common.fail', '璇锋眰澶辫触'));
+      }
+    },
+  });
+}
+
+const handleExport = async (intl) => {
+  postBlob('/api/suggestLocRule/export', {}).then(result => {
+    const blob = new Blob([result.data], { type: 'application/vnd.ms-excel' });
+    window.location.href = window.URL.createObjectURL(blob);
+    return true;
+  })
+};
+
+const onSearch = () => {
+  // console.log('search');
+  getPage()
+}
+
+const onPageChange = (page, size) => {
+  currentPage = page;
+  pageSize = size;
+  getPage();
+}
+
+function handleTableReload(value) {
+  getPage()
+}
+
+</script>
+
+<script>
+export default {
+  name: '鎺ㄨ崘鍖哄煙'
+}
+</script>
+
+<template>
+  <div>
+    <EditView ref="editChild" @tableReload="handleTableReload" />
+    <div class="table-header">
+      <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '璇疯緭鍏�')"
+        style="width: 200px;" @search="onSearch" />
+      <div class="table-header-right">
+        <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '娣诲姞') }}</a-button>
+        <a-button @click="handleExport">{{ formatMessage('page.export', '瀵煎嚭') }}</a-button>
+      </div>
+    </div>
+    <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
+      :data-source="tableData.records" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id"
+      :pagination="{ total: tableData.total, onChange: onPageChange }"
+      :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn">
+      <template #bodyCell="{ column, text, record }">
+        <template v-if="column.dataIndex === 'oper'">
+          <div style="display: flex;justify-content: space-evenly;">
+            <a-button type="link" primary @click="handleEdit(record)">{{ formatMessage('page.edit', '缂栬緫') }}</a-button>
+            <a-button type="link" danger @click="handleDel([record])">{{ formatMessage('page.delete', '鍒犻櫎')
+              }}</a-button>
+          </div>
+        </template>
+      </template>
+    </a-table>
+  </div>
+</template>
+
+<style></style>
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/SuggestLocRuleController.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/SuggestLocRuleController.java
new file mode 100644
index 0000000..cdd5f92
--- /dev/null
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/SuggestLocRuleController.java
@@ -0,0 +1,117 @@
+package com.zy.asrs.wms.asrs.controller;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.zy.asrs.framework.common.Cools;
+import com.zy.asrs.framework.common.R;
+import com.zy.asrs.framework.exception.CoolException;
+import com.zy.asrs.wms.asrs.entity.param.CreateSuggestLocRuleParam;
+import com.zy.asrs.wms.common.annotation.OperationLog;
+import com.zy.asrs.wms.common.domain.BaseParam;
+import com.zy.asrs.wms.common.domain.KeyValVo;
+import com.zy.asrs.wms.common.domain.PageParam;
+import com.zy.asrs.wms.asrs.entity.SuggestLocRule;
+import com.zy.asrs.wms.asrs.service.SuggestLocRuleService;
+import com.zy.asrs.wms.system.controller.BaseController;
+import com.zy.asrs.wms.utils.ExcelUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/api")
+public class SuggestLocRuleController extends BaseController {
+
+    @Autowired
+    private SuggestLocRuleService suggestLocRuleService;
+
+    @PreAuthorize("hasAuthority('asrs:suggestLocRule:list')")
+    @PostMapping("/suggestLocRule/page")
+    public R page(@RequestBody Map<String, Object> map) {
+        BaseParam baseParam = buildParam(map, BaseParam.class);
+        PageParam<SuggestLocRule, BaseParam> pageParam = new PageParam<>(baseParam, SuggestLocRule.class);
+        return R.ok().add(suggestLocRuleService.page(pageParam, pageParam.buildWrapper(true)));
+    }
+
+    @PreAuthorize("hasAuthority('asrs:suggestLocRule:list')")
+    @PostMapping("/suggestLocRule/list")
+    public R list(@RequestBody Map<String, Object> map) {
+        return R.ok().add(suggestLocRuleService.list());
+    }
+
+    @PreAuthorize("hasAuthority('asrs:suggestLocRule:list')")
+    @GetMapping("/suggestLocRule/{id}")
+    public R get(@PathVariable("id") Long id) {
+        return R.ok().add(suggestLocRuleService.getById(id));
+    }
+
+    @PreAuthorize("hasAuthority('asrs:suggestLocRule:save')")
+    @OperationLog("娣诲姞鎺ㄨ崘鍖哄煙")
+    @PostMapping("/suggestLocRule/save")
+    @Transactional
+    public R save(@RequestBody CreateSuggestLocRuleParam param) {
+        List<Long> matIdList = param.getMatIdList();
+        if (matIdList.isEmpty()) {
+            return R.error("璇烽�夋嫨鍟嗗搧淇℃伅");
+        }
+
+        for (Long mat : matIdList) {
+            SuggestLocRule suggestLocRule = new SuggestLocRule();
+            suggestLocRule.sync(param);
+            suggestLocRule.setMatId(mat);
+            if (!suggestLocRuleService.save(suggestLocRule)) {
+                throw new CoolException("娣诲姞鎺ㄨ崘鍖哄煙澶辫触");
+            }
+        }
+
+        return R.ok("娣诲姞鎴愬姛");
+    }
+
+    @PreAuthorize("hasAuthority('asrs:suggestLocRule:update')")
+    @OperationLog("淇敼鎺ㄨ崘鍖哄煙")
+    @PostMapping("/suggestLocRule/update")
+    public R update(@RequestBody SuggestLocRule suggestLocRule) {
+        if (!suggestLocRuleService.updateById(suggestLocRule)) {
+            return R.error("淇敼澶辫触");
+        }
+        return R.ok("淇敼鎴愬姛");
+    }
+
+    @PreAuthorize("hasAuthority('asrs:suggestLocRule:remove')")
+    @OperationLog("鍒犻櫎鎺ㄨ崘鍖哄煙")
+    @PostMapping("/suggestLocRule/remove/{ids}")
+    public R remove(@PathVariable Long[] ids) {
+        if (!suggestLocRuleService.removeByIds(Arrays.asList(ids))) {
+            return R.error("鍒犻櫎澶辫触");
+        }
+        return R.ok("鍒犻櫎鎴愬姛");
+    }
+
+    @PreAuthorize("hasAuthority('asrs:suggestLocRule:list')")
+    @PostMapping("/suggestLocRule/query")
+    public R query(@RequestParam(required = false) String condition) {
+        List<KeyValVo> vos = new ArrayList<>();
+        LambdaQueryWrapper<SuggestLocRule> wrapper = new LambdaQueryWrapper<>();
+        if (!Cools.isEmpty(condition)) {
+            wrapper.like(SuggestLocRule::getId, condition);
+        }
+        suggestLocRuleService.page(new Page<>(1, 30), wrapper).getRecords().forEach(
+                item -> vos.add(new KeyValVo(item.getId(), item.getId()))
+        );
+        return R.ok().add(vos);
+    }
+
+    @PreAuthorize("hasAuthority('asrs:suggestLocRule:list')")
+    @PostMapping("/suggestLocRule/export")
+    public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception {
+        ExcelUtil.build(ExcelUtil.create(suggestLocRuleService.list(), SuggestLocRule.class), response);
+    }
+
+}
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/SuggestLocRule.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/SuggestLocRule.java
new file mode 100644
index 0000000..0da2db1
--- /dev/null
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/SuggestLocRule.java
@@ -0,0 +1,270 @@
+package com.zy.asrs.wms.asrs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import com.zy.asrs.wms.asrs.service.MatService;
+import com.zy.asrs.wms.system.entity.Host;
+import com.zy.asrs.wms.system.entity.User;
+import org.springframework.format.annotation.DateTimeFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import com.zy.asrs.framework.common.Cools;
+import com.zy.asrs.framework.common.SpringUtils;
+import com.zy.asrs.wms.system.service.UserService;
+import com.zy.asrs.wms.system.service.HostService;
+import com.zy.asrs.common.utils.Synchro;
+
+import java.io.Serializable;
+import java.util.Date;
+
+@Data
+@TableName("strategy_suggest_loc_rule")
+public class SuggestLocRule implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * ID
+     */
+    @ApiModelProperty(value= "ID")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 鍟嗗搧
+     */
+    @ApiModelProperty(value= "鍟嗗搧")
+    private Long matId;
+
+    /**
+     * 鎵瑰彿
+     */
+    @ApiModelProperty(value= "鎵瑰彿")
+    private String batch;
+
+    /**
+     * 璧峰鎺�
+     */
+    @ApiModelProperty(value= "璧峰鎺�")
+    private Integer startRow;
+
+    /**
+     * 缁撴潫鎺�
+     */
+    @ApiModelProperty(value= "缁撴潫鎺�")
+    private Integer targetRow;
+
+    /**
+     * 璧峰鍒�
+     */
+    @ApiModelProperty(value= "璧峰鍒�")
+    private Integer startBay;
+
+    /**
+     * 缁撴潫鍒�
+     */
+    @ApiModelProperty(value= "缁撴潫鍒�")
+    private Integer targetBay;
+
+    /**
+     * 璧峰灞�
+     */
+    @ApiModelProperty(value= "璧峰灞�")
+    private Integer startLev;
+
+    /**
+     * 缁撴潫灞�
+     */
+    @ApiModelProperty(value= "缁撴潫灞�")
+    private Integer targetLev;
+
+    /**
+     * 鎵�灞炴満鏋�
+     */
+    @ApiModelProperty(value= "鎵�灞炴満鏋�")
+    private Long hostId;
+
+    /**
+     * 鐘舵�� 1: 姝e父  0: 绂佺敤  
+     */
+    @ApiModelProperty(value= "鐘舵�� 1: 姝e父  0: 绂佺敤  ")
+    private Integer status;
+
+    /**
+     * 鏄惁鍒犻櫎 1: 鏄�  0: 鍚�  
+     */
+    @ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄�  0: 鍚�  ")
+    @TableLogic
+    private Integer deleted;
+
+    /**
+     * 娣诲姞鏃堕棿
+     */
+    @ApiModelProperty(value= "娣诲姞鏃堕棿")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    /**
+     * 娣诲姞浜哄憳
+     */
+    @ApiModelProperty(value= "娣诲姞浜哄憳")
+    private Long createBy;
+
+    /**
+     * 淇敼鏃堕棿
+     */
+    @ApiModelProperty(value= "淇敼鏃堕棿")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    /**
+     * 淇敼浜哄憳
+     */
+    @ApiModelProperty(value= "淇敼浜哄憳")
+    private Long updateBy;
+
+    /**
+     * 澶囨敞
+     */
+    @ApiModelProperty(value= "澶囨敞")
+    private String memo;
+
+    public SuggestLocRule() {}
+
+    public SuggestLocRule(Long matId,String batch,Integer startRow,Integer targetRow,Integer startBay,Integer targetBay,Integer startLev,Integer targetLev,Long hostId,Integer status,Integer deleted,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) {
+        this.matId = matId;
+        this.batch = batch;
+        this.startRow = startRow;
+        this.targetRow = targetRow;
+        this.startBay = startBay;
+        this.targetBay = targetBay;
+        this.startLev = startLev;
+        this.targetLev = targetLev;
+        this.hostId = hostId;
+        this.status = status;
+        this.deleted = deleted;
+        this.createTime = createTime;
+        this.createBy = createBy;
+        this.updateTime = updateTime;
+        this.updateBy = updateBy;
+        this.memo = memo;
+    }
+
+//    SuggestLocRule suggestLocRule = new SuggestLocRule(
+//            null,    // 鍟嗗搧
+//            null,    // 鎵瑰彿
+//            null,    // 璧峰鎺�
+//            null,    // 缁撴潫鎺�
+//            null,    // 璧峰鍒�
+//            null,    // 缁撴潫鍒�
+//            null,    // 璧峰灞�
+//            null,    // 缁撴潫灞�
+//            null,    // 鎵�灞炴満鏋�
+//            null,    // 鐘舵��
+//            null,    // 鏄惁鍒犻櫎
+//            null,    // 娣诲姞鏃堕棿
+//            null,    // 娣诲姞浜哄憳
+//            null,    // 淇敼鏃堕棿
+//            null,    // 淇敼浜哄憳
+//            null    // 澶囨敞
+//    );
+
+    public Mat getMat$(){
+        MatService service = SpringUtils.getBean(MatService.class);
+        Mat mat = service.getById(this.matId);
+        if (!Cools.isEmpty(mat)){
+            return mat;
+        }
+        return null;
+    }
+
+    public String getMatId$(){
+        MatService service = SpringUtils.getBean(MatService.class);
+        Mat mat = service.getById(this.matId);
+        if (!Cools.isEmpty(mat)){
+            return String.valueOf(mat.getId());
+        }
+        return null;
+    }
+
+    public String getHostId$(){
+        HostService service = SpringUtils.getBean(HostService.class);
+        Host host = service.getById(this.hostId);
+        if (!Cools.isEmpty(host)){
+            return String.valueOf(host.getName());
+        }
+        return null;
+    }
+
+    public String getStatus$(){
+        if (null == this.status){ return null; }
+        switch (this.status){
+            case 1:
+                return "姝e父";
+            case 0:
+                return "绂佺敤";
+            default:
+                return String.valueOf(this.status);
+        }
+    }
+
+    public String getDeleted$(){
+        if (null == this.deleted){ return null; }
+        switch (this.deleted){
+            case 1:
+                return "鏄�";
+            case 0:
+                return "鍚�";
+            default:
+                return String.valueOf(this.deleted);
+        }
+    }
+
+    public String getCreateTime$(){
+        if (Cools.isEmpty(this.createTime)){
+            return "";
+        }
+        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
+    }
+
+    public String getCreateBy$(){
+        UserService service = SpringUtils.getBean(UserService.class);
+        User user = service.getById(this.createBy);
+        if (!Cools.isEmpty(user)){
+            return String.valueOf(user.getNickname());
+        }
+        return null;
+    }
+
+    public String getUpdateTime$(){
+        if (Cools.isEmpty(this.updateTime)){
+            return "";
+        }
+        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
+    }
+
+    public String getUpdateBy$(){
+        UserService service = SpringUtils.getBean(UserService.class);
+        User user = service.getById(this.updateBy);
+        if (!Cools.isEmpty(user)){
+            return String.valueOf(user.getNickname());
+        }
+        return null;
+    }
+
+
+
+    public void sync(Object source) {
+        Synchro.Copy(source, this);
+    }
+}
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/param/CreateSuggestLocRuleParam.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/param/CreateSuggestLocRuleParam.java
new file mode 100644
index 0000000..2def511
--- /dev/null
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/param/CreateSuggestLocRuleParam.java
@@ -0,0 +1,59 @@
+package com.zy.asrs.wms.asrs.entity.param;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class CreateSuggestLocRuleParam {
+
+    /**
+     * 鍟嗗搧
+     */
+    @ApiModelProperty(value= "鍟嗗搧")
+    private List<Long> matIdList;
+
+    /**
+     * 鎵瑰彿
+     */
+    @ApiModelProperty(value= "鎵瑰彿")
+    private String batch;
+
+    /**
+     * 璧峰鎺�
+     */
+    @ApiModelProperty(value= "璧峰鎺�")
+    private Integer startRow;
+
+    /**
+     * 缁撴潫鎺�
+     */
+    @ApiModelProperty(value= "缁撴潫鎺�")
+    private Integer targetRow;
+
+    /**
+     * 璧峰鍒�
+     */
+    @ApiModelProperty(value= "璧峰鍒�")
+    private Integer startBay;
+
+    /**
+     * 缁撴潫鍒�
+     */
+    @ApiModelProperty(value= "缁撴潫鍒�")
+    private Integer targetBay;
+
+    /**
+     * 璧峰灞�
+     */
+    @ApiModelProperty(value= "璧峰灞�")
+    private Integer startLev;
+
+    /**
+     * 缁撴潫灞�
+     */
+    @ApiModelProperty(value= "缁撴潫灞�")
+    private Integer targetLev;
+
+}
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/mapper/SuggestLocRuleMapper.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/mapper/SuggestLocRuleMapper.java
new file mode 100644
index 0000000..21a0c0e
--- /dev/null
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/mapper/SuggestLocRuleMapper.java
@@ -0,0 +1,12 @@
+package com.zy.asrs.wms.asrs.mapper;
+
+import com.zy.asrs.wms.asrs.entity.SuggestLocRule;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Repository;
+
+@Mapper
+@Repository
+public interface SuggestLocRuleMapper extends BaseMapper<SuggestLocRule> {
+
+}
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/SuggestLocRuleService.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/SuggestLocRuleService.java
new file mode 100644
index 0000000..37bcfa9
--- /dev/null
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/SuggestLocRuleService.java
@@ -0,0 +1,8 @@
+package com.zy.asrs.wms.asrs.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.zy.asrs.wms.asrs.entity.SuggestLocRule;
+
+public interface SuggestLocRuleService extends IService<SuggestLocRule> {
+
+}
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/SuggestLocRuleServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/SuggestLocRuleServiceImpl.java
new file mode 100644
index 0000000..ce625c3
--- /dev/null
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/SuggestLocRuleServiceImpl.java
@@ -0,0 +1,12 @@
+package com.zy.asrs.wms.asrs.service.impl;
+
+import com.zy.asrs.wms.asrs.mapper.SuggestLocRuleMapper;
+import com.zy.asrs.wms.asrs.entity.SuggestLocRule;
+import com.zy.asrs.wms.asrs.service.SuggestLocRuleService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+@Service("suggestLocRuleService")
+public class SuggestLocRuleServiceImpl extends ServiceImpl<SuggestLocRuleMapper, SuggestLocRule> implements SuggestLocRuleService {
+
+}
diff --git a/zy-asrs-wms/src/main/resources/mapper/asrs/SuggestLocRuleMapper.xml b/zy-asrs-wms/src/main/resources/mapper/asrs/SuggestLocRuleMapper.xml
new file mode 100644
index 0000000..2d206dd
--- /dev/null
+++ b/zy-asrs-wms/src/main/resources/mapper/asrs/SuggestLocRuleMapper.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zy.asrs.wms.asrs.mapper.SuggestLocRuleMapper">
+
+</mapper>
diff --git a/zy-asrs-wms/src/main/resources/sql/menu/suggestLocRule.sql b/zy-asrs-wms/src/main/resources/sql/menu/suggestLocRule.sql
new file mode 100644
index 0000000..9f9bf31
--- /dev/null
+++ b/zy-asrs-wms/src/main/resources/sql/menu/suggestLocRule.sql
@@ -0,0 +1,9 @@
+-- save suggestLocRule record
+-- mysql
+insert into `sys_menu` ( `name`, `parent_id`, `route`, `component`, `type`, `sort`, `host_id`, `status`) values ( '鎺ㄨ崘鍖哄煙绠$悊', '0', '/asrs/suggestLocRule', '/asrs/suggestLocRule', '0' , '0', '1' , '1');
+
+insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `host_id`, `status`) values ( '鏌ヨ鎺ㄨ崘鍖哄煙', '', '1', 'asrs:suggestLocRule:list', '0', '1', '1');
+insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `host_id`, `status`) values ( '娣诲姞鎺ㄨ崘鍖哄煙', '', '1', 'asrs:suggestLocRule:save', '1', '1', '1');
+insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `host_id`, `status`) values ( '淇敼鎺ㄨ崘鍖哄煙', '', '1', 'asrs:suggestLocRule:update', '2', '1', '1');
+insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `host_id`, `status`) values ( '鍒犻櫎鎺ㄨ崘鍖哄煙', '', '1', 'asrs:suggestLocRule:remove', '3', '1', '1');
+

--
Gitblit v1.9.1