parent
b2e44af2d5
commit
e51ee4d9b7
@ -0,0 +1,81 @@
|
|||||||
|
package com.ruoyi.web.controller.system.apply;
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||||
|
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||||
|
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClassName: ApplyInfoListController
|
||||||
|
* Package: com.ruoyi.web.controller.system.apply
|
||||||
|
* Description:承诺书上传
|
||||||
|
*
|
||||||
|
* @Author wangxy
|
||||||
|
* @Create 2025/5/14 11:32
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/system/promiseList")
|
||||||
|
public class PromiseInfoListController extends BaseController {
|
||||||
|
|
||||||
|
|
||||||
|
private String prefix = "system/newdev/promise";
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ApplyInfoListManager applyInfoListManager;
|
||||||
|
|
||||||
|
@RequiresPermissions("system:promise:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String promiseListInfo() {
|
||||||
|
return prefix + "/promiseList";
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 人员列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:promise:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||||
|
startPage();
|
||||||
|
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectPromiseInfoListList(applyInfoListDTO);
|
||||||
|
return getDataTable(tdApplyInfoLists);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 承诺书
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:promise:editPromise")
|
||||||
|
@GetMapping("/editPromise/{applyId}")
|
||||||
|
public String editPromise(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||||
|
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||||
|
mmap.put("applyInfoList", applyInfoList);
|
||||||
|
return prefix + "/editAudit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 承诺书提交
|
||||||
|
*/
|
||||||
|
@PostMapping("/submitPromise")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult submitPromise(@RequestParam String applyId) {
|
||||||
|
return toAjax(applyInfoListManager.submitPromise(applyId));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue