智慧厨房
This commit is contained in:
parent
e12445da2c
commit
aeab07fa12
|
|
@ -62,10 +62,10 @@ public class KitchenSampleDishesRecordServiceImpl implements IKitchenSampleDishe
|
|||
for (KitchenSampleDishesRecord record : kitchenSampleDishesRecordList) {
|
||||
record.setSaveStatusName(SampleDishesSaveStatusEnum.getDescByKey(record.getSaveStatus()));
|
||||
String illegalStatusName = "";
|
||||
if(CommonFlagEnum.YES.getKey().equals(record.getWeightStandard())) {
|
||||
if(CommonFlagEnum.NO.getKey().equals(record.getWeightStandard())) {
|
||||
illegalStatusName = illegalStatusName + "重量未达标";
|
||||
}
|
||||
if(CommonFlagEnum.YES.getKey().equals(record.getDurationStandard())) {
|
||||
if(CommonFlagEnum.NO.getKey().equals(record.getDurationStandard())) {
|
||||
illegalStatusName = illegalStatusName + "\n时长未达标";
|
||||
}
|
||||
if(StringUtils.isBlank(illegalStatusName)) {
|
||||
|
|
|
|||
|
|
@ -78,11 +78,11 @@ public class KitchenStaffFaceServiceImpl implements IKitchenStaffFaceService {
|
|||
log.info("faceResult.getFeatures():" + Base64.getEncoder().encodeToString(faceResult.getFeatures()));
|
||||
log.info("人脸采集成功");
|
||||
} else {
|
||||
throw new ServiceException("[虹软算法]:特征值提取失败");
|
||||
throw new ServiceException("人脸照片识别失败");
|
||||
}
|
||||
int code = kitchenStaffFaceMapper.insertStaffFace(list.get(0));
|
||||
if (code == 0){
|
||||
throw new ServiceException("[虹软算法]:保存失败");
|
||||
throw new ServiceException("人脸照片保存失败");
|
||||
}
|
||||
// //发送mq
|
||||
// DeviceMqPersonalUpdateMessageDTO bean = new DeviceMqPersonalUpdateMessageDTO().setUpdatePersonPhoto(dto.getStaffId().intValue(),"update");
|
||||
|
|
|
|||
Loading…
Reference in New Issue