厨房设置该表

This commit is contained in:
sxu 2025-06-20 09:26:30 +08:00
parent d290b2d72b
commit 068687e02a
1 changed files with 8 additions and 8 deletions

View File

@ -5,8 +5,8 @@ import java.time.LocalDateTime;
import java.util.*; import java.util.*;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import com.bonus.canteen.core.basic.domain.BasicSetting; import com.bonus.canteen.core.kitchen.domain.KitchenSetting;
import com.bonus.canteen.core.basic.mapper.BasicSettingMapper; import com.bonus.canteen.core.kitchen.mapper.KitchenSettingMapper;
import com.bonus.canteen.core.kitchen.domain.AccessAuthority; import com.bonus.canteen.core.kitchen.domain.AccessAuthority;
import com.bonus.canteen.core.kitchen.domain.KitchenDeviceInfo; import com.bonus.canteen.core.kitchen.domain.KitchenDeviceInfo;
import com.bonus.canteen.core.kitchen.domain.KitchenStaffDevicePrivilege; import com.bonus.canteen.core.kitchen.domain.KitchenStaffDevicePrivilege;
@ -49,7 +49,7 @@ public class KitchenStaffInfoServiceImpl implements IKitchenStaffInfoService {
@Autowired @Autowired
private KitchenDeviceInfoMapper kitchenDeviceInfoMapper; private KitchenDeviceInfoMapper kitchenDeviceInfoMapper;
@Autowired @Autowired
private BasicSettingMapper basicSettingMapper; private KitchenSettingMapper kitchenSettingMapper;
/** /**
* 查询厨房员工资料 * 查询厨房员工资料
@ -96,14 +96,14 @@ public class KitchenStaffInfoServiceImpl implements IKitchenStaffInfoService {
kitchenStaffInfo.setEncryptedSearchValue(encryptedSearchValue); kitchenStaffInfo.setEncryptedSearchValue(encryptedSearchValue);
List<KitchenStaffInfo> kitchenStaffInfoList = kitchenStaffInfoMapper.selectKitchenStaffInfoList(kitchenStaffInfo); List<KitchenStaffInfo> kitchenStaffInfoList = kitchenStaffInfoMapper.selectKitchenStaffInfoList(kitchenStaffInfo);
if(CollUtil.isNotEmpty(kitchenStaffInfoList)) { if(CollUtil.isNotEmpty(kitchenStaffInfoList)) {
BasicSetting basicSetting = new BasicSetting(); KitchenSetting kitchenSetting = new KitchenSetting();
basicSetting.setItemName("staff_health_cert_left_day_reminder"); kitchenSetting.setItemName("staff_health_cert_left_day_reminder");
List<BasicSetting> basicSettingList = basicSettingMapper.selectBasicSettingList(basicSetting); List<KitchenSetting> kitchenSettingList = kitchenSettingMapper.selectKitchenSettingList(kitchenSetting);
Long reminderDays = null; Long reminderDays = null;
if(CollUtil.isEmpty(basicSettingList)) { if(CollUtil.isEmpty(kitchenSettingList)) {
reminderDays = 30L; reminderDays = 30L;
}else { }else {
reminderDays = basicSettingList.get(0).getItemValue() == null ? 30L : Long.parseLong(basicSettingList.get(0).getItemValue()); reminderDays = kitchenSettingList.get(0).getItemValue() == null ? 30L : Long.parseLong(kitchenSettingList.get(0).getItemValue());
} }
for (KitchenStaffInfo info : kitchenStaffInfoList) { for (KitchenStaffInfo info : kitchenStaffInfoList) {
info.setPhonenumber(SM4EncryptUtils.sm4Decrypt(info.getPhonenumber())); info.setPhonenumber(SM4EncryptUtils.sm4Decrypt(info.getPhonenumber()));