默认报餐
This commit is contained in:
parent
552abab811
commit
c91b0f55e5
@ -16,6 +16,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -75,6 +76,7 @@ public class FtFoodDefaultDaoController extends BaseController {
|
||||
@Log(title = "默认报餐管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody FtFoodDefaultDao ftFoodDefaultDao) {
|
||||
ftFoodDefaultDao.setCreatedAt(new Date());
|
||||
return toAjax(iFtFoodDefaultDaoService.save(ftFoodDefaultDao) ? 1 : 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user