提交
This commit is contained in:
parent
80fb17686c
commit
c0563114be
@ -1,29 +1,30 @@
|
|||||||
package cn.com.tenlion.service.applystudents.impl;
|
package cn.com.tenlion.service.applystudents.impl;
|
||||||
|
|
||||||
import cn.com.tenlion.pojo.dtos.apply.ApplyDTO;
|
|
||||||
import cn.com.tenlion.pojo.pos.apply.ApplyPO;
|
|
||||||
import cn.com.tenlion.service.apply.IApplyService;
|
|
||||||
import ink.wgink.common.base.DefaultBaseService;
|
|
||||||
import ink.wgink.exceptions.ParamsException;
|
|
||||||
import ink.wgink.pojo.ListPage;
|
|
||||||
import ink.wgink.pojo.result.SuccessResult;
|
|
||||||
import ink.wgink.pojo.result.SuccessResultList;
|
|
||||||
import ink.wgink.util.map.HashMapUtil;
|
|
||||||
import ink.wgink.util.UUIDUtil;
|
|
||||||
import cn.com.tenlion.dao.applystudents.IApplyStudentsDao;
|
import cn.com.tenlion.dao.applystudents.IApplyStudentsDao;
|
||||||
import cn.com.tenlion.pojo.dtos.applystudents.ApplyStudentsDTO;
|
|
||||||
import cn.com.tenlion.pojo.vos.applystudents.ApplyStudentsVO;
|
|
||||||
import cn.com.tenlion.pojo.bos.applystudents.ApplyStudentsBO;
|
import cn.com.tenlion.pojo.bos.applystudents.ApplyStudentsBO;
|
||||||
|
import cn.com.tenlion.pojo.dtos.applystudents.ApplyStudentsDTO;
|
||||||
|
import cn.com.tenlion.pojo.pos.apply.ApplyPO;
|
||||||
import cn.com.tenlion.pojo.pos.applystudents.ApplyStudentsPO;
|
import cn.com.tenlion.pojo.pos.applystudents.ApplyStudentsPO;
|
||||||
|
import cn.com.tenlion.pojo.vos.applystudents.ApplyStudentsVO;
|
||||||
|
import cn.com.tenlion.service.apply.IApplyService;
|
||||||
import cn.com.tenlion.service.applystudents.IApplyStudentsService;
|
import cn.com.tenlion.service.applystudents.IApplyStudentsService;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import ink.wgink.common.base.DefaultBaseService;
|
||||||
|
import ink.wgink.exceptions.ParamsException;
|
||||||
|
import ink.wgink.pojo.ListPage;
|
||||||
|
import ink.wgink.pojo.result.SuccessResultList;
|
||||||
|
import ink.wgink.util.UUIDUtil;
|
||||||
|
import ink.wgink.util.map.HashMapUtil;
|
||||||
import org.apache.commons.beanutils.BeanUtils;
|
import org.apache.commons.beanutils.BeanUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName: ApplyStudentsServiceImpl
|
* @ClassName: ApplyStudentsServiceImpl
|
||||||
@ -40,7 +41,6 @@ public class ApplyStudentsServiceImpl extends DefaultBaseService implements IApp
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IApplyService applyService;
|
private IApplyService applyService;
|
||||||
|
|
||||||
|
|
||||||
public String saveRelationReturnId(ApplyStudentsVO applyStudentsVO){
|
public String saveRelationReturnId(ApplyStudentsVO applyStudentsVO){
|
||||||
String applyId = UUIDUtil.getUUID();
|
String applyId = UUIDUtil.getUUID();
|
||||||
applyStudentsVO.setApplyId(applyId);
|
applyStudentsVO.setApplyId(applyId);
|
||||||
@ -61,11 +61,11 @@ public class ApplyStudentsServiceImpl extends DefaultBaseService implements IApp
|
|||||||
List<String> deleteIdList = new ArrayList<>();
|
List<String> deleteIdList = new ArrayList<>();
|
||||||
List<ApplyPO> applyPOList = applyService.listByInstitutionIdAndWorkTypeId(institutionId,workTypeId);
|
List<ApplyPO> applyPOList = applyService.listByInstitutionIdAndWorkTypeId(institutionId,workTypeId);
|
||||||
for (ApplyPO applyPO : applyPOList) {
|
for (ApplyPO applyPO : applyPOList) {
|
||||||
ApplyStudentsVO vo = new ApplyStudentsVO();
|
ApplyStudentsPO po = new ApplyStudentsPO();
|
||||||
BeanUtils.copyProperties(vo,applyPO);
|
BeanUtils.copyProperties(po,applyPO);
|
||||||
vo.setApplyClassId(classId);
|
po.setApplyClassId(classId);
|
||||||
Map<String, Object> params = HashMapUtil.beanToMap(vo);
|
Map<String, Object> params = HashMapUtil.beanToMap(po);
|
||||||
applyStudentsDao.save(params);;
|
applyStudentsDao.save(params);
|
||||||
deleteIdList.add(applyPO.getApplyId());
|
deleteIdList.add(applyPO.getApplyId());
|
||||||
}
|
}
|
||||||
applyService.delete(deleteIdList);
|
applyService.delete(deleteIdList);
|
||||||
|
@ -286,6 +286,8 @@
|
|||||||
|
|
||||||
// 提交表单
|
// 提交表单
|
||||||
form.on('submit(submitForm)', function(formData) {
|
form.on('submit(submitForm)', function(formData) {
|
||||||
|
var successMsg = '审核通过';
|
||||||
|
var errorMsg = '审核失败';
|
||||||
if(3 == formData.field.checkStatus) {
|
if(3 == formData.field.checkStatus) {
|
||||||
if(null == formData.field.reason || '' == formData.field.reason || typeof(formData.field.reason) == "undefined") {
|
if(null == formData.field.reason || '' == formData.field.reason || typeof(formData.field.reason) == "undefined") {
|
||||||
top.dialog.msg('退回原因必填');
|
top.dialog.msg('退回原因必填');
|
||||||
@ -299,6 +301,8 @@
|
|||||||
var nextTime = new Date();
|
var nextTime = new Date();
|
||||||
nextTime.setDate(nextTime.getDate() + $('#nextNum').val());
|
nextTime.setDate(nextTime.getDate() + $('#nextNum').val());
|
||||||
formData.field.nextCommitTime = nextTime.format("yyyy-MM-dd hh:mm:ss");
|
formData.field.nextCommitTime = nextTime.format("yyyy-MM-dd hh:mm:ss");
|
||||||
|
successMsg = '退回成功';
|
||||||
|
errorMsg = '退回失败';
|
||||||
}
|
}
|
||||||
formData.field.planId = classPlanId;
|
formData.field.planId = classPlanId;
|
||||||
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||||
@ -306,10 +310,10 @@
|
|||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
top.restAjax.put(top.restAjax.path('api/examcheck/update/{examCheckId}', [examCheckId]), formData.field, null, function(code, data) {
|
top.restAjax.put(top.restAjax.path('api/examcheck/update/{examCheckId}', [examCheckId]), formData.field, null, function(code, data) {
|
||||||
if('200' == code) {
|
if('200' == code) {
|
||||||
top.dialog.msg('退回成功');
|
top.dialog.msg(successMsg);
|
||||||
closeBox();
|
closeBox();
|
||||||
}else {
|
}else {
|
||||||
top.dialog.msg('退回失败');
|
top.dialog.msg(errorMsg);
|
||||||
closeBox();
|
closeBox();
|
||||||
}
|
}
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user