update code
parent
fe26730e39
commit
37b91ca73f
|
@ -4,11 +4,7 @@ import java.util.List;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.yanzhu.xd.system.domain.SurProjectAttendanceCfg;
|
||||
|
@ -88,16 +84,7 @@ public class SurProjectAttendanceCfgController extends BaseController
|
|||
return toAjax(surProjectAttendanceCfgService.insertSurProjectAttendanceCfg(surProjectAttendanceCfg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改考勤配置
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
SurProjectAttendanceCfg surProjectAttendanceCfg = surProjectAttendanceCfgService.selectSurProjectAttendanceCfgById(id);
|
||||
mmap.put("surProjectAttendanceCfg", surProjectAttendanceCfg);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改保存考勤配置
|
||||
|
@ -106,7 +93,7 @@ public class SurProjectAttendanceCfgController extends BaseController
|
|||
@Log(title = "考勤配置", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(SurProjectAttendanceCfg surProjectAttendanceCfg)
|
||||
public AjaxResult editSave(@RequestBody SurProjectAttendanceCfg surProjectAttendanceCfg)
|
||||
{
|
||||
return toAjax(surProjectAttendanceCfgService.updateSurProjectAttendanceCfg(surProjectAttendanceCfg));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue