|
|
|
@ -24,18 +24,16 @@ public class VerificationController extends Controller {
|
|
|
|
|
VerificationModel model = new VerificationModel();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取当前人员可见的审核列表(全部(2),待审核(0),已通过(1),已拒绝(-1)四种)
|
|
|
|
|
* 功能:获取当前人员可见的审核列表(-1:全部,1:待提交,2:已提交,待审批,3:已通过,4:退回修改)
|
|
|
|
|
* 作者:黄海
|
|
|
|
|
* 时间:2018-12-22
|
|
|
|
|
* 时间:2020-11-23
|
|
|
|
|
*/
|
|
|
|
|
@Before(GET.class)
|
|
|
|
|
public void getVerificationList(int module_id, int verification_status, int page, int limit) {
|
|
|
|
|
//(1)当前人员的职务
|
|
|
|
|
String person_id = getCookie("person_id");
|
|
|
|
|
BaseModel bm = new BaseModel();
|
|
|
|
|
String[] ids = bm.getDutyList(person_id);
|
|
|
|
|
//(1)当前人员的身份
|
|
|
|
|
String identity_id = getCookie("identity_id");
|
|
|
|
|
//(2)获取审核的列表数据
|
|
|
|
|
Page<Record> _page = model.getVerificationList(module_id, verification_status, ids, page, limit);
|
|
|
|
|
Page<Record> _page = model.getVerificationList(module_id, verification_status, identity_id, page, limit);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(_page));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -87,12 +85,12 @@ public class VerificationController extends Controller {
|
|
|
|
|
*/
|
|
|
|
|
@Before(POST.class)
|
|
|
|
|
public void passCurrentVerification(int record_id, String verification_judgement, int module_id, int business_id) {
|
|
|
|
|
String person_id = getCookie("person_id");
|
|
|
|
|
Record personList = model.getPersonInfoById(person_id);
|
|
|
|
|
String person_name = personList.get("person_name");
|
|
|
|
|
sendAdoptTemplateNotice(module_id, business_id, person_name, 1);
|
|
|
|
|
model.passCurrentVerification(record_id, person_id, verification_judgement);
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(true, "操作成功!"));
|
|
|
|
|
// String person_id = getCookie("person_id");
|
|
|
|
|
// Record personList = model.getPersonInfoById(person_id);
|
|
|
|
|
// String person_name = personList.get("person_name");
|
|
|
|
|
// sendAdoptTemplateNotice(module_id, business_id, person_name, 1);
|
|
|
|
|
// model.passCurrentVerification(record_id, person_id, verification_judgement);
|
|
|
|
|
// renderJson(CommonUtil.returnMessageJson(true, "操作成功!"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|