智慧厨房-log

This commit is contained in:
gaowdong 2025-06-27 16:05:26 +08:00
parent cfac874002
commit e02b958d46
9 changed files with 52 additions and 1 deletions

View File

@ -8,6 +8,8 @@ import com.bonus.common.log.enums.OperaType;
//import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit; //import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -36,6 +38,8 @@ import com.bonus.common.core.web.page.TableDataInfo;
@RestController @RestController
@RequestMapping("/kitchen_device_sensor_record") @RequestMapping("/kitchen_device_sensor_record")
public class KitchenDeviceSensorRecordController extends BaseController { public class KitchenDeviceSensorRecordController extends BaseController {
private static final Logger log = LoggerFactory.getLogger(KitchenDeviceSensorRecordController.class);
@Autowired @Autowired
private IKitchenDeviceSensorRecordService kitchenDeviceSensorRecordService; private IKitchenDeviceSensorRecordService kitchenDeviceSensorRecordService;
@ -87,6 +91,7 @@ public class KitchenDeviceSensorRecordController extends BaseController {
try { try {
return toAjax(kitchenDeviceSensorRecordService.insertKitchenDeviceSensorRecord(kitchenDeviceSensorRecord)); return toAjax(kitchenDeviceSensorRecordService.insertKitchenDeviceSensorRecord(kitchenDeviceSensorRecord));
} catch (Exception e) { } catch (Exception e) {
log.error("新增厨房后场设备传感器记录失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }
@ -103,6 +108,7 @@ public class KitchenDeviceSensorRecordController extends BaseController {
try { try {
return toAjax(kitchenDeviceSensorRecordService.updateKitchenDeviceSensorRecord(kitchenDeviceSensorRecord)); return toAjax(kitchenDeviceSensorRecordService.updateKitchenDeviceSensorRecord(kitchenDeviceSensorRecord));
} catch (Exception e) { } catch (Exception e) {
log.error("修改厨房后场设备传感器记录失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }

View File

@ -8,6 +8,8 @@ import com.bonus.common.log.enums.OperaType;
//import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit; //import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -36,6 +38,8 @@ import com.bonus.common.core.web.page.TableDataInfo;
@RestController @RestController
@RequestMapping("/kitchen_sample_cabinet_record") @RequestMapping("/kitchen_sample_cabinet_record")
public class KitchenSampleCabinetRecordController extends BaseController { public class KitchenSampleCabinetRecordController extends BaseController {
private static final Logger log = LoggerFactory.getLogger(KitchenSampleCabinetRecordController.class);
@Autowired @Autowired
private IKitchenSampleCabinetRecordService kitchenSampleCabinetRecordService; private IKitchenSampleCabinetRecordService kitchenSampleCabinetRecordService;
@ -87,6 +91,7 @@ public class KitchenSampleCabinetRecordController extends BaseController {
try { try {
return toAjax(kitchenSampleCabinetRecordService.insertKitchenSampleCabinetRecord(kitchenSampleCabinetRecord)); return toAjax(kitchenSampleCabinetRecordService.insertKitchenSampleCabinetRecord(kitchenSampleCabinetRecord));
} catch (Exception e) { } catch (Exception e) {
log.error("新增留样柜操作记录失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }
@ -103,6 +108,7 @@ public class KitchenSampleCabinetRecordController extends BaseController {
try { try {
return toAjax(kitchenSampleCabinetRecordService.updateKitchenSampleCabinetRecord(kitchenSampleCabinetRecord)); return toAjax(kitchenSampleCabinetRecordService.updateKitchenSampleCabinetRecord(kitchenSampleCabinetRecord));
} catch (Exception e) { } catch (Exception e) {
log.error("修改留样柜操作记录失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }

View File

@ -8,6 +8,8 @@ import com.bonus.common.log.enums.OperaType;
//import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit; //import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -36,6 +38,8 @@ import com.bonus.common.core.web.page.TableDataInfo;
@RestController @RestController
@RequestMapping("/kitchen_sample_dishes_record") @RequestMapping("/kitchen_sample_dishes_record")
public class KitchenSampleDishesRecordController extends BaseController { public class KitchenSampleDishesRecordController extends BaseController {
private static final Logger log = LoggerFactory.getLogger(KitchenSampleDishesRecordController.class);
@Autowired @Autowired
private IKitchenSampleDishesRecordService kitchenSampleDishesRecordService; private IKitchenSampleDishesRecordService kitchenSampleDishesRecordService;
@ -87,6 +91,7 @@ public class KitchenSampleDishesRecordController extends BaseController {
try { try {
return AjaxResult.success(kitchenSampleDishesRecordService.insertKitchenSampleDishesRecord(kitchenSampleDishesRecord)); return AjaxResult.success(kitchenSampleDishesRecordService.insertKitchenSampleDishesRecord(kitchenSampleDishesRecord));
} catch (Exception e) { } catch (Exception e) {
log.error("新增留样机留样清单失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }
@ -103,6 +108,7 @@ public class KitchenSampleDishesRecordController extends BaseController {
try { try {
return toAjax(kitchenSampleDishesRecordService.updateKitchenSampleDishesRecord(kitchenSampleDishesRecord)); return toAjax(kitchenSampleDishesRecordService.updateKitchenSampleDishesRecord(kitchenSampleDishesRecord));
} catch (Exception e) { } catch (Exception e) {
log.error("修改留样机留样清单失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }

View File

@ -8,6 +8,8 @@ import com.bonus.common.log.enums.OperaType;
//import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit; //import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -36,6 +38,8 @@ import com.bonus.common.core.web.page.TableDataInfo;
@RestController @RestController
@RequestMapping("/kitchen_staff_illegal_warning") @RequestMapping("/kitchen_staff_illegal_warning")
public class KitchenStaffIllegalWarningController extends BaseController { public class KitchenStaffIllegalWarningController extends BaseController {
private static final Logger log = LoggerFactory.getLogger(KitchenStaffIllegalWarningController.class);
@Autowired @Autowired
private IKitchenStaffIllegalWarningService kitchenStaffIllegalWarningService; private IKitchenStaffIllegalWarningService kitchenStaffIllegalWarningService;
@ -87,6 +91,7 @@ public class KitchenStaffIllegalWarningController extends BaseController {
try { try {
return toAjax(kitchenStaffIllegalWarningService.insertKitchenStaffIllegalWarning(kitchenStaffIllegalWarning)); return toAjax(kitchenStaffIllegalWarningService.insertKitchenStaffIllegalWarning(kitchenStaffIllegalWarning));
} catch (Exception e) { } catch (Exception e) {
log.error("新增厨房员工违规报警失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }
@ -103,6 +108,7 @@ public class KitchenStaffIllegalWarningController extends BaseController {
try { try {
return toAjax(kitchenStaffIllegalWarningService.updateKitchenStaffIllegalWarning(kitchenStaffIllegalWarning)); return toAjax(kitchenStaffIllegalWarningService.updateKitchenStaffIllegalWarning(kitchenStaffIllegalWarning));
} catch (Exception e) { } catch (Exception e) {
log.error("修改厨房员工违规报警失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }

View File

@ -10,6 +10,8 @@ import com.bonus.common.log.annotation.SysLog;
import com.bonus.common.log.enums.OperaType; import com.bonus.common.log.enums.OperaType;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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.*;
@ -27,6 +29,8 @@ import java.util.List;
@RestController @RestController
@RequestMapping("/kitchen_staff_info") @RequestMapping("/kitchen_staff_info")
public class KitchenStaffInfoController extends BaseController { public class KitchenStaffInfoController extends BaseController {
private static final Logger log = LoggerFactory.getLogger(KitchenStaffInfoController.class);
@Autowired @Autowired
private IKitchenStaffInfoService kitchenStaffInfoService; private IKitchenStaffInfoService kitchenStaffInfoService;
@ -78,6 +82,7 @@ public class KitchenStaffInfoController extends BaseController {
try { try {
return toAjax(kitchenStaffInfoService.insertKitchenStaffInfo(kitchenStaffInfo)); return toAjax(kitchenStaffInfoService.insertKitchenStaffInfo(kitchenStaffInfo));
} catch (Exception e) { } catch (Exception e) {
log.error("新增厨房员工资料失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }
@ -94,6 +99,7 @@ public class KitchenStaffInfoController extends BaseController {
try { try {
return toAjax(kitchenStaffInfoService.updateKitchenStaffInfo(kitchenStaffInfo)); return toAjax(kitchenStaffInfoService.updateKitchenStaffInfo(kitchenStaffInfo));
} catch (Exception e) { } catch (Exception e) {
log.error("修改厨房员工资料失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }
@ -108,9 +114,9 @@ public class KitchenStaffInfoController extends BaseController {
@PostMapping("/edit/face-state") @PostMapping("/edit/face-state")
public AjaxResult editFaceState(@RequestBody KitchenStaffInfo kitchenStaffInfo) { public AjaxResult editFaceState(@RequestBody KitchenStaffInfo kitchenStaffInfo) {
try { try {
return toAjax(kitchenStaffInfoService.updateKitchenStaffFaceState(kitchenStaffInfo)); return toAjax(kitchenStaffInfoService.updateKitchenStaffFaceState(kitchenStaffInfo));
} catch (Exception e) { } catch (Exception e) {
log.error("修改厨房员工人脸状态失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }

View File

@ -8,6 +8,8 @@ import com.bonus.common.log.enums.OperaType;
//import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit; //import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -36,6 +38,8 @@ import com.bonus.common.core.web.page.TableDataInfo;
@RestController @RestController
@RequestMapping("/kitchen_staff_morning_check") @RequestMapping("/kitchen_staff_morning_check")
public class KitchenStaffMorningCheckController extends BaseController { public class KitchenStaffMorningCheckController extends BaseController {
private static final Logger log = LoggerFactory.getLogger(KitchenStaffMorningCheckController.class);
@Autowired @Autowired
private IKitchenStaffMorningCheckService kitchenStaffMorningCheckService; private IKitchenStaffMorningCheckService kitchenStaffMorningCheckService;
@ -87,6 +91,7 @@ public class KitchenStaffMorningCheckController extends BaseController {
try { try {
return toAjax(kitchenStaffMorningCheckService.insertKitchenStaffMorningCheck(kitchenStaffMorningCheck)); return toAjax(kitchenStaffMorningCheckService.insertKitchenStaffMorningCheck(kitchenStaffMorningCheck));
} catch (Exception e) { } catch (Exception e) {
log.error("新增厨房员工晨检记录失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }
@ -103,6 +108,7 @@ public class KitchenStaffMorningCheckController extends BaseController {
try { try {
return toAjax(kitchenStaffMorningCheckService.updateKitchenStaffMorningCheck(kitchenStaffMorningCheck)); return toAjax(kitchenStaffMorningCheckService.updateKitchenStaffMorningCheck(kitchenStaffMorningCheck));
} catch (Exception e) { } catch (Exception e) {
log.error("修改厨房员工晨检记录失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }

View File

@ -8,6 +8,8 @@ import com.bonus.common.log.enums.OperaType;
//import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit; //import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -36,6 +38,8 @@ import com.bonus.common.core.web.page.TableDataInfo;
@RestController @RestController
@RequestMapping("/kitchen_waste_deal") @RequestMapping("/kitchen_waste_deal")
public class KitchenWasteDealController extends BaseController { public class KitchenWasteDealController extends BaseController {
private static final Logger log = LoggerFactory.getLogger(KitchenWasteDealController.class);
@Autowired @Autowired
private IKitchenWasteDealService kitchenWasteDealService; private IKitchenWasteDealService kitchenWasteDealService;
@ -87,6 +91,7 @@ public class KitchenWasteDealController extends BaseController {
try { try {
return toAjax(kitchenWasteDealService.insertKitchenWasteDeal(kitchenWasteDeal)); return toAjax(kitchenWasteDealService.insertKitchenWasteDeal(kitchenWasteDeal));
} catch (Exception e) { } catch (Exception e) {
log.error("新增厨房废弃物处置失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }
@ -103,6 +108,7 @@ public class KitchenWasteDealController extends BaseController {
try { try {
return toAjax(kitchenWasteDealService.updateKitchenWasteDeal(kitchenWasteDeal)); return toAjax(kitchenWasteDealService.updateKitchenWasteDeal(kitchenWasteDeal));
} catch (Exception e) { } catch (Exception e) {
log.error("修改厨房废弃物处置失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }

View File

@ -8,6 +8,8 @@ import com.bonus.common.log.enums.OperaType;
//import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit; //import com.bonus.canteen.core.kitchen.common.annotation.PreventRepeatSubmit;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -36,6 +38,8 @@ import com.bonus.common.core.web.page.TableDataInfo;
@RestController @RestController
@RequestMapping("/kitchen_waste_meal") @RequestMapping("/kitchen_waste_meal")
public class KitchenWasteMealController extends BaseController { public class KitchenWasteMealController extends BaseController {
private static final Logger log = LoggerFactory.getLogger(KitchenWasteMealController.class);
@Autowired @Autowired
private IKitchenWasteMealService kitchenWasteMealService; private IKitchenWasteMealService kitchenWasteMealService;
@ -99,6 +103,7 @@ public class KitchenWasteMealController extends BaseController {
try { try {
return toAjax(kitchenWasteMealService.insertKitchenWasteMeal(kitchenWasteMeal)); return toAjax(kitchenWasteMealService.insertKitchenWasteMeal(kitchenWasteMeal));
} catch (Exception e) { } catch (Exception e) {
log.error("新增厨房餐余浪费失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }
@ -115,6 +120,7 @@ public class KitchenWasteMealController extends BaseController {
try { try {
return toAjax(kitchenWasteMealService.updateKitchenWasteMeal(kitchenWasteMeal)); return toAjax(kitchenWasteMealService.updateKitchenWasteMeal(kitchenWasteMeal));
} catch (Exception e) { } catch (Exception e) {
log.error("修改厨房餐余浪费失败", e);
return error(e.getMessage()); return error(e.getMessage());
} }
} }

View File

@ -11,6 +11,9 @@ import org.springframework.stereotype.Component;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/**
* @author Bonus
*/
@Component @Component
public class SampleDishesStateTask { public class SampleDishesStateTask {
private static final Logger logger = LoggerFactory.getLogger(CookRecipeTask.class); private static final Logger logger = LoggerFactory.getLogger(CookRecipeTask.class);