增加功能工种管理、培训机构管理

This commit is contained in:
ly19960718 2021-05-02 10:40:13 +08:00
parent 018ca77f8f
commit b8c7dff614
38 changed files with 6414 additions and 56 deletions

View File

@ -0,0 +1,111 @@
package cn.com.tenlion.controller.api.apply;
import ink.wgink.annotation.CheckRequestBodyAnnotation;
import ink.wgink.common.base.DefaultBaseController;
import ink.wgink.interfaces.consts.ISystemConstant;
import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.ErrorResult;
import ink.wgink.pojo.result.SuccessResult;
import ink.wgink.pojo.result.SuccessResultData;
import ink.wgink.pojo.result.SuccessResultList;
import cn.com.tenlion.pojo.dtos.apply.ApplyDTO;
import cn.com.tenlion.pojo.vos.apply.ApplyVO;
import cn.com.tenlion.service.apply.IApplyService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @ClassName: ApplyController
* @Description: 报名信息
* @Author: CodeFactory
* @Date: 2021-05-01 18:49:41
* @Version: 3.0
**/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "报名信息接口")
@RestController
@RequestMapping(ISystemConstant.API_PREFIX + "/apply")
public class ApplyController extends DefaultBaseController {
@Autowired
private IApplyService applyService;
@ApiOperation(value = "新增报名信息", notes = "新增报名信息接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("save")
@CheckRequestBodyAnnotation
public SuccessResult save(@RequestBody ApplyVO applyVO) {
applyService.save(applyVO);
return new SuccessResult();
}
@ApiOperation(value = "删除报名信息", notes = "删除报名信息接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "ID列表用下划线分隔", paramType = "path", example = "1_2_3")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@DeleteMapping("remove/{ids}")
public SuccessResult remove(@PathVariable("ids") String ids) {
applyService.remove(Arrays.asList(ids.split("\\_")));
return new SuccessResult();
}
@ApiOperation(value = "修改报名信息", notes = "修改报名信息接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "applyId", value = "报名信息ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PutMapping("update/{applyId}")
@CheckRequestBodyAnnotation
public SuccessResult update(@PathVariable("applyId") String applyId, @RequestBody ApplyVO applyVO) {
applyService.update(applyId, applyVO);
return new SuccessResult();
}
@ApiOperation(value = "报名信息详情", notes = "报名信息详情接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "applyId", value = "报名信息ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("get/{applyId}")
public ApplyDTO get(@PathVariable("applyId") String applyId) {
return applyService.get(applyId);
}
@ApiOperation(value = "报名信息列表", notes = "报名信息列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("list")
public List<ApplyDTO> list() {
Map<String, Object> params = requestParams();
return applyService.list(params);
}
@ApiOperation(value = "报名信息分页列表", notes = "报名信息分页列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpage")
public SuccessResultList<List<ApplyDTO>> listPage(ListPage page) {
Map<String, Object> params = requestParams();
page.setParams(params);
return applyService.listPage(page);
}
@ApiOperation(value = "报名信息统计", notes = "报名信息统计接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("count")
SuccessResultData<Integer> count() {
Map<String, Object> params = requestParams();
return new SuccessResultData<>(applyService.count(params));
}
}

View File

@ -0,0 +1,111 @@
package cn.com.tenlion.controller.api.applyauditlog;
import ink.wgink.annotation.CheckRequestBodyAnnotation;
import ink.wgink.common.base.DefaultBaseController;
import ink.wgink.interfaces.consts.ISystemConstant;
import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.ErrorResult;
import ink.wgink.pojo.result.SuccessResult;
import ink.wgink.pojo.result.SuccessResultData;
import ink.wgink.pojo.result.SuccessResultList;
import cn.com.tenlion.pojo.dtos.applyauditlog.ApplyAuditLogDTO;
import cn.com.tenlion.pojo.vos.applyauditlog.ApplyAuditLogVO;
import cn.com.tenlion.service.applyauditlog.IApplyAuditLogService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @ClassName: ApplyAuditLogController
* @Description: 报名信息审核日志
* @Author: CodeFactory
* @Date: 2021-05-01 18:51:28
* @Version: 3.0
**/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "报名信息审核日志接口")
@RestController
@RequestMapping(ISystemConstant.API_PREFIX + "/applyauditlog")
public class ApplyAuditLogController extends DefaultBaseController {
@Autowired
private IApplyAuditLogService applyAuditLogService;
@ApiOperation(value = "新增报名信息审核日志", notes = "新增报名信息审核日志接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("save")
@CheckRequestBodyAnnotation
public SuccessResult save(@RequestBody ApplyAuditLogVO applyAuditLogVO) {
applyAuditLogService.save(applyAuditLogVO);
return new SuccessResult();
}
@ApiOperation(value = "删除报名信息审核日志", notes = "删除报名信息审核日志接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "ID列表用下划线分隔", paramType = "path", example = "1_2_3")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@DeleteMapping("remove/{ids}")
public SuccessResult remove(@PathVariable("ids") String ids) {
applyAuditLogService.remove(Arrays.asList(ids.split("\\_")));
return new SuccessResult();
}
@ApiOperation(value = "修改报名信息审核日志", notes = "修改报名信息审核日志接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "applyAuditLogId", value = "报名信息审核日志ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PutMapping("update/{applyAuditLogId}")
@CheckRequestBodyAnnotation
public SuccessResult update(@PathVariable("applyAuditLogId") String applyAuditLogId, @RequestBody ApplyAuditLogVO applyAuditLogVO) {
applyAuditLogService.update(applyAuditLogId, applyAuditLogVO);
return new SuccessResult();
}
@ApiOperation(value = "报名信息审核日志详情", notes = "报名信息审核日志详情接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "applyAuditLogId", value = "报名信息审核日志ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("get/{applyAuditLogId}")
public ApplyAuditLogDTO get(@PathVariable("applyAuditLogId") String applyAuditLogId) {
return applyAuditLogService.get(applyAuditLogId);
}
@ApiOperation(value = "报名信息审核日志列表", notes = "报名信息审核日志列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("list")
public List<ApplyAuditLogDTO> list() {
Map<String, Object> params = requestParams();
return applyAuditLogService.list(params);
}
@ApiOperation(value = "报名信息审核日志分页列表", notes = "报名信息审核日志分页列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpage")
public SuccessResultList<List<ApplyAuditLogDTO>> listPage(ListPage page) {
Map<String, Object> params = requestParams();
page.setParams(params);
return applyAuditLogService.listPage(page);
}
@ApiOperation(value = "报名信息审核日志统计", notes = "报名信息审核日志统计接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("count")
SuccessResultData<Integer> count() {
Map<String, Object> params = requestParams();
return new SuccessResultData<>(applyAuditLogService.count(params));
}
}

View File

@ -13,6 +13,7 @@ import cn.com.tenlion.pojo.dtos.worktype.WorkTypeDTO;
import cn.com.tenlion.pojo.vos.worktype.WorkTypeVO;
import cn.com.tenlion.service.worktype.IWorkTypeService;
import io.swagger.annotations.*;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -36,24 +37,20 @@ public class WorkTypeController extends DefaultBaseController {
private IWorkTypeService workTypeService;
@ApiOperation(value = "工种类型树形列表", notes = "工种类型树形列表")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listztree")
public List<WorkTypeZTreeDTO> listZTree() {
Map<String, Object> params = requestParams();
String workTypeParentId = "0";
if (!StringUtils.isBlank(params.get("id") == null ? null : params.get("id").toString())) {
workTypeParentId = params.get("id").toString();
}
params.put("workTypeParentId",workTypeParentId);
return workTypeService.listZTree(params);
}
@ApiOperation(value = "新增工种类型", notes = "新增工种类型接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("save")
@ -92,8 +89,15 @@ public class WorkTypeController extends DefaultBaseController {
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("get/{workTypeId}")
public WorkTypeDTO get(@PathVariable("workTypeId") String workTypeId) {
return workTypeService.get(workTypeId);
public WorkTypeDTO get(@PathVariable("workTypeId") String workTypeId) {
WorkTypeDTO workTypeDTO = new WorkTypeDTO();
if ("0".equals(workTypeId)){
workTypeDTO.setWorkTypeName("根节点");
workTypeDTO.setWorkTypeId("0");
return workTypeDTO;
}
workTypeDTO = workTypeService.get(workTypeId);
return workTypeDTO;
}
@ApiOperation(value = "工种类型列表", notes = "工种类型列表接口")

View File

@ -0,0 +1,121 @@
package cn.com.tenlion.controller.app.api.apply;
import ink.wgink.annotation.CheckRequestBodyAnnotation;
import ink.wgink.common.base.DefaultBaseController;
import ink.wgink.interfaces.consts.ISystemConstant;
import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.ErrorResult;
import ink.wgink.pojo.result.SuccessResult;
import ink.wgink.pojo.result.SuccessResultData;
import ink.wgink.pojo.result.SuccessResultList;
import cn.com.tenlion.pojo.dtos.apply.ApplyDTO;
import cn.com.tenlion.pojo.vos.apply.ApplyVO;
import cn.com.tenlion.service.apply.IApplyService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @ClassName: ApplyAppController
* @Description: 报名信息
* @Author: CodeFactory
* @Date: 2021-05-01 18:49:41
* @Version: 3.0
**/
@Api(tags = ISystemConstant.API_TAGS_APP_PREFIX + "报名信息接口")
@RestController
@RequestMapping(ISystemConstant.APP_PREFIX + "/apply")
public class ApplyAppController extends DefaultBaseController {
@Autowired
private IApplyService applyService;
@ApiOperation(value = "新增报名信息", notes = "新增报名信息接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("save")
@CheckRequestBodyAnnotation
public SuccessResult save(@RequestHeader("token") String token, @RequestBody ApplyVO applyVO) {
applyService.save(token, applyVO);
return new SuccessResult();
}
@ApiOperation(value = "删除报名信息(id列表)", notes = "删除报名信息(id列表)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "ids", value = "ID列表用下划线分隔", paramType = "path", example = "1_2_3")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@DeleteMapping("remove/{ids}")
public SuccessResult remove(@RequestHeader("token") String token, @PathVariable("ids") String ids) {
applyService.remove(token, Arrays.asList(ids.split("\\_")));
return new SuccessResult();
}
@ApiOperation(value = "修改报名信息", notes = "修改报名信息接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "applyId", value = "报名信息ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PutMapping("updateapply/{applyId}")
@CheckRequestBodyAnnotation
public SuccessResult updateApply(@RequestHeader("token") String token, @PathVariable("applyId") String applyId, @RequestBody ApplyVO applyVO) {
applyService.update(token, applyId, applyVO);
return new SuccessResult();
}
@ApiOperation(value = "报名信息详情(通过ID)", notes = "报名信息详情(通过ID)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "applyId", value = "报名信息ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("get/{applyId}")
public ApplyDTO get(@RequestHeader("token") String token, @PathVariable("applyId") String applyId) {
return applyService.get(applyId);
}
@ApiOperation(value = "报名信息列表", notes = "报名信息列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("list")
public List<ApplyDTO> list(@RequestHeader("token") String token) {
Map<String, Object> params = requestParams();
return applyService.list(params);
}
@ApiOperation(value = "报名信息分页列表", notes = "报名信息分页列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpageapply")
public SuccessResultList<List<ApplyDTO>> listPage(@RequestHeader("token") String token, ListPage page) {
Map<String, Object> params = requestParams();
page.setParams(params);
return applyService.listPage(page);
}
@ApiOperation(value = "报名信息统计", notes = "报名信息统计接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("count")
SuccessResultData<Integer> count() {
Map<String, Object> params = requestParams();
return new SuccessResultData<>(applyService.count(params));
}
}

View File

@ -0,0 +1,121 @@
package cn.com.tenlion.controller.app.api.applyauditlog;
import ink.wgink.annotation.CheckRequestBodyAnnotation;
import ink.wgink.common.base.DefaultBaseController;
import ink.wgink.interfaces.consts.ISystemConstant;
import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.ErrorResult;
import ink.wgink.pojo.result.SuccessResult;
import ink.wgink.pojo.result.SuccessResultData;
import ink.wgink.pojo.result.SuccessResultList;
import cn.com.tenlion.pojo.dtos.applyauditlog.ApplyAuditLogDTO;
import cn.com.tenlion.pojo.vos.applyauditlog.ApplyAuditLogVO;
import cn.com.tenlion.service.applyauditlog.IApplyAuditLogService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @ClassName: ApplyAuditLogAppController
* @Description: 报名信息审核日志
* @Author: CodeFactory
* @Date: 2021-05-01 18:51:28
* @Version: 3.0
**/
@Api(tags = ISystemConstant.API_TAGS_APP_PREFIX + "报名信息审核日志接口")
@RestController
@RequestMapping(ISystemConstant.APP_PREFIX + "/applyauditlog")
public class ApplyAuditLogAppController extends DefaultBaseController {
@Autowired
private IApplyAuditLogService applyAuditLogService;
@ApiOperation(value = "新增报名信息审核日志", notes = "新增报名信息审核日志接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("save")
@CheckRequestBodyAnnotation
public SuccessResult save(@RequestHeader("token") String token, @RequestBody ApplyAuditLogVO applyAuditLogVO) {
applyAuditLogService.save(token, applyAuditLogVO);
return new SuccessResult();
}
@ApiOperation(value = "删除报名信息审核日志(id列表)", notes = "删除报名信息审核日志(id列表)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "ids", value = "ID列表用下划线分隔", paramType = "path", example = "1_2_3")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@DeleteMapping("remove/{ids}")
public SuccessResult remove(@RequestHeader("token") String token, @PathVariable("ids") String ids) {
applyAuditLogService.remove(token, Arrays.asList(ids.split("\\_")));
return new SuccessResult();
}
@ApiOperation(value = "修改报名信息审核日志", notes = "修改报名信息审核日志接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "applyAuditLogId", value = "报名信息审核日志ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PutMapping("updateapplyauditlog/{applyAuditLogId}")
@CheckRequestBodyAnnotation
public SuccessResult updateApplyAuditLog(@RequestHeader("token") String token, @PathVariable("applyAuditLogId") String applyAuditLogId, @RequestBody ApplyAuditLogVO applyAuditLogVO) {
applyAuditLogService.update(token, applyAuditLogId, applyAuditLogVO);
return new SuccessResult();
}
@ApiOperation(value = "报名信息审核日志详情(通过ID)", notes = "报名信息审核日志详情(通过ID)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "applyAuditLogId", value = "报名信息审核日志ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("get/{applyAuditLogId}")
public ApplyAuditLogDTO get(@RequestHeader("token") String token, @PathVariable("applyAuditLogId") String applyAuditLogId) {
return applyAuditLogService.get(applyAuditLogId);
}
@ApiOperation(value = "报名信息审核日志列表", notes = "报名信息审核日志列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("list")
public List<ApplyAuditLogDTO> list(@RequestHeader("token") String token) {
Map<String, Object> params = requestParams();
return applyAuditLogService.list(params);
}
@ApiOperation(value = "报名信息审核日志分页列表", notes = "报名信息审核日志分页列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpageapplyauditlog")
public SuccessResultList<List<ApplyAuditLogDTO>> listPage(@RequestHeader("token") String token, ListPage page) {
Map<String, Object> params = requestParams();
page.setParams(params);
return applyAuditLogService.listPage(page);
}
@ApiOperation(value = "报名信息审核日志统计", notes = "报名信息审核日志统计接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("count")
SuccessResultData<Integer> count() {
Map<String, Object> params = requestParams();
return new SuccessResultData<>(applyAuditLogService.count(params));
}
}

View File

@ -0,0 +1,120 @@
package cn.com.tenlion.dao.apply;
import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import cn.com.tenlion.pojo.bos.apply.ApplyBO;
import cn.com.tenlion.pojo.pos.apply.ApplyPO;
import cn.com.tenlion.pojo.dtos.apply.ApplyDTO;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* @ClassName: IApplyDao
* @Description: 报名信息
* @Author: CodeFactory
* @Date: 2021-05-01 18:49:41
* @Version: 3.0
**/
@Repository
public interface IApplyDao {
/**
* 新增报名信息
*
* @param params
* @throws SaveException
*/
void save(Map<String, Object> params) throws SaveException;
/**
* 删除报名信息
*
* @param params
* @throws RemoveException
*/
void remove(Map<String, Object> params) throws RemoveException;
/**
* 删除报名信息物理
*
* @param params
* @throws RemoveException
*/
void delete(Map<String, Object> params) throws RemoveException;
/**
* 修改报名信息
*
* @param params
* @throws UpdateException
*/
void update(Map<String, Object> params) throws UpdateException;
/**
* 报名信息详情
*
* @param params
* @return
* @throws SearchException
*/
ApplyDTO get(Map<String, Object> params) throws SearchException;
/**
* 报名信息详情
*
* @param params
* @return
* @throws SearchException
*/
ApplyBO getBO(Map<String, Object> params) throws SearchException;
/**
* 报名信息详情
*
* @param params
* @return
* @throws SearchException
*/
ApplyPO getPO(Map<String, Object> params) throws SearchException;
/**
* 报名信息列表
*
* @param params
* @return
* @throws SearchException
*/
List<ApplyDTO> list(Map<String, Object> params) throws SearchException;
/**
* 报名信息列表
*
* @param params
* @return
* @throws SearchException
*/
List<ApplyBO> listBO(Map<String, Object> params) throws SearchException;
/**
* 报名信息列表
*
* @param params
* @return
* @throws SearchException
*/
List<ApplyPO> listPO(Map<String, Object> params) throws SearchException;
/**
* 报名信息统计
*
* @param params
* @return
* @throws SearchException
*/
Integer count(Map<String, Object> params) throws SearchException;
}

View File

@ -0,0 +1,120 @@
package cn.com.tenlion.dao.applyauditlog;
import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import cn.com.tenlion.pojo.bos.applyauditlog.ApplyAuditLogBO;
import cn.com.tenlion.pojo.pos.applyauditlog.ApplyAuditLogPO;
import cn.com.tenlion.pojo.dtos.applyauditlog.ApplyAuditLogDTO;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* @ClassName: IApplyAuditLogDao
* @Description: 报名信息审核日志
* @Author: CodeFactory
* @Date: 2021-05-01 18:51:28
* @Version: 3.0
**/
@Repository
public interface IApplyAuditLogDao {
/**
* 新增报名信息审核日志
*
* @param params
* @throws SaveException
*/
void save(Map<String, Object> params) throws SaveException;
/**
* 删除报名信息审核日志
*
* @param params
* @throws RemoveException
*/
void remove(Map<String, Object> params) throws RemoveException;
/**
* 删除报名信息审核日志物理
*
* @param params
* @throws RemoveException
*/
void delete(Map<String, Object> params) throws RemoveException;
/**
* 修改报名信息审核日志
*
* @param params
* @throws UpdateException
*/
void update(Map<String, Object> params) throws UpdateException;
/**
* 报名信息审核日志详情
*
* @param params
* @return
* @throws SearchException
*/
ApplyAuditLogDTO get(Map<String, Object> params) throws SearchException;
/**
* 报名信息审核日志详情
*
* @param params
* @return
* @throws SearchException
*/
ApplyAuditLogBO getBO(Map<String, Object> params) throws SearchException;
/**
* 报名信息审核日志详情
*
* @param params
* @return
* @throws SearchException
*/
ApplyAuditLogPO getPO(Map<String, Object> params) throws SearchException;
/**
* 报名信息审核日志列表
*
* @param params
* @return
* @throws SearchException
*/
List<ApplyAuditLogDTO> list(Map<String, Object> params) throws SearchException;
/**
* 报名信息审核日志列表
*
* @param params
* @return
* @throws SearchException
*/
List<ApplyAuditLogBO> listBO(Map<String, Object> params) throws SearchException;
/**
* 报名信息审核日志列表
*
* @param params
* @return
* @throws SearchException
*/
List<ApplyAuditLogPO> listPO(Map<String, Object> params) throws SearchException;
/**
* 报名信息审核日志统计
*
* @param params
* @return
* @throws SearchException
*/
Integer count(Map<String, Object> params) throws SearchException;
}

View File

@ -0,0 +1,213 @@
package cn.com.tenlion.pojo.bos.apply;
/**
*
* @ClassName: ApplyBO
* @Description: 报名信息
* @Author: CodeFactory
* @Date: 2021-05-01 18:49:41
* @Version: 3.0
**/
public class ApplyBO {
private String applyId;
private String applyClassId;
private String applyName;
private String applySex;
private String applyDataBirth;
private String applyCardType;
private String applyCardNumber;
private Integer applyPhone;
private String applyAddress;
private String applyCultureLevel;
private String applyPostcode;
private String applyPhysicalState;
private String applyUnitName;
private Integer applyUnitPhone;
private String applyUnitAddress;
private String applyUserCardPhoto;
private Integer applyAuditState;
private String creator;
private String gmtCreate;
private String modifier;
private String gmtModified;
private Integer isDelete;
public String getApplyId() {
return applyId == null ? "" : applyId.trim();
}
public void setApplyId(String applyId) {
this.applyId = applyId;
}
public String getApplyClassId() {
return applyClassId == null ? "" : applyClassId.trim();
}
public void setApplyClassId(String applyClassId) {
this.applyClassId = applyClassId;
}
public String getApplyName() {
return applyName == null ? "" : applyName.trim();
}
public void setApplyName(String applyName) {
this.applyName = applyName;
}
public String getApplySex() {
return applySex == null ? "" : applySex.trim();
}
public void setApplySex(String applySex) {
this.applySex = applySex;
}
public String getApplyDataBirth() {
return applyDataBirth == null ? "" : applyDataBirth.trim();
}
public void setApplyDataBirth(String applyDataBirth) {
this.applyDataBirth = applyDataBirth;
}
public String getApplyCardType() {
return applyCardType == null ? "" : applyCardType.trim();
}
public void setApplyCardType(String applyCardType) {
this.applyCardType = applyCardType;
}
public String getApplyCardNumber() {
return applyCardNumber == null ? "" : applyCardNumber.trim();
}
public void setApplyCardNumber(String applyCardNumber) {
this.applyCardNumber = applyCardNumber;
}
public Integer getApplyPhone() {
return applyPhone == null ? 0 : applyPhone;
}
public void setApplyPhone(Integer applyPhone) {
this.applyPhone = applyPhone;
}
public String getApplyAddress() {
return applyAddress == null ? "" : applyAddress.trim();
}
public void setApplyAddress(String applyAddress) {
this.applyAddress = applyAddress;
}
public String getApplyCultureLevel() {
return applyCultureLevel == null ? "" : applyCultureLevel.trim();
}
public void setApplyCultureLevel(String applyCultureLevel) {
this.applyCultureLevel = applyCultureLevel;
}
public String getApplyPostcode() {
return applyPostcode == null ? "" : applyPostcode.trim();
}
public void setApplyPostcode(String applyPostcode) {
this.applyPostcode = applyPostcode;
}
public String getApplyPhysicalState() {
return applyPhysicalState == null ? "" : applyPhysicalState.trim();
}
public void setApplyPhysicalState(String applyPhysicalState) {
this.applyPhysicalState = applyPhysicalState;
}
public String getApplyUnitName() {
return applyUnitName == null ? "" : applyUnitName.trim();
}
public void setApplyUnitName(String applyUnitName) {
this.applyUnitName = applyUnitName;
}
public Integer getApplyUnitPhone() {
return applyUnitPhone == null ? 0 : applyUnitPhone;
}
public void setApplyUnitPhone(Integer applyUnitPhone) {
this.applyUnitPhone = applyUnitPhone;
}
public String getApplyUnitAddress() {
return applyUnitAddress == null ? "" : applyUnitAddress.trim();
}
public void setApplyUnitAddress(String applyUnitAddress) {
this.applyUnitAddress = applyUnitAddress;
}
public String getApplyUserCardPhoto() {
return applyUserCardPhoto == null ? "" : applyUserCardPhoto.trim();
}
public void setApplyUserCardPhoto(String applyUserCardPhoto) {
this.applyUserCardPhoto = applyUserCardPhoto;
}
public Integer getApplyAuditState() {
return applyAuditState == null ? 0 : applyAuditState;
}
public void setApplyAuditState(Integer applyAuditState) {
this.applyAuditState = applyAuditState;
}
public String getCreator() {
return creator == null ? "" : creator.trim();
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getGmtCreate() {
return gmtCreate == null ? "" : gmtCreate.trim();
}
public void setGmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
}
public String getModifier() {
return modifier == null ? "" : modifier.trim();
}
public void setModifier(String modifier) {
this.modifier = modifier;
}
public String getGmtModified() {
return gmtModified == null ? "" : gmtModified.trim();
}
public void setGmtModified(String gmtModified) {
this.gmtModified = gmtModified;
}
public Integer getIsDelete() {
return isDelete == null ? 0 : isDelete;
}
public void setIsDelete(Integer isDelete) {
this.isDelete = isDelete;
}
}

View File

@ -0,0 +1,87 @@
package cn.com.tenlion.pojo.bos.applyauditlog;
/**
*
* @ClassName: ApplyAuditLogBO
* @Description: 报名信息审核日志
* @Author: CodeFactory
* @Date: 2021-05-01 18:51:28
* @Version: 3.0
**/
public class ApplyAuditLogBO {
private String applyAuditLogId;
private String applyId;
private Integer applyAuditState;
private String applyAuditExplain;
private String applyAuditUserId;
private String applyAuditUserName;
private String applyAuditTime;
private Integer isDelete;
public String getApplyAuditLogId() {
return applyAuditLogId == null ? "" : applyAuditLogId.trim();
}
public void setApplyAuditLogId(String applyAuditLogId) {
this.applyAuditLogId = applyAuditLogId;
}
public String getApplyId() {
return applyId == null ? "" : applyId.trim();
}
public void setApplyId(String applyId) {
this.applyId = applyId;
}
public Integer getApplyAuditState() {
return applyAuditState == null ? 0 : applyAuditState;
}
public void setApplyAuditState(Integer applyAuditState) {
this.applyAuditState = applyAuditState;
}
public String getApplyAuditExplain() {
return applyAuditExplain == null ? "" : applyAuditExplain.trim();
}
public void setApplyAuditExplain(String applyAuditExplain) {
this.applyAuditExplain = applyAuditExplain;
}
public String getApplyAuditUserId() {
return applyAuditUserId == null ? "" : applyAuditUserId.trim();
}
public void setApplyAuditUserId(String applyAuditUserId) {
this.applyAuditUserId = applyAuditUserId;
}
public String getApplyAuditUserName() {
return applyAuditUserName == null ? "" : applyAuditUserName.trim();
}
public void setApplyAuditUserName(String applyAuditUserName) {
this.applyAuditUserName = applyAuditUserName;
}
public String getApplyAuditTime() {
return applyAuditTime == null ? "" : applyAuditTime.trim();
}
public void setApplyAuditTime(String applyAuditTime) {
this.applyAuditTime = applyAuditTime;
}
public Integer getIsDelete() {
return isDelete == null ? 0 : isDelete;
}
public void setIsDelete(Integer isDelete) {
this.isDelete = isDelete;
}
}

View File

@ -0,0 +1,189 @@
package cn.com.tenlion.pojo.dtos.apply;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @ClassName: ApplyDTO
* @Description: 报名信息
* @Author: CodeFactory
* @Date: 2021-05-01 18:49:41
* @Version: 3.0
**/
@ApiModel
public class ApplyDTO {
@ApiModelProperty(name = "applyId", value = "报名信息ID")
private String applyId;
@ApiModelProperty(name = "applyClassId", value = "报名班级ID")
private String applyClassId;
@ApiModelProperty(name = "applyName", value = "报名人姓名")
private String applyName;
@ApiModelProperty(name = "applySex", value = "报名人性别 1男 2女【数据字典】")
private String applySex;
@ApiModelProperty(name = "applyDataBirth", value = "报名人出生日期")
private String applyDataBirth;
@ApiModelProperty(name = "applyCardType", value = "报名人证件类型【数据字典】")
private String applyCardType;
@ApiModelProperty(name = "applyCardNumber", value = "报名人证件号码")
private String applyCardNumber;
@ApiModelProperty(name = "applyPhone", value = "报名人手机号码")
private Integer applyPhone;
@ApiModelProperty(name = "applyAddress", value = "报名人通讯地址")
private String applyAddress;
@ApiModelProperty(name = "applyCultureLevel", value = "报名人文化程度【数据字典】")
private String applyCultureLevel;
@ApiModelProperty(name = "applyPostcode", value = "报名人邮编")
private String applyPostcode;
@ApiModelProperty(name = "applyPhysicalState", value = "报名人身体状态【数据字典】")
private String applyPhysicalState;
@ApiModelProperty(name = "applyUnitName", value = "报名人单位名称")
private String applyUnitName;
@ApiModelProperty(name = "applyUnitPhone", value = "报名人单位电话")
private Integer applyUnitPhone;
@ApiModelProperty(name = "applyUnitAddress", value = "报名人单位地址")
private String applyUnitAddress;
@ApiModelProperty(name = "applyUserCardPhoto", value = "证件照片")
private String applyUserCardPhoto;
@ApiModelProperty(name = "applyAuditState", value = "报名状态 0 待审核 1用户撤回 2审核通过 3未报到 4报名完成-1审核不通过")
private Integer applyAuditState;
public String getApplyId() {
return applyId == null ? "" : applyId.trim();
}
public void setApplyId(String applyId) {
this.applyId = applyId;
}
public String getApplyClassId() {
return applyClassId == null ? "" : applyClassId.trim();
}
public void setApplyClassId(String applyClassId) {
this.applyClassId = applyClassId;
}
public String getApplyName() {
return applyName == null ? "" : applyName.trim();
}
public void setApplyName(String applyName) {
this.applyName = applyName;
}
public String getApplySex() {
return applySex == null ? "" : applySex.trim();
}
public void setApplySex(String applySex) {
this.applySex = applySex;
}
public String getApplyDataBirth() {
return applyDataBirth == null ? "" : applyDataBirth.trim();
}
public void setApplyDataBirth(String applyDataBirth) {
this.applyDataBirth = applyDataBirth;
}
public String getApplyCardType() {
return applyCardType == null ? "" : applyCardType.trim();
}
public void setApplyCardType(String applyCardType) {
this.applyCardType = applyCardType;
}
public String getApplyCardNumber() {
return applyCardNumber == null ? "" : applyCardNumber.trim();
}
public void setApplyCardNumber(String applyCardNumber) {
this.applyCardNumber = applyCardNumber;
}
public Integer getApplyPhone() {
return applyPhone == null ? 0 : applyPhone;
}
public void setApplyPhone(Integer applyPhone) {
this.applyPhone = applyPhone;
}
public String getApplyAddress() {
return applyAddress == null ? "" : applyAddress.trim();
}
public void setApplyAddress(String applyAddress) {
this.applyAddress = applyAddress;
}
public String getApplyCultureLevel() {
return applyCultureLevel == null ? "" : applyCultureLevel.trim();
}
public void setApplyCultureLevel(String applyCultureLevel) {
this.applyCultureLevel = applyCultureLevel;
}
public String getApplyPostcode() {
return applyPostcode == null ? "" : applyPostcode.trim();
}
public void setApplyPostcode(String applyPostcode) {
this.applyPostcode = applyPostcode;
}
public String getApplyPhysicalState() {
return applyPhysicalState == null ? "" : applyPhysicalState.trim();
}
public void setApplyPhysicalState(String applyPhysicalState) {
this.applyPhysicalState = applyPhysicalState;
}
public String getApplyUnitName() {
return applyUnitName == null ? "" : applyUnitName.trim();
}
public void setApplyUnitName(String applyUnitName) {
this.applyUnitName = applyUnitName;
}
public Integer getApplyUnitPhone() {
return applyUnitPhone == null ? 0 : applyUnitPhone;
}
public void setApplyUnitPhone(Integer applyUnitPhone) {
this.applyUnitPhone = applyUnitPhone;
}
public String getApplyUnitAddress() {
return applyUnitAddress == null ? "" : applyUnitAddress.trim();
}
public void setApplyUnitAddress(String applyUnitAddress) {
this.applyUnitAddress = applyUnitAddress;
}
public String getApplyUserCardPhoto() {
return applyUserCardPhoto == null ? "" : applyUserCardPhoto.trim();
}
public void setApplyUserCardPhoto(String applyUserCardPhoto) {
this.applyUserCardPhoto = applyUserCardPhoto;
}
public Integer getApplyAuditState() {
return applyAuditState == null ? 0 : applyAuditState;
}
public void setApplyAuditState(Integer applyAuditState) {
this.applyAuditState = applyAuditState;
}
}

View File

@ -0,0 +1,99 @@
package cn.com.tenlion.pojo.dtos.applyauditlog;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @ClassName: ApplyAuditLogDTO
* @Description: 报名信息审核日志
* @Author: CodeFactory
* @Date: 2021-05-01 18:51:28
* @Version: 3.0
**/
@ApiModel
public class ApplyAuditLogDTO {
@ApiModelProperty(name = "applyAuditLogId", value = "审核ID")
private String applyAuditLogId;
@ApiModelProperty(name = "applyId", value = "报名ID")
private String applyId;
@ApiModelProperty(name = "applyAuditState", value = "审核结果 2审核通过 4报名完成-1审核不通过")
private Integer applyAuditState;
@ApiModelProperty(name = "applyAuditExplain", value = "审核说明")
private String applyAuditExplain;
@ApiModelProperty(name = "applyAuditUserId", value = "审核人ID")
private String applyAuditUserId;
@ApiModelProperty(name = "applyAuditUserName", value = "审核人姓名")
private String applyAuditUserName;
@ApiModelProperty(name = "applyAuditTime", value = "审核时间")
private String applyAuditTime;
@ApiModelProperty(name = "isDelete", value = "删除状态")
private Integer isDelete;
public String getApplyAuditLogId() {
return applyAuditLogId == null ? "" : applyAuditLogId.trim();
}
public void setApplyAuditLogId(String applyAuditLogId) {
this.applyAuditLogId = applyAuditLogId;
}
public String getApplyId() {
return applyId == null ? "" : applyId.trim();
}
public void setApplyId(String applyId) {
this.applyId = applyId;
}
public Integer getApplyAuditState() {
return applyAuditState == null ? 0 : applyAuditState;
}
public void setApplyAuditState(Integer applyAuditState) {
this.applyAuditState = applyAuditState;
}
public String getApplyAuditExplain() {
return applyAuditExplain == null ? "" : applyAuditExplain.trim();
}
public void setApplyAuditExplain(String applyAuditExplain) {
this.applyAuditExplain = applyAuditExplain;
}
public String getApplyAuditUserId() {
return applyAuditUserId == null ? "" : applyAuditUserId.trim();
}
public void setApplyAuditUserId(String applyAuditUserId) {
this.applyAuditUserId = applyAuditUserId;
}
public String getApplyAuditUserName() {
return applyAuditUserName == null ? "" : applyAuditUserName.trim();
}
public void setApplyAuditUserName(String applyAuditUserName) {
this.applyAuditUserName = applyAuditUserName;
}
public String getApplyAuditTime() {
return applyAuditTime == null ? "" : applyAuditTime.trim();
}
public void setApplyAuditTime(String applyAuditTime) {
this.applyAuditTime = applyAuditTime;
}
public Integer getIsDelete() {
return isDelete == null ? 0 : isDelete;
}
public void setIsDelete(Integer isDelete) {
this.isDelete = isDelete;
}
}

View File

@ -18,6 +18,8 @@ public class WorkTypeDTO {
private String workTypeId;
@ApiModelProperty(name = "workTypeParentId", value = "工种父级节点")
private String workTypeParentId;
@ApiModelProperty(name = "workTypeParentName", value = "工种父级节点名称")
private String workTypeParentName;
@ApiModelProperty(name = "workTypeName", value = "工种名称")
private String workTypeName;
@ApiModelProperty(name = "workTypeCode", value = "工种编码")
@ -76,4 +78,11 @@ public class WorkTypeDTO {
}
public String getWorkTypeParentName() {
return workTypeParentName;
}
public void setWorkTypeParentName(String workTypeParentName) {
this.workTypeParentName = workTypeParentName;
}
}

View File

@ -54,11 +54,11 @@ public class WorkTypeZTreeDTO {
this.name = name;
}
public Boolean getParent() {
public Boolean getIsParent() {
return isParent;
}
public void setParent(Boolean parent) {
public void setIsParent(Boolean parent) {
isParent = parent;
}
}

View File

@ -0,0 +1,213 @@
package cn.com.tenlion.pojo.pos.apply;
/**
*
* @ClassName: ApplyPO
* @Description: 报名信息
* @Author: CodeFactory
* @Date: 2021-05-01 18:49:41
* @Version: 3.0
**/
public class ApplyPO {
private String applyId;
private String applyClassId;
private String applyName;
private String applySex;
private String applyDataBirth;
private String applyCardType;
private String applyCardNumber;
private Integer applyPhone;
private String applyAddress;
private String applyCultureLevel;
private String applyPostcode;
private String applyPhysicalState;
private String applyUnitName;
private Integer applyUnitPhone;
private String applyUnitAddress;
private String applyUserCardPhoto;
private Integer applyAuditState;
private String creator;
private String gmtCreate;
private String modifier;
private String gmtModified;
private Integer isDelete;
public String getApplyId() {
return applyId == null ? "" : applyId.trim();
}
public void setApplyId(String applyId) {
this.applyId = applyId;
}
public String getApplyClassId() {
return applyClassId == null ? "" : applyClassId.trim();
}
public void setApplyClassId(String applyClassId) {
this.applyClassId = applyClassId;
}
public String getApplyName() {
return applyName == null ? "" : applyName.trim();
}
public void setApplyName(String applyName) {
this.applyName = applyName;
}
public String getApplySex() {
return applySex == null ? "" : applySex.trim();
}
public void setApplySex(String applySex) {
this.applySex = applySex;
}
public String getApplyDataBirth() {
return applyDataBirth == null ? "" : applyDataBirth.trim();
}
public void setApplyDataBirth(String applyDataBirth) {
this.applyDataBirth = applyDataBirth;
}
public String getApplyCardType() {
return applyCardType == null ? "" : applyCardType.trim();
}
public void setApplyCardType(String applyCardType) {
this.applyCardType = applyCardType;
}
public String getApplyCardNumber() {
return applyCardNumber == null ? "" : applyCardNumber.trim();
}
public void setApplyCardNumber(String applyCardNumber) {
this.applyCardNumber = applyCardNumber;
}
public Integer getApplyPhone() {
return applyPhone == null ? 0 : applyPhone;
}
public void setApplyPhone(Integer applyPhone) {
this.applyPhone = applyPhone;
}
public String getApplyAddress() {
return applyAddress == null ? "" : applyAddress.trim();
}
public void setApplyAddress(String applyAddress) {
this.applyAddress = applyAddress;
}
public String getApplyCultureLevel() {
return applyCultureLevel == null ? "" : applyCultureLevel.trim();
}
public void setApplyCultureLevel(String applyCultureLevel) {
this.applyCultureLevel = applyCultureLevel;
}
public String getApplyPostcode() {
return applyPostcode == null ? "" : applyPostcode.trim();
}
public void setApplyPostcode(String applyPostcode) {
this.applyPostcode = applyPostcode;
}
public String getApplyPhysicalState() {
return applyPhysicalState == null ? "" : applyPhysicalState.trim();
}
public void setApplyPhysicalState(String applyPhysicalState) {
this.applyPhysicalState = applyPhysicalState;
}
public String getApplyUnitName() {
return applyUnitName == null ? "" : applyUnitName.trim();
}
public void setApplyUnitName(String applyUnitName) {
this.applyUnitName = applyUnitName;
}
public Integer getApplyUnitPhone() {
return applyUnitPhone == null ? 0 : applyUnitPhone;
}
public void setApplyUnitPhone(Integer applyUnitPhone) {
this.applyUnitPhone = applyUnitPhone;
}
public String getApplyUnitAddress() {
return applyUnitAddress == null ? "" : applyUnitAddress.trim();
}
public void setApplyUnitAddress(String applyUnitAddress) {
this.applyUnitAddress = applyUnitAddress;
}
public String getApplyUserCardPhoto() {
return applyUserCardPhoto == null ? "" : applyUserCardPhoto.trim();
}
public void setApplyUserCardPhoto(String applyUserCardPhoto) {
this.applyUserCardPhoto = applyUserCardPhoto;
}
public Integer getApplyAuditState() {
return applyAuditState == null ? 0 : applyAuditState;
}
public void setApplyAuditState(Integer applyAuditState) {
this.applyAuditState = applyAuditState;
}
public String getCreator() {
return creator == null ? "" : creator.trim();
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getGmtCreate() {
return gmtCreate == null ? "" : gmtCreate.trim();
}
public void setGmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
}
public String getModifier() {
return modifier == null ? "" : modifier.trim();
}
public void setModifier(String modifier) {
this.modifier = modifier;
}
public String getGmtModified() {
return gmtModified == null ? "" : gmtModified.trim();
}
public void setGmtModified(String gmtModified) {
this.gmtModified = gmtModified;
}
public Integer getIsDelete() {
return isDelete == null ? 0 : isDelete;
}
public void setIsDelete(Integer isDelete) {
this.isDelete = isDelete;
}
}

View File

@ -0,0 +1,87 @@
package cn.com.tenlion.pojo.pos.applyauditlog;
/**
*
* @ClassName: ApplyAuditLogPO
* @Description: 报名信息审核日志
* @Author: CodeFactory
* @Date: 2021-05-01 18:51:28
* @Version: 3.0
**/
public class ApplyAuditLogPO {
private String applyAuditLogId;
private String applyId;
private Integer applyAuditState;
private String applyAuditExplain;
private String applyAuditUserId;
private String applyAuditUserName;
private String applyAuditTime;
private Integer isDelete;
public String getApplyAuditLogId() {
return applyAuditLogId == null ? "" : applyAuditLogId.trim();
}
public void setApplyAuditLogId(String applyAuditLogId) {
this.applyAuditLogId = applyAuditLogId;
}
public String getApplyId() {
return applyId == null ? "" : applyId.trim();
}
public void setApplyId(String applyId) {
this.applyId = applyId;
}
public Integer getApplyAuditState() {
return applyAuditState == null ? 0 : applyAuditState;
}
public void setApplyAuditState(Integer applyAuditState) {
this.applyAuditState = applyAuditState;
}
public String getApplyAuditExplain() {
return applyAuditExplain == null ? "" : applyAuditExplain.trim();
}
public void setApplyAuditExplain(String applyAuditExplain) {
this.applyAuditExplain = applyAuditExplain;
}
public String getApplyAuditUserId() {
return applyAuditUserId == null ? "" : applyAuditUserId.trim();
}
public void setApplyAuditUserId(String applyAuditUserId) {
this.applyAuditUserId = applyAuditUserId;
}
public String getApplyAuditUserName() {
return applyAuditUserName == null ? "" : applyAuditUserName.trim();
}
public void setApplyAuditUserName(String applyAuditUserName) {
this.applyAuditUserName = applyAuditUserName;
}
public String getApplyAuditTime() {
return applyAuditTime == null ? "" : applyAuditTime.trim();
}
public void setApplyAuditTime(String applyAuditTime) {
this.applyAuditTime = applyAuditTime;
}
public Integer getIsDelete() {
return isDelete == null ? 0 : isDelete;
}
public void setIsDelete(Integer isDelete) {
this.isDelete = isDelete;
}
}

View File

@ -0,0 +1,185 @@
package cn.com.tenlion.pojo.vos.apply;
import ink.wgink.annotation.CheckEmptyAnnotation;
import ink.wgink.annotation.CheckNumberAnnotation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @ClassName: ApplyVO
* @Description: 报名信息
* @Author: CodeFactory
* @Date: 2021-05-01 18:49:41
* @Version: 3.0
**/
@ApiModel
public class ApplyVO {
@ApiModelProperty(name = "applyClassId", value = "报名班级ID")
private String applyClassId;
@ApiModelProperty(name = "applyName", value = "报名人姓名")
private String applyName;
@ApiModelProperty(name = "applySex", value = "报名人性别 1男 2女【数据字典】")
private String applySex;
@ApiModelProperty(name = "applyDataBirth", value = "报名人出生日期")
@CheckEmptyAnnotation(name = "报名人出生日期", verifyType = "date")
private String applyDataBirth;
@ApiModelProperty(name = "applyCardType", value = "报名人证件类型【数据字典】")
private String applyCardType;
@ApiModelProperty(name = "applyCardNumber", value = "报名人证件号码")
private String applyCardNumber;
@ApiModelProperty(name = "applyPhone", value = "报名人手机号码")
@CheckNumberAnnotation(name = "报名人手机号码")
private Integer applyPhone;
@ApiModelProperty(name = "applyAddress", value = "报名人通讯地址")
private String applyAddress;
@ApiModelProperty(name = "applyCultureLevel", value = "报名人文化程度【数据字典】")
private String applyCultureLevel;
@ApiModelProperty(name = "applyPostcode", value = "报名人邮编")
private String applyPostcode;
@ApiModelProperty(name = "applyPhysicalState", value = "报名人身体状态【数据字典】")
private String applyPhysicalState;
@ApiModelProperty(name = "applyUnitName", value = "报名人单位名称")
private String applyUnitName;
@ApiModelProperty(name = "applyUnitPhone", value = "报名人单位电话")
@CheckNumberAnnotation(name = "报名人单位电话")
private Integer applyUnitPhone;
@ApiModelProperty(name = "applyUnitAddress", value = "报名人单位地址")
private String applyUnitAddress;
@ApiModelProperty(name = "applyUserCardPhoto", value = "证件照片")
private String applyUserCardPhoto;
@ApiModelProperty(name = "applyAuditState", value = "报名状态 0 待审核 1用户撤回 2审核通过 3未报到 4报名完成-1审核不通过")
@CheckNumberAnnotation(name = "报名状态 0 待审核 1用户撤回 2审核通过 3未报到 4报名完成-1审核不通过")
private Integer applyAuditState;
public String getApplyClassId() {
return applyClassId == null ? "" : applyClassId.trim();
}
public void setApplyClassId(String applyClassId) {
this.applyClassId = applyClassId;
}
public String getApplyName() {
return applyName == null ? "" : applyName.trim();
}
public void setApplyName(String applyName) {
this.applyName = applyName;
}
public String getApplySex() {
return applySex == null ? "" : applySex.trim();
}
public void setApplySex(String applySex) {
this.applySex = applySex;
}
public String getApplyDataBirth() {
return applyDataBirth == null ? "" : applyDataBirth.trim();
}
public void setApplyDataBirth(String applyDataBirth) {
this.applyDataBirth = applyDataBirth;
}
public String getApplyCardType() {
return applyCardType == null ? "" : applyCardType.trim();
}
public void setApplyCardType(String applyCardType) {
this.applyCardType = applyCardType;
}
public String getApplyCardNumber() {
return applyCardNumber == null ? "" : applyCardNumber.trim();
}
public void setApplyCardNumber(String applyCardNumber) {
this.applyCardNumber = applyCardNumber;
}
public Integer getApplyPhone() {
return applyPhone == null ? 0 : applyPhone;
}
public void setApplyPhone(Integer applyPhone) {
this.applyPhone = applyPhone;
}
public String getApplyAddress() {
return applyAddress == null ? "" : applyAddress.trim();
}
public void setApplyAddress(String applyAddress) {
this.applyAddress = applyAddress;
}
public String getApplyCultureLevel() {
return applyCultureLevel == null ? "" : applyCultureLevel.trim();
}
public void setApplyCultureLevel(String applyCultureLevel) {
this.applyCultureLevel = applyCultureLevel;
}
public String getApplyPostcode() {
return applyPostcode == null ? "" : applyPostcode.trim();
}
public void setApplyPostcode(String applyPostcode) {
this.applyPostcode = applyPostcode;
}
public String getApplyPhysicalState() {
return applyPhysicalState == null ? "" : applyPhysicalState.trim();
}
public void setApplyPhysicalState(String applyPhysicalState) {
this.applyPhysicalState = applyPhysicalState;
}
public String getApplyUnitName() {
return applyUnitName == null ? "" : applyUnitName.trim();
}
public void setApplyUnitName(String applyUnitName) {
this.applyUnitName = applyUnitName;
}
public Integer getApplyUnitPhone() {
return applyUnitPhone == null ? 0 : applyUnitPhone;
}
public void setApplyUnitPhone(Integer applyUnitPhone) {
this.applyUnitPhone = applyUnitPhone;
}
public String getApplyUnitAddress() {
return applyUnitAddress == null ? "" : applyUnitAddress.trim();
}
public void setApplyUnitAddress(String applyUnitAddress) {
this.applyUnitAddress = applyUnitAddress;
}
public String getApplyUserCardPhoto() {
return applyUserCardPhoto == null ? "" : applyUserCardPhoto.trim();
}
public void setApplyUserCardPhoto(String applyUserCardPhoto) {
this.applyUserCardPhoto = applyUserCardPhoto;
}
public Integer getApplyAuditState() {
return applyAuditState == null ? 0 : applyAuditState;
}
public void setApplyAuditState(Integer applyAuditState) {
this.applyAuditState = applyAuditState;
}
}

View File

@ -0,0 +1,83 @@
package cn.com.tenlion.pojo.vos.applyauditlog;
import ink.wgink.annotation.CheckEmptyAnnotation;
import ink.wgink.annotation.CheckNumberAnnotation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @ClassName: ApplyAuditLogVO
* @Description: 报名信息审核日志
* @Author: CodeFactory
* @Date: 2021-05-01 18:51:28
* @Version: 3.0
**/
@ApiModel
public class ApplyAuditLogVO {
@ApiModelProperty(name = "applyId", value = "报名ID")
private String applyId;
@ApiModelProperty(name = "applyAuditState", value = "审核结果 2审核通过 4报名完成-1审核不通过")
@CheckNumberAnnotation(name = "审核结果 2审核通过 4报名完成-1审核不通过")
private Integer applyAuditState;
@ApiModelProperty(name = "applyAuditExplain", value = "审核说明")
private String applyAuditExplain;
@ApiModelProperty(name = "applyAuditUserId", value = "审核人ID")
private String applyAuditUserId;
@ApiModelProperty(name = "applyAuditUserName", value = "审核人姓名")
private String applyAuditUserName;
@ApiModelProperty(name = "applyAuditTime", value = "审核时间")
@CheckEmptyAnnotation(name = "审核时间", verifyType = "datetime")
private String applyAuditTime;
public String getApplyId() {
return applyId == null ? "" : applyId.trim();
}
public void setApplyId(String applyId) {
this.applyId = applyId;
}
public Integer getApplyAuditState() {
return applyAuditState == null ? 0 : applyAuditState;
}
public void setApplyAuditState(Integer applyAuditState) {
this.applyAuditState = applyAuditState;
}
public String getApplyAuditExplain() {
return applyAuditExplain == null ? "" : applyAuditExplain.trim();
}
public void setApplyAuditExplain(String applyAuditExplain) {
this.applyAuditExplain = applyAuditExplain;
}
public String getApplyAuditUserId() {
return applyAuditUserId == null ? "" : applyAuditUserId.trim();
}
public void setApplyAuditUserId(String applyAuditUserId) {
this.applyAuditUserId = applyAuditUserId;
}
public String getApplyAuditUserName() {
return applyAuditUserName == null ? "" : applyAuditUserName.trim();
}
public void setApplyAuditUserName(String applyAuditUserName) {
this.applyAuditUserName = applyAuditUserName;
}
public String getApplyAuditTime() {
return applyAuditTime == null ? "" : applyAuditTime.trim();
}
public void setApplyAuditTime(String applyAuditTime) {
this.applyAuditTime = applyAuditTime;
}
}

View File

@ -0,0 +1,188 @@
package cn.com.tenlion.service.apply;
import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.SuccessResultList;
import cn.com.tenlion.pojo.dtos.apply.ApplyDTO;
import cn.com.tenlion.pojo.vos.apply.ApplyVO;
import cn.com.tenlion.pojo.bos.apply.ApplyBO;
import cn.com.tenlion.pojo.pos.apply.ApplyPO;
import java.util.List;
import java.util.Map;
/**
* @ClassName: IApplyService
* @Description: 报名信息
* @Author: CodeFactory
* @Date: 2021-05-01 18:49:41
* @Version: 3.0
**/
public interface IApplyService {
/**
* 新增报名信息
*
* @param applyVO
* @return
*/
void save(ApplyVO applyVO);
/**
* 新增报名信息
*
* @param token
* @param applyVO
* @return
*/
void save(String token, ApplyVO applyVO);
/**
* 新增报名信息
*
* @param applyVO
* @return applyId
*/
String saveReturnId(ApplyVO applyVO);
/**
* 新增报名信息
*
* @param token
* @param applyVO
* @return applyId
*/
String saveReturnId(String token, ApplyVO applyVO);
/**
* 删除报名信息
*
* @param ids id列表
* @return
*/
void remove(List<String> ids);
/**
* 删除报名信息
*
* @param token
* @param ids id列表
* @return
*/
void remove(String token, List<String> ids);
/**
* 删除报名信息物理删除
*
* @param ids id列表
*/
void delete(List<String> ids);
/**
* 修改报名信息
*
* @param applyId
* @param applyVO
* @return
*/
void update(String applyId, ApplyVO applyVO);
/**
* 修改报名信息
*
* @param token
* @param applyId
* @param applyVO
* @return
*/
void update(String token, String applyId, ApplyVO applyVO);
/**
* 报名信息详情
*
* @param params 参数Map
* @return
*/
ApplyDTO get(Map<String, Object> params);
/**
* 报名信息详情
*
* @param applyId
* @return
*/
ApplyDTO get(String applyId);
/**
* 报名信息详情
*
* @param params 参数Map
* @return
*/
ApplyBO getBO(Map<String, Object> params);
/**
* 报名信息详情
*
* @param applyId
* @return
*/
ApplyBO getBO(String applyId);
/**
* 报名信息详情
*
* @param params 参数Map
* @return
*/
ApplyPO getPO(Map<String, Object> params);
/**
* 报名信息详情
*
* @param applyId
* @return
*/
ApplyPO getPO(String applyId);
/**
* 报名信息列表
*
* @param params
* @return
*/
List<ApplyDTO> list(Map<String, Object> params);
/**
* 报名信息列表
*
* @param params
* @return
*/
List<ApplyBO> listBO(Map<String, Object> params);
/**
* 报名信息列表
*
* @param params
* @return
*/
List<ApplyPO> listPO(Map<String, Object> params);
/**
* 报名信息分页列表
*
* @param page
* @return
*/
SuccessResultList<List<ApplyDTO>> listPage(ListPage page);
/**
* 报名信息统计
*
* @param params
* @return
*/
Integer count(Map<String, Object> params);
}

View File

@ -0,0 +1,171 @@
package cn.com.tenlion.service.apply.impl;
import ink.wgink.common.base.DefaultBaseService;
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.apply.IApplyDao;
import cn.com.tenlion.pojo.dtos.apply.ApplyDTO;
import cn.com.tenlion.pojo.vos.apply.ApplyVO;
import cn.com.tenlion.pojo.bos.apply.ApplyBO;
import cn.com.tenlion.pojo.pos.apply.ApplyPO;
import cn.com.tenlion.service.apply.IApplyService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
/**
* @ClassName: ApplyServiceImpl
* @Description: 报名信息
* @Author: CodeFactory
* @Date: 2021-05-01 18:49:41
* @Version: 3.0
**/
@Service
public class ApplyServiceImpl extends DefaultBaseService implements IApplyService {
@Autowired
private IApplyDao applyDao;
@Override
public void save(ApplyVO applyVO) {
saveReturnId(applyVO);
}
@Override
public void save(String token, ApplyVO applyVO) {
saveReturnId(token, applyVO);
}
@Override
public String saveReturnId(ApplyVO applyVO) {
return saveReturnId(null, applyVO);
}
@Override
public String saveReturnId(String token, ApplyVO applyVO) {
String applyId = UUIDUtil.getUUID();
Map<String, Object> params = HashMapUtil.beanToMap(applyVO);
params.put("applyId", applyId);
if (StringUtils.isBlank(token)) {
setSaveInfo(params);
} else {
setAppSaveInfo(token, params);
}
applyDao.save(params);
return applyId;
}
@Override
public void remove(List<String> ids) {
remove(null, ids);
}
@Override
public void remove(String token, List<String> ids) {
Map<String, Object> params = getHashMap(2);
params.put("applyIds", ids);
if (StringUtils.isBlank(token)) {
setUpdateInfo(params);
} else {
setAppUpdateInfo(token, params);
}
applyDao.remove(params);
}
@Override
public void delete(List<String> ids) {
Map<String, Object> params = getHashMap(2);
params.put("applyIds", ids);
applyDao.delete(params);
}
@Override
public void update(String applyId, ApplyVO applyVO) {
update(null, applyId, applyVO);
}
@Override
public void update(String token, String applyId, ApplyVO applyVO) {
Map<String, Object> params = HashMapUtil.beanToMap(applyVO);
params.put("applyId", applyId);
if (StringUtils.isBlank(token)) {
setUpdateInfo(params);
} else {
setAppUpdateInfo(token, params);
}
applyDao.update(params);
}
@Override
public ApplyDTO get(Map<String, Object> params) {
return applyDao.get(params);
}
@Override
public ApplyDTO get(String applyId) {
Map<String, Object> params = super.getHashMap(2);
params.put("applyId", applyId);
return get(params);
}
@Override
public ApplyBO getBO(Map<String, Object> params) {
return applyDao.getBO(params);
}
@Override
public ApplyBO getBO(String applyId) {
Map<String, Object> params = super.getHashMap(2);
params.put("applyId", applyId);
return getBO(params);
}
@Override
public ApplyPO getPO(Map<String, Object> params) {
return applyDao.getPO(params);
}
@Override
public ApplyPO getPO(String applyId) {
Map<String, Object> params = super.getHashMap(2);
params.put("applyId", applyId);
return getPO(params);
}
@Override
public List<ApplyDTO> list(Map<String, Object> params) {
return applyDao.list(params);
}
@Override
public List<ApplyBO> listBO(Map<String, Object> params) {
return applyDao.listBO(params);
}
@Override
public List<ApplyPO> listPO(Map<String, Object> params) {
return applyDao.listPO(params);
}
@Override
public SuccessResultList<List<ApplyDTO>> listPage(ListPage page) {
PageHelper.startPage(page.getPage(), page.getRows());
List<ApplyDTO> applyDTOs = list(page.getParams());
PageInfo<ApplyDTO> pageInfo = new PageInfo<>(applyDTOs);
return new SuccessResultList<>(applyDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
}
@Override
public Integer count(Map<String, Object> params) {
Integer count = applyDao.count(params);
return count == null ? 0 : count;
}
}

View File

@ -0,0 +1,188 @@
package cn.com.tenlion.service.applyauditlog;
import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.SuccessResultList;
import cn.com.tenlion.pojo.dtos.applyauditlog.ApplyAuditLogDTO;
import cn.com.tenlion.pojo.vos.applyauditlog.ApplyAuditLogVO;
import cn.com.tenlion.pojo.bos.applyauditlog.ApplyAuditLogBO;
import cn.com.tenlion.pojo.pos.applyauditlog.ApplyAuditLogPO;
import java.util.List;
import java.util.Map;
/**
* @ClassName: IApplyAuditLogService
* @Description: 报名信息审核日志
* @Author: CodeFactory
* @Date: 2021-05-01 18:51:28
* @Version: 3.0
**/
public interface IApplyAuditLogService {
/**
* 新增报名信息审核日志
*
* @param applyAuditLogVO
* @return
*/
void save(ApplyAuditLogVO applyAuditLogVO);
/**
* 新增报名信息审核日志
*
* @param token
* @param applyAuditLogVO
* @return
*/
void save(String token, ApplyAuditLogVO applyAuditLogVO);
/**
* 新增报名信息审核日志
*
* @param applyAuditLogVO
* @return applyAuditLogId
*/
String saveReturnId(ApplyAuditLogVO applyAuditLogVO);
/**
* 新增报名信息审核日志
*
* @param token
* @param applyAuditLogVO
* @return applyAuditLogId
*/
String saveReturnId(String token, ApplyAuditLogVO applyAuditLogVO);
/**
* 删除报名信息审核日志
*
* @param ids id列表
* @return
*/
void remove(List<String> ids);
/**
* 删除报名信息审核日志
*
* @param token
* @param ids id列表
* @return
*/
void remove(String token, List<String> ids);
/**
* 删除报名信息审核日志物理删除
*
* @param ids id列表
*/
void delete(List<String> ids);
/**
* 修改报名信息审核日志
*
* @param applyAuditLogId
* @param applyAuditLogVO
* @return
*/
void update(String applyAuditLogId, ApplyAuditLogVO applyAuditLogVO);
/**
* 修改报名信息审核日志
*
* @param token
* @param applyAuditLogId
* @param applyAuditLogVO
* @return
*/
void update(String token, String applyAuditLogId, ApplyAuditLogVO applyAuditLogVO);
/**
* 报名信息审核日志详情
*
* @param params 参数Map
* @return
*/
ApplyAuditLogDTO get(Map<String, Object> params);
/**
* 报名信息审核日志详情
*
* @param applyAuditLogId
* @return
*/
ApplyAuditLogDTO get(String applyAuditLogId);
/**
* 报名信息审核日志详情
*
* @param params 参数Map
* @return
*/
ApplyAuditLogBO getBO(Map<String, Object> params);
/**
* 报名信息审核日志详情
*
* @param applyAuditLogId
* @return
*/
ApplyAuditLogBO getBO(String applyAuditLogId);
/**
* 报名信息审核日志详情
*
* @param params 参数Map
* @return
*/
ApplyAuditLogPO getPO(Map<String, Object> params);
/**
* 报名信息审核日志详情
*
* @param applyAuditLogId
* @return
*/
ApplyAuditLogPO getPO(String applyAuditLogId);
/**
* 报名信息审核日志列表
*
* @param params
* @return
*/
List<ApplyAuditLogDTO> list(Map<String, Object> params);
/**
* 报名信息审核日志列表
*
* @param params
* @return
*/
List<ApplyAuditLogBO> listBO(Map<String, Object> params);
/**
* 报名信息审核日志列表
*
* @param params
* @return
*/
List<ApplyAuditLogPO> listPO(Map<String, Object> params);
/**
* 报名信息审核日志分页列表
*
* @param page
* @return
*/
SuccessResultList<List<ApplyAuditLogDTO>> listPage(ListPage page);
/**
* 报名信息审核日志统计
*
* @param params
* @return
*/
Integer count(Map<String, Object> params);
}

View File

@ -0,0 +1,171 @@
package cn.com.tenlion.service.applyauditlog.impl;
import ink.wgink.common.base.DefaultBaseService;
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.applyauditlog.IApplyAuditLogDao;
import cn.com.tenlion.pojo.dtos.applyauditlog.ApplyAuditLogDTO;
import cn.com.tenlion.pojo.vos.applyauditlog.ApplyAuditLogVO;
import cn.com.tenlion.pojo.bos.applyauditlog.ApplyAuditLogBO;
import cn.com.tenlion.pojo.pos.applyauditlog.ApplyAuditLogPO;
import cn.com.tenlion.service.applyauditlog.IApplyAuditLogService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
/**
* @ClassName: ApplyAuditLogServiceImpl
* @Description: 报名信息审核日志
* @Author: CodeFactory
* @Date: 2021-05-01 18:51:28
* @Version: 3.0
**/
@Service
public class ApplyAuditLogServiceImpl extends DefaultBaseService implements IApplyAuditLogService {
@Autowired
private IApplyAuditLogDao applyAuditLogDao;
@Override
public void save(ApplyAuditLogVO applyAuditLogVO) {
saveReturnId(applyAuditLogVO);
}
@Override
public void save(String token, ApplyAuditLogVO applyAuditLogVO) {
saveReturnId(token, applyAuditLogVO);
}
@Override
public String saveReturnId(ApplyAuditLogVO applyAuditLogVO) {
return saveReturnId(null, applyAuditLogVO);
}
@Override
public String saveReturnId(String token, ApplyAuditLogVO applyAuditLogVO) {
String applyAuditLogId = UUIDUtil.getUUID();
Map<String, Object> params = HashMapUtil.beanToMap(applyAuditLogVO);
params.put("applyAuditLogId", applyAuditLogId);
if (StringUtils.isBlank(token)) {
setSaveInfo(params);
} else {
setAppSaveInfo(token, params);
}
applyAuditLogDao.save(params);
return applyAuditLogId;
}
@Override
public void remove(List<String> ids) {
remove(null, ids);
}
@Override
public void remove(String token, List<String> ids) {
Map<String, Object> params = getHashMap(2);
params.put("applyAuditLogIds", ids);
if (StringUtils.isBlank(token)) {
setUpdateInfo(params);
} else {
setAppUpdateInfo(token, params);
}
applyAuditLogDao.remove(params);
}
@Override
public void delete(List<String> ids) {
Map<String, Object> params = getHashMap(2);
params.put("applyAuditLogIds", ids);
applyAuditLogDao.delete(params);
}
@Override
public void update(String applyAuditLogId, ApplyAuditLogVO applyAuditLogVO) {
update(null, applyAuditLogId, applyAuditLogVO);
}
@Override
public void update(String token, String applyAuditLogId, ApplyAuditLogVO applyAuditLogVO) {
Map<String, Object> params = HashMapUtil.beanToMap(applyAuditLogVO);
params.put("applyAuditLogId", applyAuditLogId);
if (StringUtils.isBlank(token)) {
setUpdateInfo(params);
} else {
setAppUpdateInfo(token, params);
}
applyAuditLogDao.update(params);
}
@Override
public ApplyAuditLogDTO get(Map<String, Object> params) {
return applyAuditLogDao.get(params);
}
@Override
public ApplyAuditLogDTO get(String applyAuditLogId) {
Map<String, Object> params = super.getHashMap(2);
params.put("applyAuditLogId", applyAuditLogId);
return get(params);
}
@Override
public ApplyAuditLogBO getBO(Map<String, Object> params) {
return applyAuditLogDao.getBO(params);
}
@Override
public ApplyAuditLogBO getBO(String applyAuditLogId) {
Map<String, Object> params = super.getHashMap(2);
params.put("applyAuditLogId", applyAuditLogId);
return getBO(params);
}
@Override
public ApplyAuditLogPO getPO(Map<String, Object> params) {
return applyAuditLogDao.getPO(params);
}
@Override
public ApplyAuditLogPO getPO(String applyAuditLogId) {
Map<String, Object> params = super.getHashMap(2);
params.put("applyAuditLogId", applyAuditLogId);
return getPO(params);
}
@Override
public List<ApplyAuditLogDTO> list(Map<String, Object> params) {
return applyAuditLogDao.list(params);
}
@Override
public List<ApplyAuditLogBO> listBO(Map<String, Object> params) {
return applyAuditLogDao.listBO(params);
}
@Override
public List<ApplyAuditLogPO> listPO(Map<String, Object> params) {
return applyAuditLogDao.listPO(params);
}
@Override
public SuccessResultList<List<ApplyAuditLogDTO>> listPage(ListPage page) {
PageHelper.startPage(page.getPage(), page.getRows());
List<ApplyAuditLogDTO> applyAuditLogDTOs = list(page.getParams());
PageInfo<ApplyAuditLogDTO> pageInfo = new PageInfo<>(applyAuditLogDTOs);
return new SuccessResultList<>(applyAuditLogDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
}
@Override
public Integer count(Map<String, Object> params) {
Integer count = applyAuditLogDao.count(params);
return count == null ? 0 : count;
}
}

View File

@ -38,8 +38,17 @@ public class WorkTypeServiceImpl extends DefaultBaseService implements IWorkType
public List<WorkTypeZTreeDTO> listZTree(Map<String, Object> params){
List<WorkTypeZTreeDTO> list = workTypeDao.listZTree(params);
for (WorkTypeZTreeDTO workTypeZTreeDTO : list) {
Map<String,Object> data = new HashMap<>();
data.put("workTypeParentId",workTypeZTreeDTO.getId());
Integer count = count(data);
if (count > 0){
workTypeZTreeDTO.setIsParent(true);
}else{
workTypeZTreeDTO.setIsParent(false);
}
}
return list;
}
@ -124,7 +133,11 @@ public class WorkTypeServiceImpl extends DefaultBaseService implements IWorkType
@Override
public WorkTypeDTO get(Map<String, Object> params) {
return workTypeDao.get(params);
WorkTypeDTO workTypeDTO = workTypeDao.get(params);
if ("0".equals(workTypeDTO.getWorkTypeParentId())){
workTypeDTO.setWorkTypeParentName("根节点");
}
return workTypeDTO;
}
@Override

View File

@ -0,0 +1,474 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.tenlion.dao.apply.IApplyDao">
<resultMap id="applyDTO" type="cn.com.tenlion.pojo.dtos.apply.ApplyDTO">
<result column="apply_id" property="applyId"/>
<result column="apply_class_id" property="applyClassId"/>
<result column="apply_name" property="applyName"/>
<result column="apply_sex" property="applySex"/>
<result column="apply_data_birth" property="applyDataBirth"/>
<result column="apply_card_type" property="applyCardType"/>
<result column="apply_card_number" property="applyCardNumber"/>
<result column="apply_phone" property="applyPhone"/>
<result column="apply_address" property="applyAddress"/>
<result column="apply_culture_level" property="applyCultureLevel"/>
<result column="apply_postcode" property="applyPostcode"/>
<result column="apply_physical_state" property="applyPhysicalState"/>
<result column="apply_unit_name" property="applyUnitName"/>
<result column="apply_unit_phone" property="applyUnitPhone"/>
<result column="apply_unit_address" property="applyUnitAddress"/>
<result column="apply_user_card_photo" property="applyUserCardPhoto"/>
<result column="apply_audit_state" property="applyAuditState"/>
</resultMap>
<resultMap id="applyBO" type="cn.com.tenlion.pojo.bos.apply.ApplyBO">
<result column="apply_id" property="applyId"/>
<result column="apply_class_id" property="applyClassId"/>
<result column="apply_name" property="applyName"/>
<result column="apply_sex" property="applySex"/>
<result column="apply_data_birth" property="applyDataBirth"/>
<result column="apply_card_type" property="applyCardType"/>
<result column="apply_card_number" property="applyCardNumber"/>
<result column="apply_phone" property="applyPhone"/>
<result column="apply_address" property="applyAddress"/>
<result column="apply_culture_level" property="applyCultureLevel"/>
<result column="apply_postcode" property="applyPostcode"/>
<result column="apply_physical_state" property="applyPhysicalState"/>
<result column="apply_unit_name" property="applyUnitName"/>
<result column="apply_unit_phone" property="applyUnitPhone"/>
<result column="apply_unit_address" property="applyUnitAddress"/>
<result column="apply_user_card_photo" property="applyUserCardPhoto"/>
<result column="apply_audit_state" property="applyAuditState"/>
<result column="creator" property="creator"/>
<result column="gmt_create" property="gmtCreate"/>
<result column="modifier" property="modifier"/>
<result column="gmt_modified" property="gmtModified"/>
<result column="is_delete" property="isDelete"/>
</resultMap>
<resultMap id="applyPO" type="cn.com.tenlion.pojo.pos.apply.ApplyPO">
<result column="apply_id" property="applyId"/>
<result column="apply_class_id" property="applyClassId"/>
<result column="apply_name" property="applyName"/>
<result column="apply_sex" property="applySex"/>
<result column="apply_data_birth" property="applyDataBirth"/>
<result column="apply_card_type" property="applyCardType"/>
<result column="apply_card_number" property="applyCardNumber"/>
<result column="apply_phone" property="applyPhone"/>
<result column="apply_address" property="applyAddress"/>
<result column="apply_culture_level" property="applyCultureLevel"/>
<result column="apply_postcode" property="applyPostcode"/>
<result column="apply_physical_state" property="applyPhysicalState"/>
<result column="apply_unit_name" property="applyUnitName"/>
<result column="apply_unit_phone" property="applyUnitPhone"/>
<result column="apply_unit_address" property="applyUnitAddress"/>
<result column="apply_user_card_photo" property="applyUserCardPhoto"/>
<result column="apply_audit_state" property="applyAuditState"/>
<result column="creator" property="creator"/>
<result column="gmt_create" property="gmtCreate"/>
<result column="modifier" property="modifier"/>
<result column="gmt_modified" property="gmtModified"/>
<result column="is_delete" property="isDelete"/>
</resultMap>
<!-- 新增报名信息 -->
<insert id="save" parameterType="map">
INSERT INTO e_apply(
apply_id,
apply_class_id,
apply_name,
apply_sex,
apply_data_birth,
apply_card_type,
apply_card_number,
apply_phone,
apply_address,
apply_culture_level,
apply_postcode,
apply_physical_state,
apply_unit_name,
apply_unit_phone,
apply_unit_address,
apply_user_card_photo,
apply_audit_state,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{applyId},
#{applyClassId},
#{applyName},
#{applySex},
#{applyDataBirth},
#{applyCardType},
#{applyCardNumber},
#{applyPhone},
#{applyAddress},
#{applyCultureLevel},
#{applyPostcode},
#{applyPhysicalState},
#{applyUnitName},
#{applyUnitPhone},
#{applyUnitAddress},
#{applyUserCardPhoto},
#{applyAuditState},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
</insert>
<!-- 删除报名信息 -->
<update id="remove" parameterType="map">
UPDATE
e_apply
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
apply_id IN
<foreach collection="applyIds" index="index" open="(" separator="," close=")">
#{applyIds[${index}]}
</foreach>
</update>
<!-- 删除报名信息(物理) -->
<update id="delete" parameterType="map">
DELETE FROM
e_apply
WHERE
apply_id IN
<foreach collection="applyIds" index="index" open="(" separator="," close=")">
#{applyIds[${index}]}
</foreach>
</update>
<!-- 修改报名信息 -->
<update id="update" parameterType="map">
UPDATE
e_apply
SET
<if test="applyClassId != null and applyClassId != ''">
apply_class_id = #{applyClassId},
</if>
<if test="applyName != null and applyName != ''">
apply_name = #{applyName},
</if>
<if test="applySex != null">
apply_sex = #{applySex},w
</if>
<if test="applyDataBirth != null and applyDataBirth != ''">
apply_data_birth = #{applyDataBirth},
</if>
<if test="applyCardType != null">
apply_card_type = #{applyCardType},w
</if>
<if test="applyCardNumber != null and applyCardNumber != ''">
apply_card_number = #{applyCardNumber},
</if>
<if test="applyPhone != null">
apply_phone = #{applyPhone},
</if>
<if test="applyAddress != null and applyAddress != ''">
apply_address = #{applyAddress},
</if>
<if test="applyCultureLevel != null">
apply_culture_level = #{applyCultureLevel},w
</if>
<if test="applyPostcode != null and applyPostcode != ''">
apply_postcode = #{applyPostcode},
</if>
<if test="applyPhysicalState != null">
apply_physical_state = #{applyPhysicalState},w
</if>
<if test="applyUnitName != null and applyUnitName != ''">
apply_unit_name = #{applyUnitName},
</if>
<if test="applyUnitPhone != null">
apply_unit_phone = #{applyUnitPhone},
</if>
<if test="applyUnitAddress != null and applyUnitAddress != ''">
apply_unit_address = #{applyUnitAddress},
</if>
<if test="applyUserCardPhoto != null and applyUserCardPhoto != ''">
apply_user_card_photo = #{applyUserCardPhoto},
</if>
<if test="applyAuditState != null">
apply_audit_state = #{applyAuditState},
</if>
gmt_modified = #{gmtModified},
modifier = #{modifier},
apply_id = apply_id
WHERE
apply_id = #{applyId}
</update>
<!-- 报名信息详情 -->
<select id="get" parameterType="map" resultMap="applyDTO">
SELECT
t1.apply_class_id,
t1.apply_name,
t1.apply_sex,
t1.apply_data_birth,
t1.apply_card_type,
t1.apply_card_number,
t1.apply_phone,
t1.apply_address,
t1.apply_culture_level,
t1.apply_postcode,
t1.apply_physical_state,
t1.apply_unit_name,
t1.apply_unit_phone,
t1.apply_unit_address,
t1.apply_user_card_photo,
t1.apply_audit_state,
t1.apply_id
FROM
e_apply t1
WHERE
t1.is_delete = 0
<if test="applyId != null and applyId != ''">
AND
t1.apply_id = #{applyId}
</if>
</select>
<!-- 报名信息详情 -->
<select id="getBO" parameterType="map" resultMap="applyBO">
SELECT
t1.apply_id,
t1.apply_class_id,
t1.apply_name,
t1.apply_sex,
t1.apply_data_birth,
t1.apply_card_type,
t1.apply_card_number,
t1.apply_phone,
t1.apply_address,
t1.apply_culture_level,
t1.apply_postcode,
t1.apply_physical_state,
t1.apply_unit_name,
t1.apply_unit_phone,
t1.apply_unit_address,
t1.apply_user_card_photo,
t1.apply_audit_state,
t1.creator,
t1.gmt_create,
t1.modifier,
t1.gmt_modified,
t1.is_delete
FROM
e_apply t1
WHERE
t1.is_delete = 0
<if test="applyId != null and applyId != ''">
AND
t1.apply_id = #{applyId}
</if>
</select>
<!-- 报名信息详情 -->
<select id="getPO" parameterType="map" resultMap="applyPO">
SELECT
t1.apply_id,
t1.apply_class_id,
t1.apply_name,
t1.apply_sex,
t1.apply_data_birth,
t1.apply_card_type,
t1.apply_card_number,
t1.apply_phone,
t1.apply_address,
t1.apply_culture_level,
t1.apply_postcode,
t1.apply_physical_state,
t1.apply_unit_name,
t1.apply_unit_phone,
t1.apply_unit_address,
t1.apply_user_card_photo,
t1.apply_audit_state,
t1.creator,
t1.gmt_create,
t1.modifier,
t1.gmt_modified,
t1.is_delete
FROM
e_apply t1
WHERE
t1.is_delete = 0
<if test="applyId != null and applyId != ''">
AND
t1.apply_id = #{applyId}
</if>
</select>
<!-- 报名信息列表 -->
<select id="list" parameterType="map" resultMap="applyDTO">
SELECT
t1.apply_id,
t1.apply_class_id,
t1.apply_name,
t1.apply_sex,
t1.apply_data_birth,
t1.apply_card_type,
t1.apply_card_number,
t1.apply_phone,
t1.apply_address,
t1.apply_culture_level,
t1.apply_postcode,
t1.apply_physical_state,
t1.apply_unit_name,
t1.apply_unit_phone,
t1.apply_unit_address,
t1.apply_user_card_photo,
t1.apply_audit_state,
1
FROM
e_apply t1
WHERE
t1.is_delete = 0
<if test="keywords != null and keywords != ''">
AND (
<!-- 这里添加其他条件 -->
t1.id LIKE CONCAT('%', #{keywords}, '%')
)
</if>
<if test="startTime != null and startTime != ''">
AND
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
</if>
<if test="endTime != null and endTime != ''">
AND
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
</if>
<if test="applyIds != null and applyIds.size > 0">
AND
t1.apply_id IN
<foreach collection="applyIds" index="index" open="(" separator="," close=")">
#{applyIds[${index}]}
</foreach>
</if>
</select>
<!-- 报名信息列表 -->
<select id="listBO" parameterType="map" resultMap="applyBO">
SELECT
t1.apply_id,
t1.apply_class_id,
t1.apply_name,
t1.apply_sex,
t1.apply_data_birth,
t1.apply_card_type,
t1.apply_card_number,
t1.apply_phone,
t1.apply_address,
t1.apply_culture_level,
t1.apply_postcode,
t1.apply_physical_state,
t1.apply_unit_name,
t1.apply_unit_phone,
t1.apply_unit_address,
t1.apply_user_card_photo,
t1.apply_audit_state,
t1.creator,
t1.gmt_create,
t1.modifier,
t1.gmt_modified,
t1.is_delete
FROM
e_apply t1
WHERE
t1.is_delete = 0
<if test="keywords != null and keywords != ''">
AND (
<!-- 这里添加其他条件 -->
t1.id LIKE CONCAT('%', #{keywords}, '%')
)
</if>
<if test="startTime != null and startTime != ''">
AND
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
</if>
<if test="endTime != null and endTime != ''">
AND
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
</if>
<if test="applyIds != null and applyIds.size > 0">
AND
t1.apply_id IN
<foreach collection="applyIds" index="index" open="(" separator="," close=")">
#{applyIds[${index}]}
</foreach>
</if>
</select>
<!-- 报名信息列表 -->
<select id="listPO" parameterType="map" resultMap="applyPO">
SELECT
t1.apply_id,
t1.apply_class_id,
t1.apply_name,
t1.apply_sex,
t1.apply_data_birth,
t1.apply_card_type,
t1.apply_card_number,
t1.apply_phone,
t1.apply_address,
t1.apply_culture_level,
t1.apply_postcode,
t1.apply_physical_state,
t1.apply_unit_name,
t1.apply_unit_phone,
t1.apply_unit_address,
t1.apply_user_card_photo,
t1.apply_audit_state,
t1.creator,
t1.gmt_create,
t1.modifier,
t1.gmt_modified,
t1.is_delete
FROM
e_apply t1
WHERE
t1.is_delete = 0
<if test="keywords != null and keywords != ''">
AND (
<!-- 这里添加其他条件 -->
t1.id LIKE CONCAT('%', #{keywords}, '%')
)
</if>
<if test="startTime != null and startTime != ''">
AND
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
</if>
<if test="endTime != null and endTime != ''">
AND
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
</if>
<if test="applyIds != null and applyIds.size > 0">
AND
t1.apply_id IN
<foreach collection="applyIds" index="index" open="(" separator="," close=")">
#{applyIds[${index}]}
</foreach>
</if>
</select>
<!-- 报名信息统计 -->
<select id="count" parameterType="map" resultType="Integer">
SELECT
COUNT(*)
FROM
e_apply t1
WHERE
t1.is_delete = 0
</select>
</mapper>

View File

@ -0,0 +1,276 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.tenlion.dao.applyauditlog.IApplyAuditLogDao">
<resultMap id="applyAuditLogDTO" type="cn.com.tenlion.pojo.dtos.applyauditlog.ApplyAuditLogDTO">
<result column="apply_audit_log_id" property="applyAuditLogId"/>
<result column="apply_id" property="applyId"/>
<result column="apply_audit_state" property="applyAuditState"/>
<result column="apply_audit_explain" property="applyAuditExplain"/>
<result column="apply_audit_user_id" property="applyAuditUserId"/>
<result column="apply_audit_user_name" property="applyAuditUserName"/>
<result column="apply_audit_time" property="applyAuditTime"/>
<result column="is_delete" property="isDelete"/>
</resultMap>
<resultMap id="applyAuditLogBO" type="cn.com.tenlion.pojo.bos.applyauditlog.ApplyAuditLogBO">
<result column="apply_audit_log_id" property="applyAuditLogId"/>
<result column="apply_id" property="applyId"/>
<result column="apply_audit_state" property="applyAuditState"/>
<result column="apply_audit_explain" property="applyAuditExplain"/>
<result column="apply_audit_user_id" property="applyAuditUserId"/>
<result column="apply_audit_user_name" property="applyAuditUserName"/>
<result column="apply_audit_time" property="applyAuditTime"/>
<result column="is_delete" property="isDelete"/>
</resultMap>
<resultMap id="applyAuditLogPO" type="cn.com.tenlion.pojo.pos.applyauditlog.ApplyAuditLogPO">
<result column="apply_audit_log_id" property="applyAuditLogId"/>
<result column="apply_id" property="applyId"/>
<result column="apply_audit_state" property="applyAuditState"/>
<result column="apply_audit_explain" property="applyAuditExplain"/>
<result column="apply_audit_user_id" property="applyAuditUserId"/>
<result column="apply_audit_user_name" property="applyAuditUserName"/>
<result column="apply_audit_time" property="applyAuditTime"/>
<result column="is_delete" property="isDelete"/>
</resultMap>
<!-- 新增报名信息审核日志 -->
<insert id="save" parameterType="map">
INSERT INTO e_apply_audit_log(
apply_audit_log_id,
apply_id,
apply_audit_state,
apply_audit_explain,
apply_audit_user_id,
apply_audit_user_name,
apply_audit_time,
is_delete
) VALUES(
#{applyAuditLogId},
#{applyId},
#{applyAuditState},
#{applyAuditExplain},
#{applyAuditUserId},
#{applyAuditUserName},
#{applyAuditTime},
#{isDelete}
)
</insert>
<!-- 删除报名信息审核日志 -->
<update id="remove" parameterType="map">
UPDATE
e_apply_audit_log
SET
is_delete = 1
WHERE
apply_audit_log_id IN
<foreach collection="applyAuditLogIds" index="index" open="(" separator="," close=")">
#{applyAuditLogIds[${index}]}
</foreach>
</update>
<!-- 删除报名信息审核日志(物理) -->
<update id="delete" parameterType="map">
DELETE FROM
e_apply_audit_log
WHERE
apply_audit_log_id IN
<foreach collection="applyAuditLogIds" index="index" open="(" separator="," close=")">
#{applyAuditLogIds[${index}]}
</foreach>
</update>
<!-- 修改报名信息审核日志 -->
<update id="update" parameterType="map">
UPDATE
e_apply_audit_log
SET
<if test="applyId != null and applyId != ''">
apply_id = #{applyId},
</if>
<if test="applyAuditState != null">
apply_audit_state = #{applyAuditState},
</if>
<if test="applyAuditExplain != null and applyAuditExplain != ''">
apply_audit_explain = #{applyAuditExplain},
</if>
<if test="applyAuditUserId != null and applyAuditUserId != ''">
apply_audit_user_id = #{applyAuditUserId},
</if>
<if test="applyAuditUserName != null and applyAuditUserName != ''">
apply_audit_user_name = #{applyAuditUserName},
</if>
<if test="applyAuditTime != null and applyAuditTime != ''">
apply_audit_time = #{applyAuditTime},
</if>
apply_audit_log_id = apply_audit_log_id
WHERE
apply_audit_log_id = #{applyAuditLogId}
</update>
<!-- 报名信息审核日志详情 -->
<select id="get" parameterType="map" resultMap="applyAuditLogDTO">
SELECT
t1.apply_id,
t1.apply_audit_state,
t1.apply_audit_explain,
t1.apply_audit_user_id,
t1.apply_audit_user_name,
t1.apply_audit_time,
t1.apply_audit_log_id
FROM
e_apply_audit_log t1
WHERE
t1.is_delete = 0
<if test="applyAuditLogId != null and applyAuditLogId != ''">
AND
t1.apply_audit_log_id = #{applyAuditLogId}
</if>
</select>
<!-- 报名信息审核日志详情 -->
<select id="getBO" parameterType="map" resultMap="applyAuditLogBO">
SELECT
t1.apply_audit_log_id,
t1.apply_id,
t1.apply_audit_state,
t1.apply_audit_explain,
t1.apply_audit_user_id,
t1.apply_audit_user_name,
t1.apply_audit_time,
t1.is_delete
FROM
e_apply_audit_log t1
WHERE
t1.is_delete = 0
<if test="applyAuditLogId != null and applyAuditLogId != ''">
AND
t1.apply_audit_log_id = #{applyAuditLogId}
</if>
</select>
<!-- 报名信息审核日志详情 -->
<select id="getPO" parameterType="map" resultMap="applyAuditLogPO">
SELECT
t1.apply_audit_log_id,
t1.apply_id,
t1.apply_audit_state,
t1.apply_audit_explain,
t1.apply_audit_user_id,
t1.apply_audit_user_name,
t1.apply_audit_time,
t1.is_delete
FROM
e_apply_audit_log t1
WHERE
t1.is_delete = 0
<if test="applyAuditLogId != null and applyAuditLogId != ''">
AND
t1.apply_audit_log_id = #{applyAuditLogId}
</if>
</select>
<!-- 报名信息审核日志列表 -->
<select id="list" parameterType="map" resultMap="applyAuditLogDTO">
SELECT
t1.apply_audit_log_id,
t1.apply_id,
t1.apply_audit_state,
t1.apply_audit_explain,
t1.apply_audit_user_id,
t1.apply_audit_user_name,
t1.apply_audit_time,
t1.is_delete,
1
FROM
e_apply_audit_log t1
WHERE
t1.is_delete = 0
<if test="keywords != null and keywords != ''">
AND (
<!-- 这里添加其他条件 -->
t1.id LIKE CONCAT('%', #{keywords}, '%')
)
</if>
<if test="applyAuditLogIds != null and applyAuditLogIds.size > 0">
AND
t1.apply_audit_log_id IN
<foreach collection="applyAuditLogIds" index="index" open="(" separator="," close=")">
#{applyAuditLogIds[${index}]}
</foreach>
</if>
</select>
<!-- 报名信息审核日志列表 -->
<select id="listBO" parameterType="map" resultMap="applyAuditLogBO">
SELECT
t1.apply_audit_log_id,
t1.apply_id,
t1.apply_audit_state,
t1.apply_audit_explain,
t1.apply_audit_user_id,
t1.apply_audit_user_name,
t1.apply_audit_time,
t1.is_delete
FROM
e_apply_audit_log t1
WHERE
t1.is_delete = 0
<if test="keywords != null and keywords != ''">
AND (
<!-- 这里添加其他条件 -->
t1.id LIKE CONCAT('%', #{keywords}, '%')
)
</if>
<if test="applyAuditLogIds != null and applyAuditLogIds.size > 0">
AND
t1.apply_audit_log_id IN
<foreach collection="applyAuditLogIds" index="index" open="(" separator="," close=")">
#{applyAuditLogIds[${index}]}
</foreach>
</if>
</select>
<!-- 报名信息审核日志列表 -->
<select id="listPO" parameterType="map" resultMap="applyAuditLogPO">
SELECT
t1.apply_audit_log_id,
t1.apply_id,
t1.apply_audit_state,
t1.apply_audit_explain,
t1.apply_audit_user_id,
t1.apply_audit_user_name,
t1.apply_audit_time,
t1.is_delete
FROM
e_apply_audit_log t1
WHERE
t1.is_delete = 0
<if test="keywords != null and keywords != ''">
AND (
<!-- 这里添加其他条件 -->
t1.id LIKE CONCAT('%', #{keywords}, '%')
)
</if>
<if test="applyAuditLogIds != null and applyAuditLogIds.size > 0">
AND
t1.apply_audit_log_id IN
<foreach collection="applyAuditLogIds" index="index" open="(" separator="," close=")">
#{applyAuditLogIds[${index}]}
</foreach>
</if>
</select>
<!-- 报名信息审核日志统计 -->
<select id="count" parameterType="map" resultType="Integer">
SELECT
COUNT(*)
FROM
e_apply_audit_log t1
WHERE
t1.is_delete = 0
</select>
</mapper>

View File

@ -5,6 +5,7 @@
<resultMap id="workTypeDTO" type="cn.com.tenlion.pojo.dtos.worktype.WorkTypeDTO">
<result column="work_type_id" property="workTypeId"/>
<result column="work_type_parent_id" property="workTypeParentId"/>
<result column="work_type_parent_name" property="workTypeParentName"/>
<result column="work_type_name" property="workTypeName"/>
<result column="work_type_code" property="workTypeCode"/>
<result column="work_type_sort" property="workTypeSort"/>
@ -158,9 +159,12 @@
t1.work_type_code,
t1.work_type_sort,
t1.work_type_written_document,
t1.work_type_id
t1.work_type_id,
t2.work_type_name AS work_type_parent_name
FROM
e_work_type t1
LEFT JOIN e_work_type t2
ON t1.work_type_parent_id = t2.work_type_id
WHERE
t1.is_delete = 0
<if test="workTypeId != null and workTypeId != ''">
@ -225,11 +229,14 @@
t1.work_type_name,
t1.work_type_code,
t1.work_type_sort,
t1.work_type_written_document
t1.work_type_written_document,
t2.work_type_name AS work_type_parent_name
FROM
e_work_type t1
LEFT JOIN e_work_type t2
ON t1.work_type_parent_id = t2.work_type_id
WHERE
t1.is_delete = 0
t1.is_delete = 0 AND t1.work_type_parent_id = #{workTypeParentId}
<if test="keywords != null and keywords != ''">
AND (
<!-- 这里添加其他条件 -->
@ -251,6 +258,7 @@
#{workTypeIds[${index}]}
</foreach>
</if>
ORDER BY t1.work_type_sort
</select>
<!-- 工种类型列表 -->
@ -292,6 +300,7 @@
#{workTypeIds[${index}]}
</foreach>
</if>
ORDER BY t1.work_type_sort
</select>
<!-- 工种类型列表 -->
@ -333,6 +342,7 @@
#{workTypeIds[${index}]}
</foreach>
</if>
ORDER BY t1.work_type_sort
</select>
<!-- 工种类型统计 -->
@ -343,6 +353,9 @@
e_work_type t1
WHERE
t1.is_delete = 0
<if test="workTypeParentId != null and workTypeParentId != ''">
AND work_type_parent_id = #{workTypeParentId}
</if>
</select>
</mapper>

View File

@ -0,0 +1,372 @@
<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
</head>
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-row">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-body">
<div class="test-table-reload-btn" style="margin-bottom: 10px;">
<div class="layui-inline">
<input type="text" id="keywords" class="layui-input search-item" placeholder="输入关键字">
</div>
<div class="layui-inline">
<input type="text" id="startTime" class="layui-input search-item" placeholder="开始时间" readonly>
</div>
<div class="layui-inline">
<input type="text" id="endTime" class="layui-input search-item" placeholder="结束时间" readonly>
</div>
<button type="button" id="search" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-search"></i> 搜索
</button>
</div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 -->
<script type="text/html" id="headerToolBar">
<div class="layui-btn-group">
<button type="button" class="layui-btn layui-btn-sm" lay-event="saveEvent">
<i class="fa fa-lg fa-plus"></i> 新增
</button>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="updateEvent">
<i class="fa fa-lg fa-edit"></i> 编辑
</button>
<button type="button" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="removeEvent">
<i class="fa fa-lg fa-trash"></i> 删除
</button>
</div>
</script>
</div>
</div>
</div>
</div>
</div>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/'
}).extend({
index: 'lib/index'
}).use(['index', 'table', 'laydate', 'common'], function() {
var $ = layui.$;
var $win = $(window);
var table = layui.table;
var admin = layui.admin;
var laydate = layui.laydate;
var common = layui.common;
var resizeTimeout = null;
var tableUrl = 'api/apply/listpage';
// 初始化表格
function initTable() {
table.render({
elem: '#dataTable',
id: 'dataTable',
url: top.restAjax.path(tableUrl, []),
width: admin.screen() > 1 ? '100%' : '',
height: $win.height() - 90,
limit: 20,
limits: [20, 40, 60, 80, 100, 200],
toolbar: '#headerToolBar',
request: {
pageName: 'page',
limitName: 'rows'
},
cols: [
[
{type:'checkbox', fixed: 'left'},
{field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '<span>{{d.LAY_INDEX}}</span>'},
{field: 'applyId', width: 180, title: '报名信息ID', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyClassId', width: 180, title: '报名班级ID', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyName', width: 180, title: '报名人姓名', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applySex', width: 180, title: '报名人性别 1男 2女【数据字典】', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyDataBirth', width: 180, title: '报名人出生日期', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyCardType', width: 180, title: '报名人证件类型【数据字典】', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyCardNumber', width: 180, title: '报名人证件号码', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyPhone', width: 180, title: '报名人手机号码', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyAddress', width: 180, title: '报名人通讯地址', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyCultureLevel', width: 180, title: '报名人文化程度【数据字典】', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyPostcode', width: 180, title: '报名人邮编', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyPhysicalState', width: 180, title: '报名人身体状态【数据字典】', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyUnitName', width: 180, title: '报名人单位名称', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyUnitPhone', width: 180, title: '报名人单位电话', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyUnitAddress', width: 180, title: '报名人单位地址', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyUserCardPhoto', width: 180, title: '证件照片', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyAuditState', width: 180, title: '报名状态 0 待审核 1用户撤回 2审核通过 3未报到 4报名完成-1审核不通过', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
]
],
page: true,
parseData: function(data) {
return {
'code': 0,
'msg': '',
'count': data.total,
'data': data.rows
};
}
});
}
// 重载表格
function reloadTable(currentPage) {
table.reload('dataTable', {
url: top.restAjax.path(tableUrl, []),
where: {
keywords: $('#keywords').val(),
startTime: $('#startTime').val(),
endTime: $('#endTime').val()
},
page: {
curr: currentPage
},
height: $win.height() - 90,
});
}
// 初始化日期
function initDate() {
// 日期选择
laydate.render({
elem: '#startTime',
format: 'yyyy-MM-dd'
});
laydate.render({
elem: '#endTime',
format: 'yyyy-MM-dd'
});
}
// 删除
function removeData(ids) {
top.dialog.msg(top.dataMessage.delete, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function (index) {
top.dialog.close(index);
var layIndex;
top.restAjax.delete(top.restAjax.path('api/apply/remove/{ids}', [ids]), {}, null, function (code, data) {
top.dialog.msg(top.dataMessage.deleteSuccess, {time: 1000});
reloadTable();
}, function (code, data) {
top.dialog.msg(data.msg);
}, function () {
layIndex = top.dialog.msg(top.dataMessage.deleting, {icon: 16, time: 0, shade: 0.3});
}, function () {
top.dialog.close(layIndex);
});
}
});
}
initTable();
initDate();
// 事件 - 页面变化
$win.on('resize', function() {
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(function() {
reloadTable();
}, 500);
});
// 事件 - 搜索
$(document).on('click', '#search', function() {
reloadTable(1);
});
// 事件 - 增删改
table.on('toolbar(dataTable)', function(obj) {
var layEvent = obj.event;
var checkStatus = table.checkStatus('dataTable');
var checkDatas = checkStatus.data;
if(layEvent === 'saveEvent') {
layer.open({
type: 2,
title: false,
closeBtn: 0,
area: ['100%', '100%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path('route/apply/save.html', []),
end: function() {
reloadTable();
}
});
} else if(layEvent === 'updateEvent') {
if(checkDatas.length === 0) {
top.dialog.msg(top.dataMessage.table.selectEdit);
} else if(checkDatas.length > 1) {
top.dialog.msg(top.dataMessage.table.selectOneEdit);
} else {
layer.open({
type: 2,
title: false,
closeBtn: 0,
area: ['100%', '100%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path('route/apply/update.html?applyId={applyId}', [checkDatas[0].applyId]),
end: function() {
reloadTable();
}
});
}
} else if(layEvent === 'removeEvent') {
if(checkDatas.length === 0) {
top.dialog.msg(top.dataMessage.table.selectDelete);
} else {
var ids = '';
for(var i = 0, item; item = checkDatas[i++];) {
if(i > 1) {
ids += '_';
}
ids += item['applyId'];
}
removeData(ids);
}
}
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,337 @@
<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
</head>
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-card">
<div class="layui-card-header">
<span class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
<a class="close" href="javascript:void(0);">上级列表</a><span lay-separator="">/</span>
<a href="javascript:void(0);"><cite>新增内容</cite></a>
</span>
</div>
<div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm">
<div class="layui-form-item">
<label class="layui-form-label">报名班级ID</label>
<div class="layui-input-block">
<input type="text" id="applyClassId" name="applyClassId" class="layui-input" value="" placeholder="请输入报名班级ID" maxlength="36">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人姓名</label>
<div class="layui-input-block">
<input type="text" id="applyName" name="applyName" class="layui-input" value="" placeholder="请输入报名人姓名" maxlength="50">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人性别 1男 2女【数据字典】</label>
<div class="layui-input-block layui-form" id="applySexSelectTemplateBox" lay-filter="applySexSelectTemplateBox"></div>
<script id="applySexSelectTemplate" type="text/html">
<select id="applySex" name="applySex">
<option value="">请选择报名人性别 1男 2女【数据字典】</option>
{{# for(var i = 0, item; item = d[i++];) { }}
<option value="{{item.selectId}}">{{item.selectName}}</option>
{{# } }}
</select>
</script>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人出生日期</label>
<div class="layui-input-block">
<input type="text" id="applyDataBirth" name="applyDataBirth" class="layui-input" value="" placeholder="请选择报名人出生日期" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人证件类型【数据字典】</label>
<div class="layui-input-block layui-form" id="applyCardTypeSelectTemplateBox" lay-filter="applyCardTypeSelectTemplateBox"></div>
<script id="applyCardTypeSelectTemplate" type="text/html">
<select id="applyCardType" name="applyCardType">
<option value="">请选择报名人证件类型【数据字典】</option>
{{# for(var i = 0, item; item = d[i++];) { }}
<option value="{{item.selectId}}">{{item.selectName}}</option>
{{# } }}
</select>
</script>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人证件号码</label>
<div class="layui-input-block">
<input type="text" id="applyCardNumber" name="applyCardNumber" class="layui-input" value="" placeholder="请输入报名人证件号码" maxlength="50">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人手机号码</label>
<div class="layui-input-block">
<input type="number" id="applyPhone" name="applyPhone" class="layui-input" value="" placeholder="请输入报名人手机号码" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人通讯地址</label>
<div class="layui-input-block">
<input type="text" id="applyAddress" name="applyAddress" class="layui-input" value="" placeholder="请输入报名人通讯地址" maxlength="500">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人文化程度【数据字典】</label>
<div class="layui-input-block layui-form" id="applyCultureLevelSelectTemplateBox" lay-filter="applyCultureLevelSelectTemplateBox"></div>
<script id="applyCultureLevelSelectTemplate" type="text/html">
<select id="applyCultureLevel" name="applyCultureLevel">
<option value="">请选择报名人文化程度【数据字典】</option>
{{# for(var i = 0, item; item = d[i++];) { }}
<option value="{{item.selectId}}">{{item.selectName}}</option>
{{# } }}
</select>
</script>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人邮编</label>
<div class="layui-input-block">
<input type="text" id="applyPostcode" name="applyPostcode" class="layui-input" value="" placeholder="请输入报名人邮编" maxlength="50">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人身体状态【数据字典】</label>
<div class="layui-input-block layui-form" id="applyPhysicalStateSelectTemplateBox" lay-filter="applyPhysicalStateSelectTemplateBox"></div>
<script id="applyPhysicalStateSelectTemplate" type="text/html">
<select id="applyPhysicalState" name="applyPhysicalState">
<option value="">请选择报名人身体状态【数据字典】</option>
{{# for(var i = 0, item; item = d[i++];) { }}
<option value="{{item.selectId}}">{{item.selectName}}</option>
{{# } }}
</select>
</script>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人单位名称</label>
<div class="layui-input-block">
<input type="text" id="applyUnitName" name="applyUnitName" class="layui-input" value="" placeholder="请输入报名人单位名称" maxlength="100">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人单位电话</label>
<div class="layui-input-block">
<input type="number" id="applyUnitPhone" name="applyUnitPhone" class="layui-input" value="" placeholder="请输入报名人单位电话" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人单位地址</label>
<div class="layui-input-block">
<input type="text" id="applyUnitAddress" name="applyUnitAddress" class="layui-input" value="" placeholder="请输入报名人单位地址" maxlength="500">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">证件照片</label>
<div class="layui-input-block">
<input type="text" id="applyUserCardPhoto" name="applyUserCardPhoto" class="layui-input" value="" placeholder="请输入证件照片" maxlength="36">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名状态 0 待审核 1用户撤回 2审核通过 3未报到 4报名完成-1审核不通过</label>
<div class="layui-input-block">
<input type="number" id="applyAuditState" name="applyAuditState" class="layui-input" value="" placeholder="请输入报名状态 0 待审核 1用户撤回 2审核通过 3未报到 4报名完成-1审核不通过" lay-verify="required">
</div>
</div>
<div class="layui-form-item layui-layout-admin">
<div class="layui-input-block">
<div class="layui-footer" style="left: 0;">
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm">提交新增</button>
<button type="button" class="layui-btn layui-btn-primary close">返回上级</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
var $ = layui.$;
var form = layui.form;
var laytpl = layui.laytpl;
var laydate = layui.laydate;
var wangEditor = window.wangEditor;
var wangEditorObj = {};
var viewerObj = {};
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
function refreshDownloadTemplet(fileName, file) {
var dataRander = {};
dataRander[fileName] = file;
laytpl(document.getElementById(fileName +'FileDownload').innerHTML).render(dataRander, function(html) {
document.getElementById(fileName +'FileBox').innerHTML = html;
});
}
// 初始化文件列表
function initFileList(fileName, ids, callback) {
var dataForm = {};
dataForm[fileName] = ids;
form.val('dataForm', dataForm);
if(!ids) {
refreshDownloadTemplet(fileName, []);
if(callback) {
callback(fileName, []);
}
return;
}
top.restAjax.get(top.restAjax.path('api/file/list', []), {
ids: ids
}, null, function(code, data) {
refreshDownloadTemplet(fileName, data);
if(callback) {
callback(fileName, data);
}
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化视频
function initVideo(fileName, data) {
for(var i = 0, item; item = data[i++];) {
var player = new ckplayer({
container: '#'+ fileName + i,
variable: 'player',
flashplayer: false,
video: {
file: 'route/file/download/true/'+ item.fileId,
type: 'video/mp4'
}
});
}
}
// 初始化报名人性别 1男 2女【数据字典】下拉选择
function initApplySexSelect() {
top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('applySexSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('applySexSelectTemplateBox').innerHTML = html;
});
form.render('select', 'applySexSelectTemplateBox');
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化报名人出生日期日期
function initApplyDataBirthDate() {
laydate.render({
elem: '#applyDataBirth',
type: 'date',
value: new Date(),
trigger: 'click'
});
}
// 初始化报名人证件类型【数据字典】下拉选择
function initApplyCardTypeSelect() {
top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('applyCardTypeSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('applyCardTypeSelectTemplateBox').innerHTML = html;
});
form.render('select', 'applyCardTypeSelectTemplateBox');
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化报名人文化程度【数据字典】下拉选择
function initApplyCultureLevelSelect() {
top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('applyCultureLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('applyCultureLevelSelectTemplateBox').innerHTML = html;
});
form.render('select', 'applyCultureLevelSelectTemplateBox');
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化报名人身体状态【数据字典】下拉选择
function initApplyPhysicalStateSelect() {
top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('applyPhysicalStateSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('applyPhysicalStateSelectTemplateBox').innerHTML = html;
});
form.render('select', 'applyPhysicalStateSelectTemplateBox');
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化内容
function initData() {
initApplySexSelect();
initApplyDataBirthDate();
initApplyCardTypeSelect();
initApplyCultureLevelSelect();
initApplyPhysicalStateSelect();
}
initData();
// 提交表单
form.on('submit(submitForm)', function(formData) {
top.dialog.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index);
var loadLayerIndex;
top.restAjax.post(top.restAjax.path('api/apply/save', []), formData.field, null, function(code, data) {
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function(index) {
top.dialog.close(index);
window.location.reload();
},
btn2: function() {
closeBox();
}
});
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
});
return false;
});
$('.close').on('click', function() {
closeBox();
});
// 校验
form.verify({
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,370 @@
<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
</head>
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-card">
<div class="layui-card-header">
<span class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
<a class="close" href="javascript:void(0);">上级列表</a><span lay-separator="">/</span>
<a href="javascript:void(0);"><cite>编辑内容</cite></a>
</span>
</div>
<div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm">
<div class="layui-form-item">
<label class="layui-form-label">报名班级ID</label>
<div class="layui-input-block">
<input type="text" id="applyClassId" name="applyClassId" class="layui-input" value="" placeholder="请输入报名班级ID" maxlength="36">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人姓名</label>
<div class="layui-input-block">
<input type="text" id="applyName" name="applyName" class="layui-input" value="" placeholder="请输入报名人姓名" maxlength="50">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人性别 1男 2女【数据字典】</label>
<div class="layui-input-block layui-form" id="applySexSelectTemplateBox" lay-filter="applySexSelectTemplateBox"></div>
<script id="applySexSelectTemplate" type="text/html">
<select id="applySex" name="applySex">
<option value="">请选择报名人性别 1男 2女【数据字典】</option>
{{# for(var i = 0, item; item = d[i++];) { }}
<option value="{{item.selectId}}">{{item.selectName}}</option>
{{# } }}
</select>
</script>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人出生日期</label>
<div class="layui-input-block">
<input type="text" id="applyDataBirth" name="applyDataBirth" class="layui-input" value="" placeholder="请选择报名人出生日期" lay-verify="required" readonly style="cursor: pointer;">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人证件类型【数据字典】</label>
<div class="layui-input-block layui-form" id="applyCardTypeSelectTemplateBox" lay-filter="applyCardTypeSelectTemplateBox"></div>
<script id="applyCardTypeSelectTemplate" type="text/html">
<select id="applyCardType" name="applyCardType">
<option value="">请选择报名人证件类型【数据字典】</option>
{{# for(var i = 0, item; item = d[i++];) { }}
<option value="{{item.selectId}}">{{item.selectName}}</option>
{{# } }}
</select>
</script>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人证件号码</label>
<div class="layui-input-block">
<input type="text" id="applyCardNumber" name="applyCardNumber" class="layui-input" value="" placeholder="请输入报名人证件号码" maxlength="50">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人手机号码</label>
<div class="layui-input-block">
<input type="number" id="applyPhone" name="applyPhone" class="layui-input" value="" placeholder="请输入报名人手机号码" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人通讯地址</label>
<div class="layui-input-block">
<input type="text" id="applyAddress" name="applyAddress" class="layui-input" value="" placeholder="请输入报名人通讯地址" maxlength="500">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人文化程度【数据字典】</label>
<div class="layui-input-block layui-form" id="applyCultureLevelSelectTemplateBox" lay-filter="applyCultureLevelSelectTemplateBox"></div>
<script id="applyCultureLevelSelectTemplate" type="text/html">
<select id="applyCultureLevel" name="applyCultureLevel">
<option value="">请选择报名人文化程度【数据字典】</option>
{{# for(var i = 0, item; item = d[i++];) { }}
<option value="{{item.selectId}}">{{item.selectName}}</option>
{{# } }}
</select>
</script>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人邮编</label>
<div class="layui-input-block">
<input type="text" id="applyPostcode" name="applyPostcode" class="layui-input" value="" placeholder="请输入报名人邮编" maxlength="50">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人身体状态【数据字典】</label>
<div class="layui-input-block layui-form" id="applyPhysicalStateSelectTemplateBox" lay-filter="applyPhysicalStateSelectTemplateBox"></div>
<script id="applyPhysicalStateSelectTemplate" type="text/html">
<select id="applyPhysicalState" name="applyPhysicalState">
<option value="">请选择报名人身体状态【数据字典】</option>
{{# for(var i = 0, item; item = d[i++];) { }}
<option value="{{item.selectId}}">{{item.selectName}}</option>
{{# } }}
</select>
</script>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人单位名称</label>
<div class="layui-input-block">
<input type="text" id="applyUnitName" name="applyUnitName" class="layui-input" value="" placeholder="请输入报名人单位名称" maxlength="100">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人单位电话</label>
<div class="layui-input-block">
<input type="number" id="applyUnitPhone" name="applyUnitPhone" class="layui-input" value="" placeholder="请输入报名人单位电话" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名人单位地址</label>
<div class="layui-input-block">
<input type="text" id="applyUnitAddress" name="applyUnitAddress" class="layui-input" value="" placeholder="请输入报名人单位地址" maxlength="500">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">证件照片</label>
<div class="layui-input-block">
<input type="text" id="applyUserCardPhoto" name="applyUserCardPhoto" class="layui-input" value="" placeholder="请输入证件照片" maxlength="36">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">报名状态 0 待审核 1用户撤回 2审核通过 3未报到 4报名完成-1审核不通过</label>
<div class="layui-input-block">
<input type="number" id="applyAuditState" name="applyAuditState" class="layui-input" value="" placeholder="请输入报名状态 0 待审核 1用户撤回 2审核通过 3未报到 4报名完成-1审核不通过" lay-verify="required">
</div>
</div>
<div class="layui-form-item layui-layout-admin">
<div class="layui-input-block">
<div class="layui-footer" style="left: 0;">
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm">提交编辑</button>
<button type="button" class="layui-btn layui-btn-primary close">返回上级</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
var $ = layui.$;
var form = layui.form;
var laytpl = layui.laytpl;
var laydate = layui.laydate;
var applyId = top.restAjax.params(window.location.href).applyId;
var wangEditor = window.wangEditor;
var wangEditorObj = {};
var viewerObj = {};
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
function refreshDownloadTemplet(fileName, file) {
var dataRander = {};
dataRander[fileName] = file;
laytpl(document.getElementById(fileName +'FileDownload').innerHTML).render(dataRander, function(html) {
document.getElementById(fileName +'FileBox').innerHTML = html;
});
}
// 初始化文件列表
function initFileList(fileName, ids, callback) {
var dataForm = {};
dataForm[fileName] = ids;
form.val('dataForm', dataForm);
if(!ids) {
refreshDownloadTemplet(fileName, []);
if(callback) {
callback(fileName, []);
}
return;
}
top.restAjax.get(top.restAjax.path('api/file/list', []), {
ids: ids
}, null, function(code, data) {
refreshDownloadTemplet(fileName, data);
if(callback) {
callback(fileName, data);
}
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化视频
function initVideo(fileName, data) {
for(var i = 0, item; item = data[i++];) {
var player = new ckplayer({
container: '#'+ fileName + i,
variable: 'player',
flashplayer: false,
video: {
file: 'route/file/download/true/'+ item.fileId,
type: 'video/mp4'
}
});
}
}
// 初始化报名人性别 1男 2女【数据字典】下拉选择
function initApplySexSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('applySexSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('applySexSelectTemplateBox').innerHTML = html;
});
form.render('select', 'applySexSelectTemplateBox');
var selectObj = {};
selectObj['applySex'] = selectValue;
form.val('dataForm', selectObj);
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化报名人出生日期日期
function initApplyDataBirthDate() {
laydate.render({
elem: '#applyDataBirth',
type: 'date',
value: new Date(),
trigger: 'click'
});
}
// 初始化报名人证件类型【数据字典】下拉选择
function initApplyCardTypeSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('applyCardTypeSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('applyCardTypeSelectTemplateBox').innerHTML = html;
});
form.render('select', 'applyCardTypeSelectTemplateBox');
var selectObj = {};
selectObj['applyCardType'] = selectValue;
form.val('dataForm', selectObj);
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化报名人文化程度【数据字典】下拉选择
function initApplyCultureLevelSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('applyCultureLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('applyCultureLevelSelectTemplateBox').innerHTML = html;
});
form.render('select', 'applyCultureLevelSelectTemplateBox');
var selectObj = {};
selectObj['applyCultureLevel'] = selectValue;
form.val('dataForm', selectObj);
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化报名人身体状态【数据字典】下拉选择
function initApplyPhysicalStateSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('applyPhysicalStateSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('applyPhysicalStateSelectTemplateBox').innerHTML = html;
});
form.render('select', 'applyPhysicalStateSelectTemplateBox');
var selectObj = {};
selectObj['applyPhysicalState'] = selectValue;
form.val('dataForm', selectObj);
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化内容
function initData() {
var loadLayerIndex;
top.restAjax.get(top.restAjax.path('api/apply/get/{applyId}', [applyId]), {}, null, function(code, data) {
var dataFormData = {};
for(var i in data) {
dataFormData[i] = data[i] +'';
}
form.val('dataForm', dataFormData);
form.render(null, 'dataForm');
initApplySexSelect(data['applySex']);
initApplyDataBirthDate();
initApplyCardTypeSelect(data['applyCardType']);
initApplyCultureLevelSelect(data['applyCultureLevel']);
initApplyPhysicalStateSelect(data['applyPhysicalState']);
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
}
initData();
// 提交表单
form.on('submit(submitForm)', function(formData) {
top.dialog.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index);
var loadLayerIndex;
top.restAjax.put(top.restAjax.path('api/apply/update/{applyId}', [applyId]), formData.field, null, function(code, data) {
var layerIndex = top.dialog.msg(top.dataMessage.updateSuccess, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function(index) {
top.dialog.close(index);
window.location.reload();
},
btn2: function() {
closeBox();
}
});
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
});
return false;
});
$('.close').on('click', function() {
closeBox();
});
// 校验
form.verify({
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,291 @@
<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
</head>
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-row">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-body">
<div class="test-table-reload-btn" style="margin-bottom: 10px;">
<div class="layui-inline">
<input type="text" id="keywords" class="layui-input search-item" placeholder="输入关键字">
</div>
<div class="layui-inline">
<input type="text" id="startTime" class="layui-input search-item" placeholder="开始时间" readonly>
</div>
<div class="layui-inline">
<input type="text" id="endTime" class="layui-input search-item" placeholder="结束时间" readonly>
</div>
<button type="button" id="search" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-search"></i> 搜索
</button>
</div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 -->
<script type="text/html" id="headerToolBar">
<div class="layui-btn-group">
<button type="button" class="layui-btn layui-btn-sm" lay-event="saveEvent">
<i class="fa fa-lg fa-plus"></i> 新增
</button>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="updateEvent">
<i class="fa fa-lg fa-edit"></i> 编辑
</button>
<button type="button" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="removeEvent">
<i class="fa fa-lg fa-trash"></i> 删除
</button>
</div>
</script>
</div>
</div>
</div>
</div>
</div>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/'
}).extend({
index: 'lib/index'
}).use(['index', 'table', 'laydate', 'common'], function() {
var $ = layui.$;
var $win = $(window);
var table = layui.table;
var admin = layui.admin;
var laydate = layui.laydate;
var common = layui.common;
var resizeTimeout = null;
var tableUrl = 'api/applyauditlog/listpage';
// 初始化表格
function initTable() {
table.render({
elem: '#dataTable',
id: 'dataTable',
url: top.restAjax.path(tableUrl, []),
width: admin.screen() > 1 ? '100%' : '',
height: $win.height() - 90,
limit: 20,
limits: [20, 40, 60, 80, 100, 200],
toolbar: '#headerToolBar',
request: {
pageName: 'page',
limitName: 'rows'
},
cols: [
[
{type:'checkbox', fixed: 'left'},
{field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '<span>{{d.LAY_INDEX}}</span>'},
{field: 'applyAuditLogId', width: 180, title: '审核ID', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyId', width: 180, title: '报名ID', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyAuditState', width: 180, title: '审核结果 2审核通过 4报名完成-1审核不通过', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyAuditExplain', width: 180, title: '审核说明', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyAuditUserId', width: 180, title: '审核人ID', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyAuditUserName', width: 180, title: '审核人姓名', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'applyAuditTime', width: 180, title: '审核时间', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'isDelete', width: 180, title: '删除状态', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
]
],
page: true,
parseData: function(data) {
return {
'code': 0,
'msg': '',
'count': data.total,
'data': data.rows
};
}
});
}
// 重载表格
function reloadTable(currentPage) {
table.reload('dataTable', {
url: top.restAjax.path(tableUrl, []),
where: {
keywords: $('#keywords').val(),
startTime: $('#startTime').val(),
endTime: $('#endTime').val()
},
page: {
curr: currentPage
},
height: $win.height() - 90,
});
}
// 初始化日期
function initDate() {
// 日期选择
laydate.render({
elem: '#startTime',
format: 'yyyy-MM-dd'
});
laydate.render({
elem: '#endTime',
format: 'yyyy-MM-dd'
});
}
// 删除
function removeData(ids) {
top.dialog.msg(top.dataMessage.delete, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function (index) {
top.dialog.close(index);
var layIndex;
top.restAjax.delete(top.restAjax.path('api/applyauditlog/remove/{ids}', [ids]), {}, null, function (code, data) {
top.dialog.msg(top.dataMessage.deleteSuccess, {time: 1000});
reloadTable();
}, function (code, data) {
top.dialog.msg(data.msg);
}, function () {
layIndex = top.dialog.msg(top.dataMessage.deleting, {icon: 16, time: 0, shade: 0.3});
}, function () {
top.dialog.close(layIndex);
});
}
});
}
initTable();
initDate();
// 事件 - 页面变化
$win.on('resize', function() {
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(function() {
reloadTable();
}, 500);
});
// 事件 - 搜索
$(document).on('click', '#search', function() {
reloadTable(1);
});
// 事件 - 增删改
table.on('toolbar(dataTable)', function(obj) {
var layEvent = obj.event;
var checkStatus = table.checkStatus('dataTable');
var checkDatas = checkStatus.data;
if(layEvent === 'saveEvent') {
layer.open({
type: 2,
title: false,
closeBtn: 0,
area: ['100%', '100%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path('route/applyauditlog/save.html', []),
end: function() {
reloadTable();
}
});
} else if(layEvent === 'updateEvent') {
if(checkDatas.length === 0) {
top.dialog.msg(top.dataMessage.table.selectEdit);
} else if(checkDatas.length > 1) {
top.dialog.msg(top.dataMessage.table.selectOneEdit);
} else {
layer.open({
type: 2,
title: false,
closeBtn: 0,
area: ['100%', '100%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path('route/applyauditlog/update.html?applyAuditLogId={applyAuditLogId}', [checkDatas[0].applyAuditLogId]),
end: function() {
reloadTable();
}
});
}
} else if(layEvent === 'removeEvent') {
if(checkDatas.length === 0) {
top.dialog.msg(top.dataMessage.table.selectDelete);
} else {
var ids = '';
for(var i = 0, item; item = checkDatas[i++];) {
if(i > 1) {
ids += '_';
}
ids += item['applyAuditLogId'];
}
removeData(ids);
}
}
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,201 @@
<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
</head>
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-card">
<div class="layui-card-header">
<span class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
<a class="close" href="javascript:void(0);">上级列表</a><span lay-separator="">/</span>
<a href="javascript:void(0);"><cite>新增内容</cite></a>
</span>
</div>
<div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm">
<div class="layui-form-item">
<label class="layui-form-label">报名ID</label>
<div class="layui-input-block">
<input type="text" id="applyId" name="applyId" class="layui-input" value="" placeholder="请输入报名ID" maxlength="36">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核结果 2审核通过 4报名完成-1审核不通过</label>
<div class="layui-input-block">
<input type="number" id="applyAuditState" name="applyAuditState" class="layui-input" value="" placeholder="请输入审核结果 2审核通过 4报名完成-1审核不通过" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核说明</label>
<div class="layui-input-block">
<input type="text" id="applyAuditExplain" name="applyAuditExplain" class="layui-input" value="" placeholder="请输入审核说明" maxlength="500">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核人ID</label>
<div class="layui-input-block">
<input type="text" id="applyAuditUserId" name="applyAuditUserId" class="layui-input" value="" placeholder="请输入审核人ID" maxlength="36">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核人姓名</label>
<div class="layui-input-block">
<input type="text" id="applyAuditUserName" name="applyAuditUserName" class="layui-input" value="" placeholder="请输入审核人姓名" maxlength="50">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核时间</label>
<div class="layui-input-block">
<input type="text" id="applyAuditTime" name="applyAuditTime" class="layui-input" value="" placeholder="请选择审核时间" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
<div class="layui-form-item layui-layout-admin">
<div class="layui-input-block">
<div class="layui-footer" style="left: 0;">
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm">提交新增</button>
<button type="button" class="layui-btn layui-btn-primary close">返回上级</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
var $ = layui.$;
var form = layui.form;
var laytpl = layui.laytpl;
var laydate = layui.laydate;
var wangEditor = window.wangEditor;
var wangEditorObj = {};
var viewerObj = {};
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
function refreshDownloadTemplet(fileName, file) {
var dataRander = {};
dataRander[fileName] = file;
laytpl(document.getElementById(fileName +'FileDownload').innerHTML).render(dataRander, function(html) {
document.getElementById(fileName +'FileBox').innerHTML = html;
});
}
// 初始化文件列表
function initFileList(fileName, ids, callback) {
var dataForm = {};
dataForm[fileName] = ids;
form.val('dataForm', dataForm);
if(!ids) {
refreshDownloadTemplet(fileName, []);
if(callback) {
callback(fileName, []);
}
return;
}
top.restAjax.get(top.restAjax.path('api/file/list', []), {
ids: ids
}, null, function(code, data) {
refreshDownloadTemplet(fileName, data);
if(callback) {
callback(fileName, data);
}
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化视频
function initVideo(fileName, data) {
for(var i = 0, item; item = data[i++];) {
var player = new ckplayer({
container: '#'+ fileName + i,
variable: 'player',
flashplayer: false,
video: {
file: 'route/file/download/true/'+ item.fileId,
type: 'video/mp4'
}
});
}
}
// 初始化审核时间时间戳
function initApplyAuditTimeDateTime() {
laydate.render({
elem: '#applyAuditTime',
type: 'datetime',
value: new Date(),
trigger: 'click'
});
}
// 初始化内容
function initData() {
initApplyAuditTimeDateTime();
}
initData();
// 提交表单
form.on('submit(submitForm)', function(formData) {
top.dialog.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index);
var loadLayerIndex;
top.restAjax.post(top.restAjax.path('api/applyauditlog/save', []), formData.field, null, function(code, data) {
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function(index) {
top.dialog.close(index);
window.location.reload();
},
btn2: function() {
closeBox();
}
});
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
});
return false;
});
$('.close').on('click', function() {
closeBox();
});
// 校验
form.verify({
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,218 @@
<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
</head>
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-card">
<div class="layui-card-header">
<span class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
<a class="close" href="javascript:void(0);">上级列表</a><span lay-separator="">/</span>
<a href="javascript:void(0);"><cite>编辑内容</cite></a>
</span>
</div>
<div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm">
<div class="layui-form-item">
<label class="layui-form-label">报名ID</label>
<div class="layui-input-block">
<input type="text" id="applyId" name="applyId" class="layui-input" value="" placeholder="请输入报名ID" maxlength="36">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核结果 2审核通过 4报名完成-1审核不通过</label>
<div class="layui-input-block">
<input type="number" id="applyAuditState" name="applyAuditState" class="layui-input" value="" placeholder="请输入审核结果 2审核通过 4报名完成-1审核不通过" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核说明</label>
<div class="layui-input-block">
<input type="text" id="applyAuditExplain" name="applyAuditExplain" class="layui-input" value="" placeholder="请输入审核说明" maxlength="500">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核人ID</label>
<div class="layui-input-block">
<input type="text" id="applyAuditUserId" name="applyAuditUserId" class="layui-input" value="" placeholder="请输入审核人ID" maxlength="36">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核人姓名</label>
<div class="layui-input-block">
<input type="text" id="applyAuditUserName" name="applyAuditUserName" class="layui-input" value="" placeholder="请输入审核人姓名" maxlength="50">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核时间</label>
<div class="layui-input-block">
<input type="text" id="applyAuditTime" name="applyAuditTime" class="layui-input" value="" placeholder="请选择审核时间" lay-verify="required" readonly style="cursor: pointer;">
</div>
</div>
<div class="layui-form-item layui-layout-admin">
<div class="layui-input-block">
<div class="layui-footer" style="left: 0;">
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm">提交编辑</button>
<button type="button" class="layui-btn layui-btn-primary close">返回上级</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
var $ = layui.$;
var form = layui.form;
var laytpl = layui.laytpl;
var laydate = layui.laydate;
var applyAuditLogId = top.restAjax.params(window.location.href).applyAuditLogId;
var wangEditor = window.wangEditor;
var wangEditorObj = {};
var viewerObj = {};
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
function refreshDownloadTemplet(fileName, file) {
var dataRander = {};
dataRander[fileName] = file;
laytpl(document.getElementById(fileName +'FileDownload').innerHTML).render(dataRander, function(html) {
document.getElementById(fileName +'FileBox').innerHTML = html;
});
}
// 初始化文件列表
function initFileList(fileName, ids, callback) {
var dataForm = {};
dataForm[fileName] = ids;
form.val('dataForm', dataForm);
if(!ids) {
refreshDownloadTemplet(fileName, []);
if(callback) {
callback(fileName, []);
}
return;
}
top.restAjax.get(top.restAjax.path('api/file/list', []), {
ids: ids
}, null, function(code, data) {
refreshDownloadTemplet(fileName, data);
if(callback) {
callback(fileName, data);
}
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化视频
function initVideo(fileName, data) {
for(var i = 0, item; item = data[i++];) {
var player = new ckplayer({
container: '#'+ fileName + i,
variable: 'player',
flashplayer: false,
video: {
file: 'route/file/download/true/'+ item.fileId,
type: 'video/mp4'
}
});
}
}
// 初始化审核时间时间戳
function initApplyAuditTimeDateTime() {
laydate.render({
elem: '#applyAuditTime',
type: 'datetime',
value: new Date(),
trigger: 'click'
});
}
// 初始化内容
function initData() {
var loadLayerIndex;
top.restAjax.get(top.restAjax.path('api/applyauditlog/get/{applyAuditLogId}', [applyAuditLogId]), {}, null, function(code, data) {
var dataFormData = {};
for(var i in data) {
dataFormData[i] = data[i] +'';
}
form.val('dataForm', dataFormData);
form.render(null, 'dataForm');
initApplyAuditTimeDateTime();
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
}
initData();
// 提交表单
form.on('submit(submitForm)', function(formData) {
top.dialog.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index);
var loadLayerIndex;
top.restAjax.put(top.restAjax.path('api/applyauditlog/update/{applyAuditLogId}', [applyAuditLogId]), formData.field, null, function(code, data) {
var layerIndex = top.dialog.msg(top.dataMessage.updateSuccess, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function(index) {
top.dialog.close(index);
window.location.reload();
},
btn2: function() {
closeBox();
}
});
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
});
return false;
});
$('.close').on('click', function() {
closeBox();
});
// 校验
form.verify({
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,299 @@
<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
</head>
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-row">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-body">
<div class="test-table-reload-btn" style="margin-bottom: 10px;">
<div class="layui-inline">
<input type="text" id="keywords" class="layui-input search-item" placeholder="输入关键字">
</div>
<div class="layui-inline">
<input type="text" id="startTime" class="layui-input search-item" placeholder="开始时间" readonly>
</div>
<div class="layui-inline">
<input type="text" id="endTime" class="layui-input search-item" placeholder="结束时间" readonly>
</div>
<button type="button" id="search" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-search"></i> 搜索
</button>
</div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 -->
<script type="text/html" id="headerToolBar">
<div class="layui-btn-group">
<button type="button" class="layui-btn layui-btn-sm" lay-event="saveEvent">
<i class="fa fa-lg fa-plus"></i> 新增
</button>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="updateEvent">
<i class="fa fa-lg fa-edit"></i> 编辑
</button>
<button type="button" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="removeEvent">
<i class="fa fa-lg fa-trash"></i> 删除
</button>
</div>
</script>
</div>
</div>
</div>
</div>
</div>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/'
}).extend({
index: 'lib/index'
}).use(['index', 'table', 'laydate', 'common'], function() {
var $ = layui.$;
var $win = $(window);
var table = layui.table;
var admin = layui.admin;
var laydate = layui.laydate;
var common = layui.common;
var resizeTimeout = null;
var tableUrl = 'api/institution/listpage';
var institutionType="training"
// 初始化表格
function initTable() {
table.render({
elem: '#dataTable',
id: 'dataTable',
url: top.restAjax.path(tableUrl, []),
width: admin.screen() > 1 ? '100%' : '',
height: $win.height() - 90,
limit: 20,
limits: [20, 40, 60, 80, 100, 200],
toolbar: '#headerToolBar',
request: {
pageName: 'page',
limitName: 'rows'
},
where:{
institutionType:institutionType
},
cols: [
[
{type:'checkbox', fixed: 'left'},
{field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '<span>{{d.LAY_INDEX}}</span>'},
{field: 'institutionImage', width: 180, title: '机构图片', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
var value='<ul id="viewer">';
var datas = rowData.split(',');
for(var i = 0, item = datas[i]; item = datas[i++];) {
value += '<li><img style="height: 80px;width: 80px;" src="route/file/download/false/'+ item +'" alt="图片1"></li>';
}
value += '</ul>';
setTimeout(function() {
new Viewer(document.getElementById("viewer"),{
loop:true
});
}, 50);
return value;
}
},
{field: 'institutionName', width: 180, title: '机构名称', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'institutionFoundingTime', width: 180, title: '机构成立时间', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'institutionPrincipal', width: 180, title: '机构负责人', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'institutionContact', width: 250, title: '机构联系方式', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'institutionAddress', width: 350, title: '机构详情地址', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'institutionDesc', width: 180, title: '机构描述', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
]
],
page: true,
parseData: function(data) {
return {
'code': 0,
'msg': '',
'count': data.total,
'data': data.rows
};
}
});
}
// 重载表格
function reloadTable(currentPage) {
table.reload('dataTable', {
url: top.restAjax.path(tableUrl, []),
where: {
keywords: $('#keywords').val(),
startTime: $('#startTime').val(),
endTime: $('#endTime').val()
},
page: {
curr: currentPage
},
height: $win.height() - 90,
});
}
// 初始化日期
function initDate() {
// 日期选择
laydate.render({
elem: '#startTime',
format: 'yyyy-MM-dd'
});
laydate.render({
elem: '#endTime',
format: 'yyyy-MM-dd'
});
}
// 删除
function removeData(ids) {
top.dialog.msg(top.dataMessage.delete, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function (index) {
top.dialog.close(index);
var layIndex;
top.restAjax.delete(top.restAjax.path('api/institution/remove/{ids}', [ids]), {}, null, function (code, data) {
top.dialog.msg(top.dataMessage.deleteSuccess, {time: 1000});
reloadTable();
}, function (code, data) {
top.dialog.msg(data.msg);
}, function () {
layIndex = top.dialog.msg(top.dataMessage.deleting, {icon: 16, time: 0, shade: 0.3});
}, function () {
top.dialog.close(layIndex);
});
}
});
}
initTable();
initDate();
// 事件 - 页面变化
$win.on('resize', function() {
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(function() {
reloadTable();
}, 500);
});
// 事件 - 搜索
$(document).on('click', '#search', function() {
reloadTable(1);
});
// 事件 - 增删改
table.on('toolbar(dataTable)', function(obj) {
var layEvent = obj.event;
var checkStatus = table.checkStatus('dataTable');
var checkDatas = checkStatus.data;
if(layEvent === 'saveEvent') {
layer.open({
type: 2,
title: false,
closeBtn: 0,
area: ['100%', '100%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path('route/traininginstitution/save.html', []),
end: function() {
reloadTable();
}
});
} else if(layEvent === 'updateEvent') {
if(checkDatas.length === 0) {
top.dialog.msg(top.dataMessage.table.selectEdit);
} else if(checkDatas.length > 1) {
top.dialog.msg(top.dataMessage.table.selectOneEdit);
} else {
layer.open({
type: 2,
title: false,
closeBtn: 0,
area: ['100%', '100%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path('route/traininginstitution/update.html?institutionId={institutionId}', [checkDatas[0].institutionId]),
end: function() {
reloadTable();
}
});
}
} else if(layEvent === 'removeEvent') {
if(checkDatas.length === 0) {
top.dialog.msg(top.dataMessage.table.selectDelete);
} else {
var ids = '';
for(var i = 0, item; item = checkDatas[i++];) {
if(i > 1) {
ids += '_';
}
ids += item['institutionId'];
}
removeData(ids);
}
}
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,408 @@
<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
</head>
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-card">
<div class="layui-card-header">
<span class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
<a class="close" href="javascript:void(0);">上级列表</a><span lay-separator="">/</span>
<a href="javascript:void(0);"><cite>新增内容</cite></a>
</span>
</div>
<div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm">
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">机构图片</label>
<div class="layui-input-block">
<input type="hidden" id="institutionImage" name="institutionImage">
<div class="layui-btn-container" id="institutionImageFileBox" style="border: 1px solid #e6e6e6;"></div>
<script id="institutionImageFileDownload" type="text/html">
{{# var fileName = 'institutionImage'; }}
{{# if(d[fileName].length > 0) { }}
{{# var files = d[fileName];}}
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
<div class="upload-image-box">
<span class="upload-image-span">
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
</span>
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="institutionImageRemoveFile">
<i class="fa fa-trash-o"></i>
</a>
</div>
{{# } }}
{{# } }}
{{# if(d[fileName].length < 9) { }}
<div class="upload-image-box" style="width: auto; height: auto; padding: 5px;">
<a href="javascript:void(0);" lay-form-button data-explain="机构图片" data-name="institutionImage" lay-filter="institutionImageUploadFile">
<i class="fa fa-plus-square-o" style="font-size: 70px;"></i>
</a>
</div>
{{# } }}
</script>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">机构名称</label>
<div class="layui-input-block">
<input type="text" id="institutionName" name="institutionName" class="layui-input" value="" placeholder="请输入机构名称" maxlength="255" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">机构成立时间</label>
<div class="layui-input-block">
<input type="text" id="institutionFoundingTime" name="institutionFoundingTime" class="layui-input" value="" placeholder="请选择机构成立时间" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">机构描述</label>
<div class="layui-input-block">
<textarea id="institutionDesc" name="institutionDesc" class="layui-textarea" placeholder="请输入机构描述"></textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">机构负责人</label>
<div class="layui-input-block">
<input type="text" id="institutionPrincipal" name="institutionPrincipal" class="layui-input" value="" placeholder="请输入机构负责人" maxlength="100">
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">机构联系方式</label>
<div class="layui-input-block">
<textarea id="institutionContact" name="institutionContact" class="layui-textarea" placeholder="请输入机构联系方式"></textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">行政区划</label>
<div class="layui-input-inline">
<select name="institutionRegionProvince" id="institutionRegionProvince" lay-filter="institutionRegionProvince">
<option value="">请选择省</option>
</select>
</div>
<div class="layui-input-inline">
<select name="institutionRegionCity" id="institutionRegionCity" lay-filter="institutionRegionCity">
<option value="">请选择市</option>
</select>
</div>
<div class="layui-input-inline">
<select name="institutionRegionArea" id="institutionRegionArea" lay-filter="institutionRegionArea">
<option value="">请选择县</option>
</select>
</div>
<div class="layui-input-inline">
<select name="institutionRegionVillage" id="institutionRegionVillage" lay-filter="institutionRegionVillage">
<option value="">请选择镇</option>
</select>
</div>
<div class="layui-input-inline">
<select name="institutionRegionStreet" id="institutionRegionStreet" lay-filter="institutionRegionStreet">
<option value="">请选择村</option>
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">机构详细地址</label>
<div class="layui-input-block">
<input type="hidden" id="institutionX" name="institutionX" value="" placeholder="请输入机构经度">
<input type="hidden" id="institutionY" name="institutionY" value="" placeholder="请输入机构纬度">
<input type="text" id="institutionAddress" name="institutionAddress" class="layui-input" value="" placeholder="请输入机构地址" maxlength="50">
</div>
</div>
<div class="layui-row">
<div class="layui-col-md12 layui-col-sm12" style="padding: 0 0px;">
<div id="mapContainer" style="width: 100%;height: 350px;"></div>
</div>
</div>
<div class="layui-form-item layui-layout-admin">
<div class="layui-input-block">
<div class="layui-footer" style="left: 0;">
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm">提交新增</button>
<button type="button" class="layui-btn layui-btn-primary close">返回上级</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=oWU9RD4ihDHAafexgI6XOrTK8lDatRju"></script>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
var $ = layui.$;
var form = layui.form;
var laytpl = layui.laytpl;
var laydate = layui.laydate;
var wangEditor = window.wangEditor;
var wangEditorObj = {};
var viewerObj = {};
var dictId = '0';
var institutionType="training"
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
function refreshDownloadTemplet(fileName, file) {
var dataRander = {};
dataRander[fileName] = file;
laytpl(document.getElementById(fileName +'FileDownload').innerHTML).render(dataRander, function(html) {
document.getElementById(fileName +'FileBox').innerHTML = html;
});
}
// 初始化文件列表
function initFileList(fileName, ids, callback) {
var dataForm = {};
dataForm[fileName] = ids;
form.val('dataForm', dataForm);
if(!ids) {
refreshDownloadTemplet(fileName, []);
if(callback) {
callback(fileName, []);
}
return;
}
top.restAjax.get(top.restAjax.path('api/file/list', []), {
ids: ids
}, null, function(code, data) {
refreshDownloadTemplet(fileName, data);
if(callback) {
callback(fileName, data);
}
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化视频
function initVideo(fileName, data) {
for(var i = 0, item; item = data[i++];) {
var player = new ckplayer({
container: '#'+ fileName + i,
variable: 'player',
flashplayer: false,
video: {
file: 'route/file/download/true/'+ item.fileId,
type: 'video/mp4'
}
});
}
}
// 初始化机构图片图片上传
function initInstitutionImageUploadFile() {
var files = $('#institutionImage').val();
initFileList('institutionImage', files, function(fileName) {
var viewer = new Viewer(document.getElementById(fileName +'FileBox'), {navbar: false});
viewerObj[fileName] = viewer;
});
form.on('button(institutionImageUploadFile)', function(obj) {
var name = this.dataset.name;
var explain = this.dataset.explain;
top.dialog.file({
type: 'image',
title: '上传'+ explain,
width: '400px',
height: '420px',
maxFileCount: '1',
onClose: function() {
var uploadFileArray = top.dialog.dialogData.uploadFileArray;
if(typeof(uploadFileArray) != 'undefined' && uploadFileArray.length > 0) {
var files = $('#'+ name).val();
for(var j = 0, file = uploadFileArray[j]; file = uploadFileArray[j++];) {
if(files.length > 0) {
files += ',';
}
files += file.data;
}
initFileList(name, files, function(fileName) {
viewerObj[fileName].update();
});
}
}
});
});
form.on('button(institutionImageRemoveFile)', function(obj) {
var name = this.dataset.name;
var id = this.dataset.id;
var files = $('#'+ name).val().replace(id, '');
files = files.replace(/\,+/g, ',');
if(files.charAt(0) == ',') {
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 1);
}
initFileList(name, files, function(fileName) {
viewerObj[fileName].update();
});
});
}
// 初始化机构成立时间时间戳
function initInstitutionFoundingTimeDateTime() {
laydate.render({
elem: '#institutionFoundingTime',
type: 'date',
trigger: 'click'
});
}
// 初始化内容
function initData() {
initInstitutionImageUploadFile();
initInstitutionFoundingTimeDateTime();
initMap('109.85017859252311', '40.66017700460503');
initDataDict(dictId,'institutionRegionProvince');
}
initData();
// 提交表单
form.on('submit(submitForm)', function(formData) {
formData.field.institutionType = institutionType;
top.dialog.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index);
var loadLayerIndex;
top.restAjax.post(top.restAjax.path('api/institution/save', []), formData.field, null, function(code, data) {
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function(index) {
top.dialog.close(index);
window.location.reload();
},
btn2: function() {
closeBox();
}
});
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
});
return false;
});
$('.close').on('click', function() {
closeBox();
});
//初始化百度地图
function initMap(longitude, latitude) {
map = new BMap.Map("mapContainer", {enableMapClick: false,});
var point = new BMap.Point(longitude, latitude);
map.centerAndZoom(point, 13);
map.disableDoubleClickZoom();
map.addControl(new BMap.NavigationControl());
map.addControl(new BMap.ScaleControl());
map.addControl(new BMap.OverviewMapControl());
map.addControl(new BMap.MapTypeControl());
map.enableScrollWheelZoom();//启用地图滚轮放大缩小
map.enableContinuousZoom();//开启缩放平滑
// 点击获取地址
var geocoder= new BMap.Geocoder();
mapMarkPoint(map, point);
map.addEventListener("click", function(e) {
map.clearOverlays();
$('#institutionX').val(e.point.lng);
$('#institutionY').val(e.point.lat);
point = new BMap.Point(e.point.lng, e.point.lat);
mapMarkPoint(map, point);
geocoder.getLocation(e.point, function(rs) {
$('#institutionAddress').val(rs.address);
});
});
}
//地图标点
function mapMarkPoint(map, point) {
var marker = new BMap.Marker(point);
map.addOverlay(marker);
}
//c初始化数据字典
function initDataDict(dictId,tabId){
if(!dictId){
return;
}
top.restAjax.get(top.restAjax.path("api/area/listbyparentid/{areaParentId}",[dictId]),{},null,function (code,data,args) {
$("#"+tabId).empty();
var html = '';
if ('institutionRegionProvince' === tabId){
html += '<option value="">请选择省</option>';
}
if ('institutionRegionCity' === tabId){
html += '<option value="">请选择市</option>';
}
if ('institutionRegionArea' === tabId){
html += '<option value="">请选择县</option>';
}
if ('institutionRegionVillage' === tabId){
html += '<option value="">请选择镇</option>';
}
if ('institutionRegionStreet' === tabId){
html += '<option value="">请选择村</option>';
}
$.each(data, function (index, item) {
html += '<option value="'+item.areaId+'">'+item.areaName+'</option>';
});
$("#"+tabId).append(html);
form.render('select');
});
}
//省监听事件
form.on('select(institutionRegionProvince)', function(data){
var v = data.value;
initDataDict(v,'institutionRegionCity');
});
//市监听事件
form.on('select(institutionRegionCity)', function(data){
var v = data.value;
initDataDict(v,'institutionRegionArea');
});
//区监听事件
form.on('select(institutionRegionArea)', function(data){
var v = data.value;
initDataDict(v,'institutionRegionVillage');
});
//镇、村监听事件
form.on('select(institutionRegionVillage)', function(data){
var v = data.value;
initDataDict(v,'institutionRegionStreet');
});
// 校验
form.verify({
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,443 @@
<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
</head>
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-card">
<div class="layui-card-header">
<span class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
<a class="close" href="javascript:void(0);">上级列表</a><span lay-separator="">/</span>
<a href="javascript:void(0);"><cite>编辑内容</cite></a>
</span>
</div>
<div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm">
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">机构图片</label>
<div class="layui-input-block">
<input type="hidden" id="institutionImage" name="institutionImage">
<div class="layui-btn-container" id="institutionImageFileBox" style="border: 1px solid #e6e6e6;"></div>
<script id="institutionImageFileDownload" type="text/html">
{{# var fileName = 'institutionImage'; }}
{{# if(d[fileName].length > 0) { }}
{{# var files = d[fileName];}}
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
<div class="upload-image-box">
<span class="upload-image-span">
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
</span>
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="institutionImageRemoveFile">
<i class="fa fa-trash-o"></i>
</a>
</div>
{{# } }}
{{# } }}
{{# if(d[fileName].length < 9) { }}
<div class="upload-image-box" style="width: auto; height: auto; padding: 5px;">
<a href="javascript:void(0);" lay-form-button data-explain="机构图片" data-name="institutionImage" lay-filter="institutionImageUploadFile">
<i class="fa fa-plus-square-o" style="font-size: 70px;"></i>
</a>
</div>
{{# } }}
</script>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">机构名称</label>
<div class="layui-input-block">
<input type="text" id="institutionName" name="institutionName" class="layui-input" value="" placeholder="请输入机构名称" maxlength="255" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">机构成立时间</label>
<div class="layui-input-block">
<input type="text" id="institutionFoundingTime" name="institutionFoundingTime" class="layui-input" value="" placeholder="请选择机构成立时间" readonly style="cursor: pointer;" lay-verify="required">
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">机构描述</label>
<div class="layui-input-block">
<textarea id="institutionDesc" name="institutionDesc" class="layui-textarea" placeholder="请输入机构描述"></textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">机构负责人</label>
<div class="layui-input-block">
<input type="text" id="institutionPrincipal" name="institutionPrincipal" class="layui-input" value="" placeholder="请输入机构负责人" maxlength="100">
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">机构联系方式</label>
<div class="layui-input-block">
<textarea id="institutionContact" name="institutionContact" class="layui-textarea" placeholder="请输入机构联系方式"></textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">行政区划</label>
<div class="layui-input-inline">
<select name="institutionRegionProvince" id="institutionRegionProvince" lay-filter="institutionRegionProvince">
<option value="">请选择省</option>
</select>
</div>
<div class="layui-input-inline">
<select name="institutionRegionCity" id="institutionRegionCity" lay-filter="institutionRegionCity">
<option value="">请选择市</option>
</select>
</div>
<div class="layui-input-inline">
<select name="institutionRegionArea" id="institutionRegionArea" lay-filter="institutionRegionArea">
<option value="">请选择县</option>
</select>
</div>
<div class="layui-input-inline">
<select name="institutionRegionVillage" id="institutionRegionVillage" lay-filter="institutionRegionVillage">
<option value="">请选择镇</option>
</select>
</div>
<div class="layui-input-inline">
<select name="institutionRegionStreet" id="institutionRegionStreet" lay-filter="institutionRegionStreet">
<option value="">请选择村</option>
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">机构详细地址</label>
<div class="layui-input-block">
<input type="hidden" id="institutionX" name="institutionX" value="" placeholder="请输入机构经度">
<input type="hidden" id="institutionY" name="institutionY" value="" placeholder="请输入机构纬度">
<input type="text" id="institutionAddress" name="institutionAddress" class="layui-input" value="" placeholder="请输入机构地址" maxlength="50">
</div>
</div>
<div class="layui-row">
<div class="layui-col-md12 layui-col-sm12" style="padding: 0 0px;">
<div id="mapContainer" style="width: 100%;height: 350px;"></div>
</div>
</div>
<div class="layui-form-item layui-layout-admin">
<div class="layui-input-block">
<div class="layui-footer" style="left: 0;">
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm">提交编辑</button>
<button type="button" class="layui-btn layui-btn-primary close">返回上级</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=oWU9RD4ihDHAafexgI6XOrTK8lDatRju"></script>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
var $ = layui.$;
var form = layui.form;
var laytpl = layui.laytpl;
var laydate = layui.laydate;
var institutionId = top.restAjax.params(window.location.href).institutionId;
var dictId = '0';
var wangEditor = window.wangEditor;
var wangEditorObj = {};
var viewerObj = {};
var institutionType="training"
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
}
function refreshDownloadTemplet(fileName, file) {
var dataRander = {};
dataRander[fileName] = file;
laytpl(document.getElementById(fileName +'FileDownload').innerHTML).render(dataRander, function(html) {
document.getElementById(fileName +'FileBox').innerHTML = html;
});
}
// 初始化文件列表
function initFileList(fileName, ids, callback) {
var dataForm = {};
dataForm[fileName] = ids;
form.val('dataForm', dataForm);
if(!ids) {
refreshDownloadTemplet(fileName, []);
if(callback) {
callback(fileName, []);
}
return;
}
top.restAjax.get(top.restAjax.path('api/file/list', []), {
ids: ids
}, null, function(code, data) {
refreshDownloadTemplet(fileName, data);
if(callback) {
callback(fileName, data);
}
}, function(code, data) {
top.dialog.msg(data.msg);
});
}
// 初始化视频
function initVideo(fileName, data) {
for(var i = 0, item; item = data[i++];) {
var player = new ckplayer({
container: '#'+ fileName + i,
variable: 'player',
flashplayer: false,
video: {
file: 'route/file/download/true/'+ item.fileId,
type: 'video/mp4'
}
});
}
}
// 初始化机构图片图片上传
function initInstitutionImageUploadFile() {
var files = $('#institutionImage').val();
initFileList('institutionImage', files, function(fileName) {
var viewer = new Viewer(document.getElementById(fileName +'FileBox'), {navbar: false});
viewerObj[fileName] = viewer;
});
form.on('button(institutionImageUploadFile)', function(obj) {
var name = this.dataset.name;
var explain = this.dataset.explain;
top.dialog.file({
type: 'image',
title: '上传'+ explain,
width: '400px',
height: '420px',
maxFileCount: '1',
onClose: function() {
var uploadFileArray = top.dialog.dialogData.uploadFileArray;
if(typeof(uploadFileArray) != 'undefined' && uploadFileArray.length > 0) {
var files = $('#'+ name).val();
for(var j = 0, file = uploadFileArray[j]; file = uploadFileArray[j++];) {
if(files.length > 0) {
files += ',';
}
files += file.data;
}
initFileList(name, files, function(fileName) {
viewerObj[fileName].update();
});
}
}
});
});
form.on('button(institutionImageRemoveFile)', function(obj) {
var name = this.dataset.name;
var id = this.dataset.id;
var files = $('#'+ name).val().replace(id, '');
files = files.replace(/\,+/g, ',');
if(files.charAt(0) == ',') {
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 1);
}
initFileList(name, files, function(fileName) {
viewerObj[fileName].update();
});
});
}
// 初始化机构成立时间时间戳
function initInstitutionFoundingTimeDateTime(v) {
laydate.render({
elem: '#institutionFoundingTime',
type: 'date',
value: v,
trigger: 'click'
});
}
// 初始化内容
function initData() {
var loadLayerIndex;
top.restAjax.get(top.restAjax.path('api/institution/get/{institutionId}', [institutionId]), {}, null, function(code, data) {
var dataFormData = {};
for(var i in data) {
dataFormData[i] = data[i] +'';
}
form.val('dataForm', dataFormData);
form.render(null, 'dataForm');
initInstitutionImageUploadFile();
initInstitutionFoundingTimeDateTime(data.institutionFoundingTime);
initMap(data.institutionX,data.institutionY);
initDataDict(dictId,'institutionRegionProvince',data.institutionRegionProvince);
initDataDict(data.institutionRegionProvince,'institutionRegionCity',data.institutionRegionCity);
initDataDict(data.institutionRegionCity,'institutionRegionArea',data.institutionRegionArea);
initDataDict(data.institutionRegionArea,'institutionRegionVillage',data.institutionRegionVillage);
initDataDict(data.institutionRegionVillage,'institutionRegionStreet',data.institutionRegionStreet);
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
}
initData();
// 提交表单
form.on('submit(submitForm)', function(formData) {
formData.field.institutionType = institutionType;
top.dialog.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index);
var loadLayerIndex;
top.restAjax.put(top.restAjax.path('api/institution/update/{institutionId}', [institutionId]), formData.field, null, function(code, data) {
var layerIndex = top.dialog.msg(top.dataMessage.updateSuccess, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function(index) {
top.dialog.close(index);
window.location.reload();
},
btn2: function() {
closeBox();
}
});
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
});
return false;
});
$('.close').on('click', function() {
closeBox();
});
//初始化百度地图
function initMap(longitude, latitude) {
if (longitude == '' || latitude == ''){
longitude = '109.85017859252311';
latitude = '40.66017700460503';
}
map = new BMap.Map("mapContainer", {enableMapClick: false,});
var point = new BMap.Point(longitude, latitude);
map.centerAndZoom(point, 13);
map.disableDoubleClickZoom();
map.addControl(new BMap.NavigationControl());
map.addControl(new BMap.ScaleControl());
map.addControl(new BMap.OverviewMapControl());
map.addControl(new BMap.MapTypeControl());
map.enableScrollWheelZoom();//启用地图滚轮放大缩小
map.enableContinuousZoom();//开启缩放平滑
// 点击获取地址
var geocoder= new BMap.Geocoder();
mapMarkPoint(map, point);
map.addEventListener("click", function(e) {
map.clearOverlays();
$('#institutionX').val(e.point.lng);
$('#institutionY').val(e.point.lat);
point = new BMap.Point(e.point.lng, e.point.lat);
mapMarkPoint(map, point);
geocoder.getLocation(e.point, function(rs) {
$('#institutionAddress').val(rs.address);
});
});
}
//地图标点
function mapMarkPoint(map, point) {
var marker = new BMap.Marker(point);
map.addOverlay(marker);
}
//c初始化数据字典
function initDataDict(dictId,tabId,selectVelue){
if(!dictId){
return;
}
top.restAjax.get(top.restAjax.path("api/area/listbyparentid/{areaParentId}",[dictId]),{},null,function (code,data,args) {
$("#"+tabId).empty();
var html = '';
if ('institutionRegionProvince' === tabId){
html += '<option value="">请选择省</option>';
}
if ('institutionRegionCity' === tabId){
html += '<option value="">请选择市</option>';
}
if ('institutionRegionArea' === tabId){
html += '<option value="">请选择县</option>';
}
if ('institutionRegionVillage' === tabId){
html += '<option value="">请选择镇</option>';
}
if ('institutionRegionStreet' === tabId){
html += '<option value="">请选择村</option>';
}
$.each(data, function (index, item) {
if(selectVelue == item.areaId){
html += '<option selected value="'+item.areaId+'">'+item.areaName+'</option>';
}else{
html += '<option value="'+item.areaId+'">'+item.areaName+'</option>';
}
});
$("#"+tabId).append(html);
form.render('select');
});
}
//省监听事件
form.on('select(institutionRegionProvince)', function(data){
var v = data.value;
initDataDict(v,'institutionRegionCity');
});
//市监听事件
form.on('select(institutionRegionCity)', function(data){
var v = data.value;
initDataDict(v,'institutionRegionArea');
});
//区监听事件
form.on('select(institutionRegionArea)', function(data){
var v = data.value;
initDataDict(v,'institutionRegionVillage');
});
//镇、村监听事件
form.on('select(institutionRegionVillage)', function(data){
var v = data.value;
initDataDict(v,'institutionRegionStreet');
});
// 校验
form.verify({
});
});
</script>
</body>
</html>

View File

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<base href="/worktype/">
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@ -67,6 +67,12 @@
var resizeTimeout = null;
var tableUrl = 'api/worktype/listpage';
var workTypeParentId = top.restAjax.params(window.location.href).workTypeParentId;
// 初始化表格
function initTable() {
table.render({
@ -82,21 +88,20 @@
pageName: 'page',
limitName: 'rows'
},
where: {
workTypeParentId:workTypeParentId
},
cols: [
[
{type:'checkbox', fixed: 'left'},
{field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '<span>{{d.LAY_INDEX}}</span>'},
{field: 'workTypeId', width: 180, title: '工种ID', align:'center',
{field: 'workTypeParentName', width: 180, title: '上级工种', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
var workTypeParentId = row['workTypeParentId']
if(workTypeParentId === '0'){
return '根节点'
}
return rowData;
}
},
{field: 'workTypeParentId', width: 180, title: '工种父级节点', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
@ -130,16 +135,7 @@
}
return rowData;
}
},
{field: 'workTypeWrittenDocument', width: 180, title: '工种承诺书', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
}
]
],
page: true,
@ -156,11 +152,12 @@
// 重载表格
function reloadTable(currentPage) {
table.reload('dataTable', {
url: top.restAjax.path(tableUrl, []),
url: top.restAjax.path(tableUrl, [workTypeParentId]),
where: {
keywords: $('#keywords').val(),
startTime: $('#startTime').val(),
endTime: $('#endTime').val()
endTime: $('#endTime').val(),
workTypeParentId:workTypeParentId
},
page: {
curr: currentPage
@ -228,7 +225,7 @@
area: ['100%', '100%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path('route/worktype/save.html', []),
content: top.restAjax.path('route/worktype/save.html?workTypeParentId={workTypeParentId}', [workTypeParentId]),
end: function() {
reloadTable();
}

View File

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<base href="/worktype/">
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@ -23,21 +23,22 @@
<div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm">
<div class="layui-form-item">
<label class="layui-form-label">工种父级节点</label>
<label class="layui-form-label">上级工种</label>
<div class="layui-input-block">
<input type="text" id="workTypeParentId" name="workTypeParentId" class="layui-input" value="" placeholder="请输入工种父级节点" maxlength="36">
<input type="hidden" id="workTypeParentId" name="workTypeParentId" class="layui-input" value="">
<input type="text" id="workTypeParentName" name="workTypeParentName" class="layui-input" value="" readonly="readonly">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">工种名称</label>
<div class="layui-input-block">
<input type="text" id="workTypeName" name="workTypeName" class="layui-input" value="" placeholder="请输入工种名称" maxlength="100">
<input type="text" id="workTypeName" name="workTypeName" class="layui-input" value="" placeholder="请输入工种名称" maxlength="100" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">工种编码</label>
<div class="layui-input-block">
<input type="text" id="workTypeCode" name="workTypeCode" class="layui-input" value="" placeholder="请输入工种编码" maxlength="100">
<input type="text" id="workTypeCode" name="workTypeCode" class="layui-input" value="" placeholder="请输入工种编码" maxlength="100" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
@ -49,7 +50,7 @@
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">工种承诺书</label>
<div class="layui-input-block">
<textarea id="workTypeWrittenDocument" name="workTypeWrittenDocument" class="layui-textarea" placeholder="请输入工种承诺书"></textarea>
<script id="workTypeWrittenDocument" name="workTypeWrittenDocument" type="text/plain"></script>
</div>
</div>
<div class="layui-form-item layui-layout-admin">
@ -64,6 +65,8 @@
</div>
</div>
</div>
<script src="assets/js/vendor/ueditor/ueditor.config.js"></script>
<script src="assets/js/vendor/ueditor/ueditor.all.js"></script>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
@ -81,6 +84,10 @@
var wangEditor = window.wangEditor;
var wangEditorObj = {};
var viewerObj = {};
var ueEditorObj = {};
var workTypeParentId = top.restAjax.params(window.location.href).workTypeParentId;
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
@ -139,15 +146,47 @@
// 初始化内容
function initData() {
initWorkTypeWrittenDocumentText();
parentName();
}
initData();
//初始化父级节点名称
function parentName(){
var loadLayerIndex;
top.restAjax.get(top.restAjax.path('api/worktype/get/{workTypeId}', [workTypeParentId]), {}, null, function(code, data) {
var dataFormData = {};
dataFormData['workTypeParentId'] = data.workTypeId;
dataFormData['workTypeParentName'] = data.workTypeName;
form.val('dataForm', dataFormData);
form.render(null, 'dataForm');
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
}
// 初始化承诺书富文本
function initWorkTypeWrittenDocumentText() {
var editor = UE.getEditor('workTypeWrittenDocument', {autoHeightEnabled: false});
editor.ready(function() {
editor.setHeight(400);
});
ueEditorObj['workTypeWrittenDocument'] = editor;
}
// 提交表单
form.on('submit(submitForm)', function(formData) {
top.dialog.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index);
var loadLayerIndex;
top.restAjax.post(top.restAjax.path('api/worktype/save', []), formData.field, null, function(code, data) {
parent.parent.common.refreshTree('leftTree');
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],

View File

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<base href="/twoduty/">
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@ -81,7 +81,7 @@
},
callback: {
onClick: function (event, treeId, treeNode) {
indexLibParentId = treeNode.id;
workTypeParentId = treeNode.id;
initIFrame();
return false;
}

View File

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<base href="/worktype/">
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@ -23,21 +23,22 @@
<div class="layui-card-body" style="padding: 15px;">
<form class="layui-form layui-form-pane" lay-filter="dataForm">
<div class="layui-form-item">
<label class="layui-form-label">工种父级节点</label>
<label class="layui-form-label">上级工种</label>
<div class="layui-input-block">
<input type="text" id="workTypeParentId" name="workTypeParentId" class="layui-input" value="" placeholder="请输入工种父级节点" maxlength="36">
<input type="hidden" id="workTypeParentId" name="workTypeParentId" class="layui-input" value="">
<input type="text" id="workTypeParentName" name="workTypeParentName" class="layui-input" value="" readonly="readonly">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">工种名称</label>
<div class="layui-input-block">
<input type="text" id="workTypeName" name="workTypeName" class="layui-input" value="" placeholder="请输入工种名称" maxlength="100">
<input type="text" id="workTypeName" name="workTypeName" class="layui-input" value="" placeholder="请输入工种名称" maxlength="100" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">工种编码</label>
<div class="layui-input-block">
<input type="text" id="workTypeCode" name="workTypeCode" class="layui-input" value="" placeholder="请输入工种编码" maxlength="100">
<input type="text" id="workTypeCode" name="workTypeCode" class="layui-input" value="" placeholder="请输入工种编码" maxlength="100" lay-verify="required">
</div>
</div>
<div class="layui-form-item">
@ -49,7 +50,7 @@
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">工种承诺书</label>
<div class="layui-input-block">
<textarea id="workTypeWrittenDocument" name="workTypeWrittenDocument" class="layui-textarea" placeholder="请输入工种承诺书"></textarea>
<script id="workTypeWrittenDocument" name="workTypeWrittenDocument" type="text/plain"></script>
</div>
</div>
<div class="layui-form-item layui-layout-admin">
@ -64,6 +65,8 @@
</div>
</div>
</div>
<script src="assets/js/vendor/ueditor/ueditor.config.js"></script>
<script src="assets/js/vendor/ueditor/ueditor.all.js"></script>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
@ -83,6 +86,7 @@
var wangEditor = window.wangEditor;
var wangEditorObj = {};
var viewerObj = {};
var ueEditorObj = {};
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
@ -147,6 +151,7 @@
for(var i in data) {
dataFormData[i] = data[i] +'';
}
initWorkTypeWrittenDocumentText();
form.val('dataForm', dataFormData);
form.render(null, 'dataForm');
}, function(code, data) {
@ -158,13 +163,24 @@
});
}
initData();
// 初始化承诺书富文本
function initWorkTypeWrittenDocumentText() {
var editor = UE.getEditor('workTypeWrittenDocument', {autoHeightEnabled: false});
editor.ready(function() {
editor.setHeight(400);
});
ueEditorObj['workTypeWrittenDocument'] = editor;
}
// 提交表单
form.on('submit(submitForm)', function(formData) {
top.dialog.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index);
var loadLayerIndex;
top.restAjax.put(top.restAjax.path('api/worktype/update/{workTypeId}', [workTypeId]), formData.field, null, function(code, data) {
parent.parent.common.refreshTree('leftTree');
var layerIndex = top.dialog.msg(top.dataMessage.updateSuccess, {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],