shasha 1 mesiac pred
rodič
commit
ad14d4676f
14 zmenil súbory, kde vykonal 199 pridanie a 60 odobranie
  1. 15 3
      snowy-admin-web/src/views/biz/bizloadpoint/index.vue
  2. 35 35
      snowy-admin-web/src/views/biz/bizloadpoint/timeIndex.vue
  3. 17 8
      snowy-admin-web/src/views/biz/bizloadpoint/userIndex.vue
  4. 23 9
      snowy-admin-web/src/views/biz/bizloadtime/index.vue
  5. 3 3
      snowy-admin-web/src/views/biz/goodsConf/index.vue
  6. 4 0
      snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadpoint/param/BizLoadPointPageParam.java
  7. 4 0
      snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadpoint/service/impl/BizLoadPointServiceImpl.java
  8. 16 1
      snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/controller/BizLoadTimeController.java
  9. 7 0
      snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/mapper/BizLoadTimeMapper.java
  10. 16 0
      snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/mapper/mapping/BizLoadTimeMapper.xml
  11. 10 0
      snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/param/BizLoadTimePageParam.java
  12. 3 0
      snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/service/BizLoadTimeService.java
  13. 43 0
      snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/service/impl/BizLoadTimeServiceImpl.java
  14. 3 1
      snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloaduser/controller/BizLoadUserController.java

+ 15 - 3
snowy-admin-web/src/views/biz/bizloadpoint/index.vue

@@ -19,7 +19,7 @@
 			</a-row>
 		</a-form>
 	</a-card>
-	<a-card :bordered="false">
+	<a-card :bordered="false" style="margin-bottom: 10px" class="mb-2">
 		<s-table
 			ref="tableRef"
 			:columns="columns"
@@ -68,9 +68,21 @@
 	const timeIndexRef = ref()
 	const toolConfig = { refresh: true, height: true, columnSetting: true, striped: false }
 	const columns = [
+		{
+			title: '序号',
+			width: 50,
+			dataIndex: 'serial',
+			align:'center'
+		},
 		{
 			title: '装货点位',
-			dataIndex: 'loadPoint'
+			dataIndex: 'loadPoint',
+			align: 'center'
+		},
+		{
+			title: '创建时间',
+			dataIndex: 'createTime',
+			align: 'center'
 		},
 	]
 	// 操作栏通过权限判断是否显示
@@ -79,7 +91,7 @@
 			title: '操作',
 			dataIndex: 'action',
 			align: 'center',
-			width: 220
+			width: 320
 		})
 	}
 	const selectedRowKeys = ref([])

+ 35 - 35
snowy-admin-web/src/views/biz/bizloadpoint/timeIndex.vue

@@ -1,31 +1,6 @@
 <template>
-	<a-drawer title="装货时间配置" :width="650" :open="visible" :destroy-on-close="true" @close="onClose">
+	<a-drawer :title="title" :width="850" :open="visible" :destroy-on-close="true" @close="onClose">
 		<a-card :bordered="false" style="margin-bottom: 10px" class="mb-2">
-			<a-form ref="searchFormRef" name="advanced_search" :model="searchFormState" class="ant-advanced-search-form">
-				<a-row :gutter="24">
-					<a-col :span="9">
-						<a-form-item label="装货开始时间" name="confStartTime">
-							<a-range-picker v-model:value="searchFormState.confStartTime" value-format="YYYY-MM-DD HH:mm" show-time allow-clear  />
-						</a-form-item>
-					</a-col>
-					<a-col :span="9">
-						<a-form-item label="装货结束时间" name="confEndTime">
-							<a-range-picker v-model:value="searchFormState.confEndTime" value-format="YYYY-MM-DD HH:mm" show-time allow-clear  />
-						</a-form-item>
-					</a-col>
-					<a-col :span="6">
-						<a-button type="primary" @click="tableRef.refresh()">查询</a-button>
-						<a-button style="margin: 0 8px" @click="reset">重置</a-button>
-						
-						<a-button type="primary" @click="formRef.onOpen()" v-if="hasPerm('bizLoadTimeAdd')">
-							<template #icon><plus-outlined /></template>
-							新增
-						</a-button>
-					</a-col>
-				</a-row>
-			</a-form>
-		</a-card>
-		<a-card :bordered="false">
 			<s-table
 				ref="tableRef"
 				:columns="columns"
@@ -33,10 +8,21 @@
 				bordered
 				:row-key="(record) => record.id"
 			>
+				<template #operator `class="table-operator">
+					<a-button type="primary" v-if="hasPerm('bizLoadTimeAdd')" @click="timeFormRef.onOpen(recordData)">
+						<template #icon>
+							<plus-outlined />
+						</template>
+						<span>新增配置</span>
+					</a-button>
+				</template>`
 				<template #bodyCell="{ column, record, index }">
 					<template v-if="column.dataIndex === 'serial'">
 						{{ index + 1 }}
 					</template>
+					<template v-if="column.dataIndex === 'beginEndTime'">
+						{{ record.beginTime + '~' + record.endTime }}
+					</template>
 					<template v-if="column.dataIndex === 'action'">
 						<a-space>
 							<a @click="formRef.onOpen(record)" v-if="hasPerm('bizLoadTimeEdit')">编辑</a>
@@ -48,7 +34,8 @@
 			</s-table>
 		</a-card>
 	</a-drawer>
-	<Form ref="formRef" @successful="tableRef.refresh()" />
+	
+	<TimeForm ref="timeFormRef" @successful="tableRef.refresh()" />
 </template>
 
 <script setup name="bizloadtime">
@@ -56,31 +43,43 @@
 	import Form from './timeform.vue'
 	import bizLoadTimeApi from '@/api/biz/bizLoadTimeApi'
 
+	const submitLoading = ref(false)
+	const toolConfig = { refresh: true, height: false, columnSetting: false, striped: false }
+	// 默认是关闭状态
+	const visible = ref(false)
 	const searchFormState = ref({})
 	const searchFormRef = ref()
 	const tableRef = ref()
-	const formRef = ref()
-	const toolConfig = { refresh: true, height: true, columnSetting: true, striped: false }
+	const timeFormRef = ref()
+	const recordData = ref()
+	const title = ref()
+
 	const columns = [
 		{
-			title: '装货点位',
-			dataIndex: 'loadPoint'
+			title: '序号',
+			width: 50,
+			dataIndex: 'serial',
+			align:'center'
 		},
 		{
 			title: '装货时间段',
-			dataIndex: 'beginTime-endTime'
+			dataIndex: 'beginEndTime',
+			align:'center'
 		},
 		{
 			title: '可预约次数',
-			dataIndex: 'availableNumber'
+			dataIndex: 'availableNumber',
+			align:'center'
 		},
 		{
 			title: '已预约日期',
-			dataIndex: 'alreadyDate'
+			dataIndex: 'alreadyDate',
+			align:'center'
 		},
 		{
 			title: '已预约次数',
-			dataIndex: 'alreadyNumber'
+			dataIndex: 'alreadyNumber',
+			align:'center'
 		},
 	]
 	// 操作栏通过权限判断是否显示
@@ -95,6 +94,7 @@
 	// 打开抽屉
 	const onOpen = (record) => {
 		recordData.value = record
+		title.value = "【" + record.loadPoint + "】-装货时间配置"
 		searchFormState.value = {
 			loadPointId: record.id
 		}

+ 17 - 8
snowy-admin-web/src/views/biz/bizloadpoint/userIndex.vue

@@ -1,18 +1,18 @@
 <template>
-	<a-drawer title="装货员配置" :width="650" :open="visible" :destroy-on-close="true" @close="onClose">
+	<a-drawer :title="title" :width="850" :open="visible" :destroy-on-close="true" @close="onClose">
 		<a-card :bordered="false" style="margin-bottom: 10px" class="mb-2">
 			<a-form ref="searchFormRef" name="advanced_search" :model="searchFormState" class="ant-advanced-search-form">
 				<a-row :gutter="24">
-					<a-col :span="6">
+					<a-col :span="12">
 						<a-form-item label="装货员" name="account">
 							<a-input v-model:value="searchFormState.account" placeholder="查询装货员" allow-clear  />
 						</a-form-item>
 					</a-col>
-					<a-col :span="6">
+					<a-col :span="12">
 						<a-button type="primary" @click="tableRef.refresh()">查询</a-button>
 						<a-button style="margin: 0 8px" @click="reset">重置</a-button>
 						
-						<a-button type="primary" @click="userFormRef.onOpen(recordData)" v-if="hasPerm('bizLoadTimeAdd')">
+						<a-button type="primary" @click="userFormRef.onOpen(recordData)" v-if="hasPerm('bizLoadTimeAdd') && recordDataNumber == 0">
 							<template #icon><plus-outlined /></template>
 							新增
 						</a-button>
@@ -61,18 +61,25 @@
 	const tableRef = ref()
 	const userFormRef = ref()
 	const recordData = ref()
+	const recordDataNumber = ref(0)
+	const title = ref()
+
 	const columns = [
 		{
-			title: '装货点位',
-			dataIndex: 'loadPoint'
+			title: '序号',
+			width: 50,
+			dataIndex: 'serial',
+			align:'center'
 		},
 		{
 			title: '装货员账号',
-			dataIndex: 'account'
+			dataIndex: 'account',
+			align:'center'
 		},
 		{
 			title: '创建时间',
-			dataIndex: 'createTime'
+			dataIndex: 'createTime',
+			align:'center'
 		},
 	]
 	// 操作栏通过权限判断是否显示
@@ -87,6 +94,7 @@
 	// 打开抽屉
 	const onOpen = (record) => {
 		recordData.value = record
+		title.value = "【" + record.loadPoint + "】-装货员配置"
 		searchFormState.value = {
 			loadPointId: record.id
 		}
@@ -95,6 +103,7 @@
 	// 加载字段数据
 	const loadData = (parameter) => {
 		return bizLoadUserApi.bizLoadUserPage(Object.assign(parameter, searchFormState.value)).then((res) => {
+			recordDataNumber.value = res.total
 			return res
 		})
 	}

+ 23 - 9
snowy-admin-web/src/views/biz/bizloadtime/index.vue

@@ -49,6 +49,9 @@
 				<template v-if="column.dataIndex === 'serial'">
 					{{ index + 1 }}
 				</template>
+				<template v-if="column.dataIndex === 'beginEndTime'">
+					{{ record.beginTime + ' ~ ' + record.endTime }}
+				</template>
 				<template v-if="column.dataIndex === 'action'">
 					<a-space>
 						<a @click="formRef.onOpen(record)" v-if="hasPerm('bizLoadTimeEdit')">编辑</a>
@@ -74,24 +77,35 @@
 	const toolConfig = { refresh: true, height: true, columnSetting: true, striped: false }
 	const columns = [
 		{
-			title: '装货点位',
-			dataIndex: 'loadPoint'
+			title: '序号',
+			width: 50,
+			dataIndex: 'serial',
+			align:'center'
 		},
 		{
-			title: '装货员',
-			dataIndex: 'loadUser'
+			title: '装货点位',
+			dataIndex: 'loadPoint',
+			align:'center'
 		},
 		{
 			title: '装货时间段',
-			dataIndex: 'beginTime-endTime'
+			dataIndex: 'beginEndTime',
+			align:'center'
+		},
+		{
+			title: '可预约次数',
+			dataIndex: 'availableNumber',
+			align:'center'
 		},
 		{
-			title: '可约次数',
-			dataIndex: 'availableNumber'
+			title: '已预约日期',
+			dataIndex: 'alreadyDate',
+			align:'center'
 		},
 		{
-			title: '已约次数',
-			dataIndex: 'alreadyNumber'
+			title: '已预约次数',
+			dataIndex: 'alreadyNumber',
+			align:'center'
 		},
 	]
 	// 操作栏通过权限判断是否显示

+ 3 - 3
snowy-admin-web/src/views/biz/goodsConf/index.vue

@@ -115,19 +115,19 @@
 		},
 		{
 			title: '货品规格',
-			width: 80,
+			width: 120,
 			dataIndex: 'goodsModel',
 			align:'center'
 		},
 		{
 			title: '提货开始时间',
-			width: 150,
+			width: 160,
 			dataIndex: 'confStartTime',
 			align:'center'
 		},
 		{
 			title: '提货结束时间',
-			width: 150,
+			width: 160,
 			dataIndex: 'confEndTime',
 			align:'center'
 		},

+ 4 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadpoint/param/BizLoadPointPageParam.java

@@ -48,4 +48,8 @@ public class BizLoadPointPageParam {
     @Schema(description = "关键词")
     private String searchKey;
 
+    /** 装货点位 */
+    @Schema(description = "装货点位")
+    private String loadPoint;
+
 }

+ 4 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadpoint/service/impl/BizLoadPointServiceImpl.java

@@ -21,6 +21,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
+import vip.xiaonuo.biz.modular.customer.entity.BizCustomer;
 import vip.xiaonuo.common.enums.CommonSortOrderEnum;
 import vip.xiaonuo.common.exception.CommonException;
 import vip.xiaonuo.common.page.CommonPageRequest;
@@ -46,6 +47,9 @@ public class BizLoadPointServiceImpl extends ServiceImpl<BizLoadPointMapper, Biz
     @Override
     public Page<BizLoadPoint> page(BizLoadPointPageParam bizLoadPointPageParam) {
         QueryWrapper<BizLoadPoint> queryWrapper = new QueryWrapper<BizLoadPoint>().checkSqlInjection();
+        if(ObjectUtil.isNotEmpty(bizLoadPointPageParam.getLoadPoint())) {
+            queryWrapper.lambda().like(BizLoadPoint::getLoadPoint, bizLoadPointPageParam.getLoadPoint());
+        }
         if(ObjectUtil.isAllNotEmpty(bizLoadPointPageParam.getSortField(), bizLoadPointPageParam.getSortOrder())) {
             CommonSortOrderEnum.validate(bizLoadPointPageParam.getSortOrder());
             queryWrapper.orderBy(true, bizLoadPointPageParam.getSortOrder().equals(CommonSortOrderEnum.ASC.getValue()),

+ 16 - 1
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/controller/BizLoadTimeController.java

@@ -56,7 +56,6 @@ public class BizLoadTimeController {
      * @date  2025/05/29 14:55
      */
     @Operation(summary = "获取装货时间配置分页")
-    @SaCheckPermission("/biz/bizloadtime/page")
     @GetMapping("/biz/bizloadtime/page")
     public CommonResult<Page<BizLoadTime>> page(BizLoadTimePageParam bizLoadTimePageParam) {
         return CommonResult.data(bizLoadTimeService.page(bizLoadTimePageParam));
@@ -70,6 +69,7 @@ public class BizLoadTimeController {
      */
     @Operation(summary = "添加装货时间配置")
     @CommonLog("添加装货时间配置")
+    @SaCheckPermission("/biz/bizloadtime/add")
     @PostMapping("/biz/bizloadtime/add")
     public CommonResult<String> add(@RequestBody @Valid BizLoadTimeAddParam bizLoadTimeAddParam) {
         bizLoadTimeService.add(bizLoadTimeAddParam);
@@ -84,6 +84,7 @@ public class BizLoadTimeController {
      */
     @Operation(summary = "编辑装货时间配置")
     @CommonLog("编辑装货时间配置")
+    @SaCheckPermission("/biz/bizloadtime/edit")
     @PostMapping("/biz/bizloadtime/edit")
     public CommonResult<String> edit(@RequestBody @Valid BizLoadTimeEditParam bizLoadTimeEditParam) {
         bizLoadTimeService.edit(bizLoadTimeEditParam);
@@ -98,6 +99,7 @@ public class BizLoadTimeController {
      */
     @Operation(summary = "删除装货时间配置")
     @CommonLog("删除装货时间配置")
+    @SaCheckPermission("/biz/bizloadtime/delete")
     @PostMapping("/biz/bizloadtime/delete")
     public CommonResult<String> delete(@RequestBody @Valid @NotEmpty(message = "集合不能为空")
                                                    List<BizLoadTimeIdParam> bizLoadTimeIdParamList) {
@@ -116,4 +118,17 @@ public class BizLoadTimeController {
     public CommonResult<BizLoadTime> detail(@Valid BizLoadTimeIdParam bizLoadTimeIdParam) {
         return CommonResult.data(bizLoadTimeService.detail(bizLoadTimeIdParam));
     }
+
+    /**
+     * 根据提货时间配置ID和装货点位ID获取装货时间配置
+     *
+     * @author sandy
+     * @date  2025/05/30 14:20
+     */
+    @Operation(summary = "根据提货时间配置ID和装货点位ID获取装货时间配置")
+    @GetMapping("/biz/bizloadtime/search")
+    public CommonResult<List<BizLoadTime>> search(@Valid BizLoadTimePageParam bizLoadTimePageParam) {
+        return CommonResult.data(bizLoadTimeService.search(bizLoadTimePageParam));
+    }
+
 }

+ 7 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/mapper/BizLoadTimeMapper.java

@@ -13,8 +13,12 @@
 package vip.xiaonuo.biz.modular.bizloadtime.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Param;
 import vip.xiaonuo.biz.modular.bizloadtime.entity.BizLoadTime;
 
+import java.util.Date;
+import java.util.List;
+
 /**
  * 装货时间配置Mapper接口
  *
@@ -22,4 +26,7 @@ import vip.xiaonuo.biz.modular.bizloadtime.entity.BizLoadTime;
  * @date  2025/05/29 14:55
  **/
 public interface BizLoadTimeMapper extends BaseMapper<BizLoadTime> {
+
+    List<BizLoadTime> getSearch(@Param("loadPointId") String loadPointId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
+
 }

+ 16 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/mapper/mapping/BizLoadTimeMapper.xml

@@ -2,4 +2,20 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="vip.xiaonuo.biz.modular.bizloadtime.mapper.BizLoadTimeMapper">
 
+    <select id="getSearch" resultType="vip.xiaonuo.biz.modular.bizloadtime.entity.BizLoadTime">
+        select
+            t.id,
+            t.point_id pointId,
+            t.begin_time beginTime,
+            t.end_time endTime,
+            t.available_number availableNumber,
+            t.already_number alreadyNumber
+        from biz_load_time t
+        where t.pointId = ${loadPointId}
+            and ${endTime} > t.beginTime
+            and t.endTime > ${startTime}
+    </select>
+
+
+
 </mapper>

+ 10 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/param/BizLoadTimePageParam.java

@@ -48,4 +48,14 @@ public class BizLoadTimePageParam {
     @Schema(description = "关键词")
     private String searchKey;
 
+    /** 点位ID */
+    @Schema(description = "点位ID")
+    private String loadPointId;
+
+    /** 提货时间配置ID */
+    @Schema(description = "提货时间配置ID")
+    private String goodsConfId;
+
+
+
 }

+ 3 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/service/BizLoadTimeService.java

@@ -70,6 +70,9 @@ public interface BizLoadTimeService extends IService<BizLoadTime> {
      */
     BizLoadTime detail(BizLoadTimeIdParam bizLoadTimeIdParam);
 
+    // 根据提货时间配置ID和装货点位ID获取装货时间配置
+    List<BizLoadTime> search(BizLoadTimePageParam bizLoadTimePageParam);
+
     /**
      * 获取装货时间配置详情
      *

+ 43 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloadtime/service/impl/BizLoadTimeServiceImpl.java

@@ -19,8 +19,15 @@ import cn.hutool.core.util.StrUtil;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.annotation.Resource;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
+import vip.xiaonuo.biz.modular.customer.entity.BizCustomer;
+import vip.xiaonuo.biz.modular.goodsConf.entity.BizGoodsConf;
+import vip.xiaonuo.biz.modular.goodsConf.service.BizGoodsConfService;
+import vip.xiaonuo.biz.modular.user.mapper.BizUserMapper;
+import vip.xiaonuo.biz.modular.user.service.BizUserService;
 import vip.xiaonuo.common.enums.CommonSortOrderEnum;
 import vip.xiaonuo.common.exception.CommonException;
 import vip.xiaonuo.common.page.CommonPageRequest;
@@ -31,7 +38,9 @@ import vip.xiaonuo.biz.modular.bizloadtime.param.BizLoadTimeEditParam;
 import vip.xiaonuo.biz.modular.bizloadtime.param.BizLoadTimeIdParam;
 import vip.xiaonuo.biz.modular.bizloadtime.param.BizLoadTimePageParam;
 import vip.xiaonuo.biz.modular.bizloadtime.service.BizLoadTimeService;
+import vip.xiaonuo.sys.api.SysUserApi;
 
+import java.util.Date;
 import java.util.List;
 
 /**
@@ -43,9 +52,21 @@ import java.util.List;
 @Service
 public class BizLoadTimeServiceImpl extends ServiceImpl<BizLoadTimeMapper, BizLoadTime> implements BizLoadTimeService {
 
+    @Resource
+    private BizUserMapper bizUserMapper;
+
+    @Resource
+    private SysUserApi sysUserApi;
+
+    @Resource
+    private BizGoodsConfService bizGoodsConfService;
+
     @Override
     public Page<BizLoadTime> page(BizLoadTimePageParam bizLoadTimePageParam) {
         QueryWrapper<BizLoadTime> queryWrapper = new QueryWrapper<BizLoadTime>().checkSqlInjection();
+        if(ObjectUtil.isNotEmpty(bizLoadTimePageParam.getLoadPointId())) {
+            queryWrapper.lambda().eq(BizLoadTime::getPointId, bizLoadTimePageParam.getLoadPointId());
+        }
         if(ObjectUtil.isAllNotEmpty(bizLoadTimePageParam.getSortField(), bizLoadTimePageParam.getSortOrder())) {
             CommonSortOrderEnum.validate(bizLoadTimePageParam.getSortOrder());
             queryWrapper.orderBy(true, bizLoadTimePageParam.getSortOrder().equals(CommonSortOrderEnum.ASC.getValue()),
@@ -83,6 +104,28 @@ public class BizLoadTimeServiceImpl extends ServiceImpl<BizLoadTimeMapper, BizLo
         return this.queryEntity(bizLoadTimeIdParam.getId());
     }
 
+    @Override
+    public List<BizLoadTime> search(BizLoadTimePageParam bizLoadTimePageParam) {
+        /** 点位ID */
+        String loadPointId = bizLoadTimePageParam.getLoadPointId();
+        /** 提货时间配置ID */
+        String goodsConfId = bizLoadTimePageParam.getGoodsConfId();
+        // 判断参数是否存在
+        if(loadPointId != null && goodsConfId != null) {
+            // 获取提货时间段
+            BizGoodsConf bizGoodsConf = bizGoodsConfService.queryEntity(goodsConfId);
+            // 开始时间
+            Date startTime = bizGoodsConf.getConfStartTime();
+            // 结束时间
+            Date endTime = bizGoodsConf.getConfEndTime();
+            // 根据时间段和装货点位ID过滤装货时间配置
+            List<BizLoadTime> list = this.baseMapper.getSearch(loadPointId, startTime, endTime);
+            return list;
+        }else{
+            return null;
+        }
+    }
+
     @Override
     public BizLoadTime queryEntity(String id) {
         BizLoadTime bizLoadTime = this.getById(id);

+ 3 - 1
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizloaduser/controller/BizLoadUserController.java

@@ -56,7 +56,6 @@ public class BizLoadUserController {
      * @date  2025/05/29 14:56
      */
     @Operation(summary = "获取装货点人员信息分页")
-    @SaCheckPermission("/biz/bizloaduser/page")
     @GetMapping("/biz/bizloaduser/page")
     public CommonResult<Page<BizLoadUser>> page(BizLoadUserPageParam bizLoadUserPageParam) {
         return CommonResult.data(bizLoadUserService.page(bizLoadUserPageParam));
@@ -70,6 +69,7 @@ public class BizLoadUserController {
      */
     @Operation(summary = "添加装货点人员信息")
     @CommonLog("添加装货点人员信息")
+    @SaCheckPermission("/biz/bizloaduser/add")
     @PostMapping("/biz/bizloaduser/add")
     public CommonResult<String> add(@RequestBody @Valid BizLoadUserAddParam bizLoadUserAddParam) {
         bizLoadUserService.add(bizLoadUserAddParam);
@@ -84,6 +84,7 @@ public class BizLoadUserController {
      */
     @Operation(summary = "编辑装货点人员信息")
     @CommonLog("编辑装货点人员信息")
+    @SaCheckPermission("/biz/bizloaduser/edit")
     @PostMapping("/biz/bizloaduser/edit")
     public CommonResult<String> edit(@RequestBody @Valid BizLoadUserEditParam bizLoadUserEditParam) {
         bizLoadUserService.edit(bizLoadUserEditParam);
@@ -98,6 +99,7 @@ public class BizLoadUserController {
      */
     @Operation(summary = "删除装货点人员信息")
     @CommonLog("删除装货点人员信息")
+    @SaCheckPermission("/biz/bizloaduser/delete")
     @PostMapping("/biz/bizloaduser/delete")
     public CommonResult<String> delete(@RequestBody @Valid @NotEmpty(message = "集合不能为空")
                                                    List<BizLoadUserIdParam> bizLoadUserIdParamList) {