|
|
@@ -132,9 +132,11 @@ public class MealApplicationsController {
|
|
|
public HttpRespMsg getQrCode(HttpServletRequest request,String mealType, String factory){
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
+ MealTypes mealTypes = mealTypeService.getById(mealType);
|
|
|
QueryWrapper<MealApplications> eq = new QueryWrapper<MealApplications>().eq("user_id", request.getHeader("token")).eq("meal_type_id", mealType).eq("factory_id", factory)
|
|
|
.eq("application_date", now.toLocalDate()).orderByDesc("applied_at").last("limit 1");
|
|
|
MealApplications mealApplications = mealApplicationsService.getOne(eq);
|
|
|
+ mealApplications.setDeadlineTime(mealTypes.getDeadlineTime());
|
|
|
if(mealApplications==null){
|
|
|
return msg.fail("二维码不存在");
|
|
|
}
|