Commit 583b1606 by yubin

Merge remote-tracking branch 'origin/master'

parents ebf1004d 141d9960
...@@ -112,17 +112,17 @@ ...@@ -112,17 +112,17 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
:row-key="(row) => row.materialId + '_' + row.orderId + '_' + row.warehousesName + '_' + row.locationName" :row-key="(row) => row.materialId + '_' + row.orderId + '_' + row.warehousesName + '_' + row.locationName"
> >
<el-table-column label="物料SAPNO" align="center" prop="sapNo" width="200"/> <el-table-column label="物料SAPNO" align="center" prop="sapNo" min-width="200"/>
<el-table-column label="物料名称" align="center" prop="materialName" width="200"/> <el-table-column label="物料名称" align="center" prop="materialName" min-width="200"/>
<el-table-column label="关联入库单" align="center" prop="orderId" :show-overflow-tooltip="true" width="200"/> <el-table-column label="关联入库单" align="center" prop="orderId" :show-overflow-tooltip="true" min-width="200"/>
<el-table-column label="批次号" align="center" prop="batchId" :show-overflow-tooltip="true" width="200"/> <el-table-column label="批次号" align="center" prop="batchId" :show-overflow-tooltip="true" min-width="200"/>
<el-table-column label="源仓库" align="center" prop="warehousesName" width="200"/> <el-table-column label="源仓库" align="center" prop="warehousesName" min-width="200"/>
<el-table-column label="库位" align="center" prop="locationName" width="200"/> <el-table-column label="库位" align="center" prop="locationName" min-width="200"/>
<el-table-column label="入库数量" align="center" prop="actualQuantity" width="200"/> <el-table-column label="入库数量" align="center" prop="actualQuantity" min-width="200"/>
<el-table-column label="件数" align="center" prop="actualPackages" width="200"/> <el-table-column label="件数" align="center" prop="actualPackages" min-width="200"/>
<el-table-column label="单价" align="center" prop="unitPrice" width="200"/> <el-table-column label="单价" align="center" prop="unitPrice" min-width="200"/>
<el-table-column label="入库批次物料总价" align="center" prop="totalPrice" width="200"/> <el-table-column label="入库批次物料总价" align="center" prop="totalPrice" min-width="200"/>
<el-table-column label="标签颜色" align="center" prop="labelColor" width="200"> <el-table-column label="标签颜色" align="center" prop="labelColor" min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag
:type="getDictListClass('label_color', scope.row.labelColor)" :type="getDictListClass('label_color', scope.row.labelColor)"
...@@ -132,8 +132,8 @@ ...@@ -132,8 +132,8 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="remark" width="200"/> <el-table-column label="备注" align="center" prop="remark" min-width="200"/>
<el-table-column label="入库时间" align="center" prop="inboundDate" width="200"> <el-table-column label="入库时间" align="center" prop="inboundDate" min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.inboundDate, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.inboundDate, '{y}-{m}-{d}') }}</span>
</template> </template>
......
...@@ -159,12 +159,12 @@ ...@@ -159,12 +159,12 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55" align="center" fixed /> <el-table-column type="selection" width="55" align="center" fixed />
<el-table-column label="入库单号" align="center" prop="orderId" width="200"/> <el-table-column label="入库单号" align="center" prop="orderId" min-width="200"/>
<el-table-column label="批次号" align="center" prop="batchId" width="200"/> <el-table-column label="批次号" align="center" prop="batchId" min-width="200"/>
<el-table-column label="系统编号" align="center" prop="systemNo" width="200"/> <el-table-column label="系统编号" align="center" prop="systemNo" min-width="200"/>
<!-- 新增:表格显示货主名称 --> <!-- 新增:表格显示货主名称 -->
<el-table-column label="货主" align="center" prop="ownerName" width="200"/> <el-table-column label="货主" align="center" prop="ownerName" min-width="200"/>
<el-table-column label="入库类型" align="center" prop="orderTypeId" :show-overflow-tooltip="true" width="200"> <el-table-column label="入库类型" align="center" prop="orderTypeId" :show-overflow-tooltip="true" min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag
:type="getDictListClass('inbound_outbound_type',scope.row.orderTypeId)" :type="getDictListClass('inbound_outbound_type',scope.row.orderTypeId)"
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="订单类型" align="center" prop="orderType" :show-overflow-tooltip="true" width="200"> <el-table-column label="订单类型" align="center" prop="orderType" :show-overflow-tooltip="true" min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag
:type="getDictListClass('order_type',scope.row.orderType)" :type="getDictListClass('order_type',scope.row.orderType)"
...@@ -183,15 +183,15 @@ ...@@ -183,15 +183,15 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="入库单状态" align="center" prop="orderStatus" width="200"> <el-table-column label="入库单状态" align="center" prop="orderStatus" min-width="200">
<!-- 状态显示 --> <!-- 状态显示 -->
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="getDictListClass('inbound_status',scope.row.orderStatus+'')" size="small" width="200"> <el-tag :type="getDictListClass('inbound_status',scope.row.orderStatus+'')" size="small" min-width="200">
{{ getDictLabel('inbound_status',scope.row.orderStatus+"") }} {{ getDictLabel('inbound_status',scope.row.orderStatus+"") }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="入库时间" align="center" prop="inboundDate" width="200"> <el-table-column label="入库时间" align="center" prop="inboundDate" min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.inboundDate,'{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.inboundDate,'{y}-{m}-{d}') }}</span>
</template> </template>
...@@ -694,9 +694,9 @@ export default { ...@@ -694,9 +694,9 @@ export default {
systemNo: null, systemNo: null,
batchId: null, batchId: null,
warehouseId: null, warehouseId: null,
ownerId: null, ownerId: null,
ownerName: null, ownerName: null,
ownerCode: null, ownerCode: null,
orderStatus: null, orderStatus: null,
orderType: null, orderType: null,
inboundDateStart: null, inboundDateStart: null,
......
...@@ -228,42 +228,42 @@ ...@@ -228,42 +228,42 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column type="selection" width="55" align="center" fixed /> <el-table-column type="selection" width="55" align="center" fixed />
<el-table-column label="库位编码" align="center" prop="locationCode" width="120" fixed /> <el-table-column label="库位编码" align="center" prop="locationCode" min-width="120" fixed />
<el-table-column label="库位名称" align="center" prop="locationName" width="150" /> <el-table-column label="库位名称" align="center" prop="locationName" min-width="150" />
<!-- <el-table-column label="仓库" align="center" prop="warehousesName" width="180"> <!-- <el-table-column label="仓库" align="center" prop="warehousesName" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.warehousesName }} {{ scope.row.warehousesName }}
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column label="库位类型" align="center" prop="locationType" width="100"> <el-table-column label="库位类型" align="center" prop="locationType" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.location_type" :value="scope.row.locationType"/> <dict-tag :options="dict.type.location_type" :value="scope.row.locationType"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="库位使用" align="center" prop="locationUsage" width="100"> <el-table-column label="库位使用" align="center" prop="locationUsage" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.location_usage" :value="scope.row.locationUsage"/> <dict-tag :options="dict.type.location_usage" :value="scope.row.locationUsage"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="上架区" align="center" prop="zoneCode" width="100" /> <el-table-column label="上架区" align="center" prop="zoneCode" min-width="100" />
<el-table-column label="拣货区" align="center" prop="pickingArea" width="100" /> <el-table-column label="拣货区" align="center" prop="pickingArea" min-width="100" />
<el-table-column label="允许混放产品" align="center" prop="allowMixedProducts" width="120"> <el-table-column label="允许混放产品" align="center" prop="allowMixedProducts" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.yorn" :value="scope.row.allowMixedProducts"/> <dict-tag :options="dict.type.yorn" :value="scope.row.allowMixedProducts"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="允许混放批次" align="center" prop="allowMixedBatches" width="120" > <el-table-column label="允许混放批次" align="center" prop="allowMixedBatches" min-width="120" >
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.yorn" :value="scope.row.allowMixedBatches"/> <dict-tag :options="dict.type.yorn" :value="scope.row.allowMixedBatches"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="上架顺序" align="center" prop="putawayOrder" width="100" /> <el-table-column label="上架顺序" align="center" prop="putawayOrder" min-width="100" />
<el-table-column label="拣货顺序" align="center" prop="pickingOrder" width="100" /> <el-table-column label="拣货顺序" align="center" prop="pickingOrder" min-width="100" />
<el-table-column label="库位容量(千克)" align="center" prop="capacity" width="120" /> <el-table-column label="库位容量(千克)" align="center" prop="capacity" min-width="120" />
<el-table-column label="体积容量(立方米)" align="center" prop="volumeCapacity" width="120" /> <el-table-column label="体积容量(立方米)" align="center" prop="volumeCapacity" min-width="120" />
<el-table-column label="允许存放的危险等级" align="center" prop="allowedHazardLevels" width="140" /> <el-table-column label="允许存放的危险等级" align="center" prop="allowedHazardLevels" min-width="140" />
<el-table-column label="允许存放的物料名称" align="center" prop="allowedCategoryNames" width="200"> <el-table-column label="允许存放的物料名称" align="center" prop="allowedCategoryNames" min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip <el-tooltip
:content="scope.row.allowedCategoryNames" :content="scope.row.allowedCategoryNames"
......
...@@ -171,45 +171,45 @@ ...@@ -171,45 +171,45 @@
:key="tableKey" :key="tableKey"
> >
<el-table-column type="selection" width="55" align="center" fixed /> <el-table-column type="selection" width="55" align="center" fixed />
<el-table-column label="出库单号" align="center" prop="orderId" width="150" fixed/> <el-table-column label="出库单号" align="center" prop="orderId" min-width="150" fixed/>
<el-table-column label="系统编号" align="center" prop="systemNo" width="150" /> <el-table-column label="系统编号" align="center" prop="systemNo" min-width="150" />
<el-table-column label="出库类型" align="center" prop="orderTypeId" width="120"> <el-table-column label="出库类型" align="center" prop="orderTypeId" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag v-if="dict.type.inbound_outbound_type" :options="dict.type.inbound_outbound_type" :value="scope.row.orderTypeId"/> <dict-tag v-if="dict.type.inbound_outbound_type" :options="dict.type.inbound_outbound_type" :value="scope.row.orderTypeId"/>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 新增:订单类型列 --> <!-- 新增:订单类型列 -->
<el-table-column label="订单类型" align="center" prop="orderType" width="120"> <el-table-column label="订单类型" align="center" prop="orderType" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag v-if="dict.type.order_type" :options="dict.type.order_type" :value="scope.row.orderType"/> <dict-tag v-if="dict.type.order_type" :options="dict.type.order_type" :value="scope.row.orderType"/>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="批次" align="center" prop="batchCode" width="120" /> <el-table-column label="批次" align="center" prop="batchCode" min-width="120" />
<el-table-column label="仓库" align="center" prop="warehouseName" width="120"> <el-table-column label="仓库" align="center" prop="warehouseName" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.warehouseName || '-' }} {{ scope.row.warehouseName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="货主" align="center" prop="ownerName" width="120"> <el-table-column label="货主" align="center" prop="ownerName" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.ownerName || '-' }} {{ scope.row.ownerName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="订单状态" align="center" prop="orderStatus" width="150"> <el-table-column label="订单状态" align="center" prop="orderStatus" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag v-if="dict.type.outbound_order_status" :options="dict.type.outbound_order_status" :value="scope.row.orderStatus"/> <dict-tag v-if="dict.type.outbound_order_status" :options="dict.type.outbound_order_status" :value="scope.row.orderStatus"/>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="出库日期" align="center" prop="inboundDate" width="150"> <el-table-column label="出库日期" align="center" prop="inboundDate" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.inboundDate, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.inboundDate, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="目的地" align="center" prop="destination" width="150" /> <el-table-column label="目的地" align="center" prop="destination" min-width="150" />
<el-table-column label="备注" align="center" prop="remark" width="150" /> <el-table-column label="备注" align="center" prop="remark" min-width="150" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="220" fixed="right"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="220" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 详细查看按钮 - 独立触发 --> <!-- 详细查看按钮 - 独立触发 -->
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleCheck(scope.row)" @click="handleCheck(scope.row)"
v-if="scope.row.stocktakeStatus === '1'" v-if="scope.row.stocktakeStatus !== '3'"
v-hasPermi="['inventory:stocktakes:check']" v-hasPermi="['inventory:stocktakes:check']"
>盘点</el-button> >盘点</el-button>
<el-button <el-button
......
...@@ -9,9 +9,9 @@ spring: ...@@ -9,9 +9,9 @@ spring:
master: master:
# 数据库连接地址 # 数据库连接地址
#生產 #生產
#url: jdbc:mysql://172.19.1.150:9012/inventory_manager?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&useSSL=false # url: jdbc:mysql://172.19.1.150:9012/inventory_manager?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&useSSL=false
#username: root # 数据库用户名 # username: root # 数据库用户名
#password: 'Aa123456' # password: 'Aa123456'
#測試 #測試
url: jdbc:mysql://demo.docmis.cn:23500/inventory_manager?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true url: jdbc:mysql://demo.docmis.cn:23500/inventory_manager?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true
username: root username: root
......
...@@ -41,7 +41,7 @@ logging: ...@@ -41,7 +41,7 @@ logging:
user: user:
password: password:
# 密码最大错误次数 # 密码最大错误次数
maxRetryCount: 5 maxRetryCount: 30
# 密码锁定时间(默认10分钟) # 密码锁定时间(默认10分钟)
lockTime: 10 lockTime: 10
...@@ -124,7 +124,7 @@ referer: ...@@ -124,7 +124,7 @@ referer:
# 防盗链开关 # 防盗链开关
enabled: false enabled: false
# 允许的域名列表 # 允许的域名列表
allowed-domains: localhost,127.0.0.1,ruoyi.vip,www.ruoyi.vip allowed-domains: localhost,127.0.0.1
# 防止XSS攻击 # 防止XSS攻击
xss: xss:
......
...@@ -4,6 +4,8 @@ import java.util.Collections; ...@@ -4,6 +4,8 @@ import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.config.WarehouseConfig;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -36,6 +38,7 @@ public class WarehousesController extends BaseController ...@@ -36,6 +38,7 @@ public class WarehousesController extends BaseController
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(Warehouses warehouses) public TableDataInfo list(Warehouses warehouses)
{ {
warehouses.setLocalId(WarehouseConfig.DEFAULT_WAREHOUSE_ID);
startPage(); startPage();
List<Warehouses> list = warehousesService.selectWarehousesList(warehouses); List<Warehouses> list = warehousesService.selectWarehousesList(warehouses);
return getDataTable(list); return getDataTable(list);
...@@ -49,6 +52,7 @@ public class WarehousesController extends BaseController ...@@ -49,6 +52,7 @@ public class WarehousesController extends BaseController
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, Warehouses warehouses) public void export(HttpServletResponse response, Warehouses warehouses)
{ {
warehouses.setLocalId(WarehouseConfig.DEFAULT_WAREHOUSE_ID);
List<Warehouses> list = warehousesService.selectWarehousesList(warehouses); List<Warehouses> list = warehousesService.selectWarehousesList(warehouses);
ExcelUtil<Warehouses> util = new ExcelUtil<Warehouses>(Warehouses.class); ExcelUtil<Warehouses> util = new ExcelUtil<Warehouses>(Warehouses.class);
util.exportExcel(response, list, "仓库数据"); util.exportExcel(response, list, "仓库数据");
...@@ -120,6 +124,7 @@ public class WarehousesController extends BaseController ...@@ -120,6 +124,7 @@ public class WarehousesController extends BaseController
@GetMapping("/listForSelector") @GetMapping("/listForSelector")
public TableDataInfo listForSelector(Warehouses warehouses) public TableDataInfo listForSelector(Warehouses warehouses)
{ {
warehouses.setLocalId(WarehouseConfig.DEFAULT_WAREHOUSE_ID);
startPage(); startPage();
List<Warehouses> list = warehousesService.selectWarehousesList(warehouses); List<Warehouses> list = warehousesService.selectWarehousesList(warehouses);
return getDataTable(list); return getDataTable(list);
......
package com.ruoyi.inventory.domain; package com.ruoyi.inventory.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
...@@ -11,6 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity; ...@@ -11,6 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi * @author ruoyi
* @date 2025-12-01 * @date 2025-12-01
*/ */
@Data
public class Warehouses extends BaseEntity public class Warehouses extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -68,6 +70,8 @@ public class Warehouses extends BaseEntity ...@@ -68,6 +70,8 @@ public class Warehouses extends BaseEntity
/** 排序号 */ /** 排序号 */
private String updateUserCode; private String updateUserCode;
private String localId;
public void setId(String id) public void setId(String id)
{ {
this.id = id; this.id = id;
......
...@@ -364,8 +364,8 @@ ...@@ -364,8 +364,8 @@
FROM inbound_orders io FROM inbound_orders io
INNER JOIN inbound_order_items ioi ON io.id = ioi.inbound_order_id INNER JOIN inbound_order_items ioi ON io.id = ioi.inbound_order_id
INNER JOIN materials ms ON ms.id = ioi.material_id INNER JOIN materials ms ON ms.id = ioi.material_id
inner join warehouses w on ioi.warehouse_id = w.id left join warehouses w on ioi.warehouse_id = w.id
inner join storage_locations sl on ioi.location_id = sl.id left join storage_locations sl on ioi.location_id = sl.id
<where> <where>
io.order_status = 2 io.order_status = 2
<if test="sapNo != null and sapNo != ''"> <if test="sapNo != null and sapNo != ''">
......
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
<select id="selectstocktakeItemsList" resultMap="StocktakeItemsResult"> <select id="selectstocktakeItemsList" resultMap="StocktakeItemsResult">
select id as inventory_id,material_id, batch_id, location_id, warehouses_id as warehouse_id, quantity as system_quantity select id as inventory_id,material_id, batch_id, location_id, warehouses_id as warehouse_id, quantity as system_quantity
from inventory from inventory
where is_used = 1 and inventory_status = 1 where is_used = 1 and inventory_status = 1 and quantity != 0
order by warehouse_id,location_id,material_id order by warehouse_id,location_id,material_id
</select> </select>
......
...@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectWarehousesList" parameterType="Warehouses" resultMap="WarehousesResult"> <select id="selectWarehousesList" parameterType="Warehouses" resultMap="WarehousesResult">
<include refid="selectWarehousesVo"/> <include refid="selectWarehousesVo"/>
where is_used=1 where is_used=1 and id != #{localId}
<if test="warehousesCode != null and warehousesCode != ''"> and warehouses_code = #{warehousesCode}</if> <if test="warehousesCode != null and warehousesCode != ''"> and warehouses_code = #{warehousesCode}</if>
<if test="warehousesName != null and warehousesName != ''"> and warehouses_name like concat('%', #{warehousesName}, '%')</if> <if test="warehousesName != null and warehousesName != ''"> and warehouses_name like concat('%', #{warehousesName}, '%')</if>
<if test="warehouseType != null "> and warehouse_type = #{warehouseType}</if> <if test="warehouseType != null "> and warehouse_type = #{warehouseType}</if>
...@@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<!-- 获取仓库 的 warehouses_code 仓库编码 warehouses_name 做成字典--> <!-- 获取仓库 的 warehouses_code 仓库编码 warehouses_name 做成字典-->
<select id="getMapList" resultType="java.util.Map"> <select id="getMapList" resultType="java.util.Map">
select id, IFNULL(warehouses_name, '') as warehouses_name from warehouses where is_used = 1; select id, IFNULL(warehouses_name, '') as warehouses_name from warehouses where is_used = 1 and id != 'local';
</select> </select>
<insert id="insertWarehouses" parameterType="Warehouses"> <insert id="insertWarehouses" parameterType="Warehouses">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论