修复报错问题

This commit is contained in:
wulin 2020-10-13 15:25:45 +08:00
parent 8076ef6ce5
commit de46cfb740
43 changed files with 899 additions and 128 deletions

View File

@ -0,0 +1,33 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 考评组表 服务类
* </p>
*
* @author quyixiao
* @since 2020-10-13
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.EvaluationGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface EvaluationGroupMapper extends BaseMapper<EvaluationGroup> {
EvaluationGroup selectEvaluationGroupById(@Param("id")Long id);
Long insertEvaluationGroup(EvaluationGroup evaluationGroup);
int updateEvaluationGroupById(EvaluationGroup evaluationGroup);
int updateCoverEvaluationGroupById(EvaluationGroup evaluationGroup);
int deleteEvaluationGroupById(@Param("id")Long id);
}

View File

@ -0,0 +1,33 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 发起考核考核组人员对应关系表 服务类
* </p>
*
* @author quyixiao
* @since 2020-10-13
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.EvaluationStartStaff;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface EvaluationStartStaffMapper extends BaseMapper<EvaluationStartStaff> {
EvaluationStartStaff selectEvaluationStartStaffById(@Param("id")Long id);
Long insertEvaluationStartStaff(EvaluationStartStaff evaluationStartStaff);
int updateEvaluationStartStaffById(EvaluationStartStaff evaluationStartStaff);
int updateCoverEvaluationStartStaffById(EvaluationStartStaff evaluationStartStaff);
int deleteEvaluationStartStaffById(@Param("id")Long id);
}

View File

@ -0,0 +1,33 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 流程审批表 服务类
* </p>
*
* @author quyixiao
* @since 2020-10-13
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.FlowApprovalRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface FlowApprovalRoleMapper extends BaseMapper<FlowApprovalRole> {
FlowApprovalRole selectFlowApprovalRoleById(@Param("id")Long id);
Long insertFlowApprovalRole(FlowApprovalRole flowApprovalRole);
int updateFlowApprovalRoleById(FlowApprovalRole flowApprovalRole);
int updateCoverFlowApprovalRoleById(FlowApprovalRole flowApprovalRole);
int deleteFlowApprovalRoleById(@Param("id")Long id);
}

View File

@ -0,0 +1,33 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 变动记录表 服务类
* </p>
*
* @author quyixiao
* @since 2020-10-13
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.FlowChange;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface FlowChangeMapper extends BaseMapper<FlowChange> {
FlowChange selectFlowChangeById(@Param("id")Long id);
Long insertFlowChange(FlowChange flowChange);
int updateFlowChangeById(FlowChange flowChange);
int updateCoverFlowChangeById(FlowChange flowChange);
int deleteFlowChangeById(@Param("id")Long id);
}

View File

@ -0,0 +1,33 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 流程图lz_flow的父 服务类
* </p>
*
* @author quyixiao
* @since 2020-10-13
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.FlowChart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface FlowChartMapper extends BaseMapper<FlowChart> {
FlowChart selectFlowChartById(@Param("id")Long id);
Long insertFlowChart(FlowChart flowChart);
int updateFlowChartById(FlowChart flowChart);
int updateCoverFlowChartById(FlowChart flowChart);
int deleteFlowChartById(@Param("id")Long id);
}

View File

@ -0,0 +1,36 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 流转关系表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.FlowDepartment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface FlowDepartmentMapper extends BaseMapper<FlowDepartment> {
FlowDepartment selectFlowDepartmentById(@Param("id")Long id);
Long insertFlowDepartment(FlowDepartment flowDepartment);
int updateFlowDepartmentById(FlowDepartment flowDepartment);
int updateCoverFlowDepartmentById(FlowDepartment flowDepartment);
int deleteFlowDepartmentById(@Param("id")Long id);
FlowDepartment selectByStaffId(@Param("staffId") Long staffId);
FlowDepartment selectByParentId(@Param("parentId") Long parentId);
}

View File

@ -0,0 +1,39 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 流程管理表 服务类
* </p>
*
* @author quyixiao
* @since 2020-09-22
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lz.modules.flow.entity.FlowManager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
@Mapper
public interface FlowManagerMapper extends BaseMapper<FlowManager> {
FlowManager selectFlowManagerById(@Param("id") Long id);
Long insertFlowManager(FlowManager flowManager);
int updateFlowManagerById(FlowManager flowManager);
int updateCoverFlowManagerById(FlowManager flowManager);
int deleteFlowManagerById(@Param("id") Long id);
List<FlowManager> selectByCondition(@Param("page") IPage page, @Param("params") Map<String, Object> params);
}

View File

@ -0,0 +1,37 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 流转表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.Flow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface FlowMapper extends BaseMapper<Flow> {
Flow selectFlowById(@Param("id")Long id);
Long insertFlow(Flow flow);
int updateFlowById(Flow flow);
int updateCoverFlowById(Flow flow);
int deleteFlowById(@Param("id")Long id);
List<Flow> selectByFlowId(@Param("flowId") Long flowId);
}

View File

@ -0,0 +1,53 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 流转记录表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.FlowRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface FlowRecordMapper extends BaseMapper<FlowRecord> {
FlowRecord selectFlowRecordById(@Param("id")Long id);
Long insertFlowRecord(FlowRecord flowRecord);
int updateFlowRecordById(FlowRecord flowRecord);
int updateCoverFlowRecordById(FlowRecord flowRecord);
int deleteFlowRecordById(@Param("id")Long id);
FlowRecord selectLastFlowRecordByRecordId(@Param("recordId") Long recordId);
FlowRecord selectNotApprovalStaffIdFlowRecords(@Param("recordId") Long recordId);
List<FlowRecord> selectFlowRecordByRecordId(@Param("recordId") Long recordId);
List<FlowRecord> selectFlowRecordByResultRecordIdFlowId(@Param("recordId") Long recordId);
List<FlowRecord> selectFlowRecordByFlowId(@Param("recordId") Long recordId);
FlowRecord selectLastFlowNoStatusRecordByRecordId(@Param("recordId") Long recordId);
List<FlowRecord> selectFlowRecordByResultRecordIdType(@Param("resultRecordId") Long resultRecordId, @Param("type") Integer type);
List<FlowRecord> selectFlowRecordByResultRecordIdTypeStatus(@Param("recordResultId") Long recordResultId, @Param("type") Integer type, @Param("status") int status);
Long copyFlowRecord(FlowRecord flowRecord);
}

View File

@ -0,0 +1,37 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 流转关系表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.FlowRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface FlowRelationMapper extends BaseMapper<FlowRelation> {
FlowRelation selectFlowRelationById(@Param("id")Long id);
Long insertFlowRelation(FlowRelation flowRelation);
int updateFlowRelationById(FlowRelation flowRelation);
int updateCoverFlowRelationById(FlowRelation flowRelation);
int deleteFlowRelationById(@Param("id")Long id);
List<FlowRelation> selectFlowRelationAll();
}

View File

@ -0,0 +1,33 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 发起考核表 服务类
* </p>
*
* @author quyixiao
* @since 2020-10-13
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.FlowStart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface FlowStartMapper extends BaseMapper<FlowStart> {
FlowStart selectFlowStartById(@Param("id")Long id);
Long insertFlowStart(FlowStart flowStart);
int updateFlowStartById(FlowStart flowStart);
int updateCoverFlowStartById(FlowStart flowStart);
int deleteFlowStartById(@Param("id")Long id);
}

View File

@ -0,0 +1,40 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 审批权限表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.RecordAuth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
@Mapper
public interface RecordAuthMapper extends BaseMapper<RecordAuth> {
RecordAuth selectRecordAuthById(@Param("id")Long id);
Long insertRecordAuth(RecordAuth recordAuth);
int updateRecordAuthById(RecordAuth recordAuth);
int updateCoverRecordAuthById(RecordAuth recordAuth);
int deleteRecordAuthById(@Param("id")Long id);
List<RecordAuth> selectAuthInfo(@Param("roleId") Long roleId);
List<RecordAuth> selectAll();
}

View File

@ -0,0 +1,41 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 文件上传表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-25
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lz.modules.flow.entity.RecordFile;
import com.lz.modules.flow.req.ResultDetailReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface RecordFileMapper extends BaseMapper<RecordFile> {
RecordFile selectRecordFileById(@Param("id") Long id);
Long insertRecordFile(RecordFile recordFile);
int updateRecordFileById(RecordFile recordFile);
int updateCoverRecordFileById(RecordFile recordFile);
int deleteRecordFileById(@Param("id") Long id);
List<RecordFile> selectByCondition(@Param("page") IPage page , @Param("req") ResultDetailReq req);
int selectRecordFileCountByRecordId(@Param("recordId") Long recordId);
}

View File

@ -0,0 +1,41 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 权限角色表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.RecordRoleAuth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface RecordRoleAuthMapper extends BaseMapper<RecordRoleAuth> {
RecordRoleAuth selectRecordRoleAuthById(@Param("id")Long id);
Long insertRecordRoleAuth(RecordRoleAuth recordRoleAuth);
int updateRecordRoleAuthById(RecordRoleAuth recordRoleAuth);
int updateCoverRecordRoleAuthById(RecordRoleAuth recordRoleAuth);
int deleteRecordRoleAuthById(@Param("id")Long id);
List<Long> queryMenuIdList(@Param("roleId") Long roleId);
List<RecordRoleAuth> selectByRoleId(@Param("roleId") Long roleId);
void deleteRecordRoleAuth(@Param("id") Long id);
}

View File

@ -0,0 +1,40 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 记录表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lz.modules.flow.entity.RecordRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
@Mapper
public interface RecordRoleMapper extends BaseMapper<RecordRole> {
RecordRole selectRecordRoleById(@Param("id")Long id);
Long insertRecordRole(RecordRole recordRole);
int updateRecordRoleById(RecordRole recordRole);
int updateCoverRecordRoleById(RecordRole recordRole);
int deleteRecordRoleById(@Param("id")Long id);
List<RecordRole> selectByCondition(@Param("page") IPage page, @Param("params") Map<String, Object> params);
List<RecordRole> selectAll();
}

View File

@ -0,0 +1,33 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 考核模板表 服务类
* </p>
*
* @author quyixiao
* @since 2020-10-13
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.ResultModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ResultModelMapper extends BaseMapper<ResultModel> {
ResultModel selectResultModelById(@Param("id")Long id);
Long insertResultModel(ResultModel resultModel);
int updateResultModelById(ResultModel resultModel);
int updateCoverResultModelById(ResultModel resultModel);
int deleteResultModelById(@Param("id")Long id);
}

View File

@ -0,0 +1,33 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 业绩详情评分表 服务类
* </p>
*
* @author quyixiao
* @since 2020-10-13
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.ResultScore;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ResultScoreMapper extends BaseMapper<ResultScore> {
ResultScore selectResultScoreById(@Param("id")Long id);
Long insertResultScore(ResultScore resultScore);
int updateResultScoreById(ResultScore resultScore);
int updateCoverResultScoreById(ResultScore resultScore);
int deleteResultScoreById(@Param("id")Long id);
}

View File

@ -0,0 +1,45 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 流转关系表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.modules.flow.entity.StaffRoleDepartment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface StaffRoleDepartmentMapper extends BaseMapper<StaffRoleDepartment> {
StaffRoleDepartment selectStaffRoleDepartmentById(@Param("id")Long id);
Long insertStaffRoleDepartment(StaffRoleDepartment staffRoleDepartment);
int updateStaffRoleDepartmentById(StaffRoleDepartment staffRoleDepartment);
int updateCoverStaffRoleDepartmentById(StaffRoleDepartment staffRoleDepartment);
int deleteStaffRoleDepartmentById(@Param("id")Long id);
List<StaffRoleDepartment> selectStaffRoleDepartmentByStaffRoleId(@Param("staffRoleId") Long staffRoleId);
StaffRoleDepartment selectStaffRoleDepartmentByDepartmentId(@Param("departmentId") Long departmentId);
StaffRoleDepartment selectStaffRoleDepartmentByDepartmentIdRoleIds(@Param("departmentId") Long departmentId, @Param("ids") List<Long> ids);
void deleteStaffRoleDepartment(@Param("id") Long id);
List<StaffRoleDepartment> selectStaffRoleDepartmentByStaffRoleIdDepartments(@Param("staffRoleId") Long staffRoleId, @Param("departments") List<String> departments);
}

View File

@ -0,0 +1,43 @@
package com.lz.modules.flow.dao;
/**
* <p>
* 流转关系表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lz.modules.flow.entity.StaffRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
@Mapper
public interface StaffRoleMapper extends BaseMapper<StaffRole> {
StaffRole selectStaffRoleById(@Param("id")Long id);
Long insertStaffRole(StaffRole staffRole);
int updateStaffRoleById(StaffRole staffRole);
int updateCoverStaffRoleById(StaffRole staffRole);
int deleteStaffRoleById(@Param("id")Long id);
StaffRole selectByStaffId(@Param("staffId") Long staffId);
List<StaffRole> selectByRole(@Param("departmentLevel") String departmentLevel);
List<StaffRole> selectByCondition(@Param("page") IPage page, @Param("params") Map<String, Object> params);
}

View File

@ -1,5 +1,7 @@
package com.lz.modules.flow.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lz.modules.flow.dao.EvaluationGroupMapper;
import com.lz.modules.flow.entity.EvaluationGroup;
import com.lz.modules.flow.service.EvaluationGroupService;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,5 +1,7 @@
package com.lz.modules.flow.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lz.modules.flow.dao.EvaluationStartStaffMapper;
import com.lz.modules.flow.entity.EvaluationStartStaff;
import com.lz.modules.flow.service.EvaluationStartStaffService;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,5 +1,7 @@
package com.lz.modules.flow.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lz.modules.flow.dao.FlowApprovalRoleMapper;
import com.lz.modules.flow.entity.FlowApprovalRole;
import com.lz.modules.flow.service.FlowApprovalRoleService;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,5 +1,7 @@
package com.lz.modules.flow.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lz.modules.flow.dao.FlowChangeMapper;
import com.lz.modules.flow.entity.FlowChange;
import com.lz.modules.flow.service.FlowChangeService;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,4 +1,12 @@
package com.lz.modules.flow.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lz.modules.flow.dao.FlowChartMapper;
import com.lz.modules.flow.entity.FlowChart;
import com.lz.modules.flow.service.FlowChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* <p>
* 流程图lz_flow的父 服务类

View File

@ -1,5 +1,7 @@
package com.lz.modules.flow.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lz.modules.flow.dao.FlowStartMapper;
import com.lz.modules.flow.entity.FlowStart;
import com.lz.modules.flow.service.FlowStartService;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,5 +1,8 @@
package com.lz.modules.flow.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lz.modules.flow.dao.ResultModelMapper;
import com.lz.modules.flow.entity.ResultModel;
import com.lz.modules.flow.service.ResultModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@ -1,5 +1,7 @@
package com.lz.modules.flow.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lz.modules.flow.dao.ResultScoreMapper;
import com.lz.modules.flow.entity.ResultScore;
import com.lz.modules.flow.service.ResultScoreService;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,7 +1,19 @@
package com.lz.modules.performance;
import com.alibaba.fastjson.JSONObject;
import com.lz.common.utils.PageUtils;
import com.lz.common.utils.R;
import com.lz.common.utils.StringUtil;
import com.lz.modules.flow.entity.EvaluationGroup;
import com.lz.modules.flow.service.EvaluationGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/evaluationGroup")
@ -12,41 +24,33 @@ public class EvaluationGroupController {
private EvaluationGroupService evaluationGroupService;
@RequestMapping("/list")
public R list(@RequestBody String body) {
Map<String,Object> params = new HashMap<>();
if(StringUtil.isNotBlank(body)){
params = JSONObject.parseObject(body,Map.class);
}
PageUtils page = evaluationGroupservice.queryPage(params);
return R.ok().put("page", page);
}
@RequestMapping("/getById")
public R getById(@RequestBody EvaluationGroup evaluationGroup) {
evaluationGroup = evaluationGroupservice.selectEvaluationGroupById(evaluationGroup.getId());
evaluationGroup = evaluationGroupService.selectEvaluationGroupById(evaluationGroup.getId());
return R.ok().put("evaluationGroup",evaluationGroup);
}
@RequestMapping("/update")
public R update(@RequestBody EvaluationGroup evaluationGroup) {
evaluationGroupservice.updateEvaluationGroupById(evaluationGroup);
evaluationGroupService.updateEvaluationGroupById(evaluationGroup);
return R.ok();
}
@RequestMapping("/save")
public R save(@RequestBody EvaluationGroup evaluationGroup) {
evaluationGroupservice.insertEvaluationGroup(evaluationGroup);
evaluationGroupService.insertEvaluationGroup(evaluationGroup);
return R.ok();
}
@RequestMapping("/delete")
public R list(@MultiRequestBody Long id) {
evaluationGroupservice.deleteEvaluationGroupById(id);
public R list(@RequestBody Long id) {
evaluationGroupService.deleteEvaluationGroupById(id);
return R.ok();
}
}

View File

@ -1,7 +1,19 @@
package com.lz.modules.performance;
import com.alibaba.fastjson.JSONObject;
import com.lz.common.utils.PageUtils;
import com.lz.common.utils.R;
import com.lz.common.utils.StringUtil;
import com.lz.modules.flow.entity.EvaluationStartStaff;
import com.lz.modules.flow.service.EvaluationStartStaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/evaluationStartStaff")
@ -12,41 +24,33 @@ public class EvaluationStartStaffController {
private EvaluationStartStaffService evaluationStartStaffService;
@RequestMapping("/list")
public R list(@RequestBody String body) {
Map<String,Object> params = new HashMap<>();
if(StringUtil.isNotBlank(body)){
params = JSONObject.parseObject(body,Map.class);
}
PageUtils page = evaluationStartStaffservice.queryPage(params);
return R.ok().put("page", page);
}
@RequestMapping("/getById")
public R getById(@RequestBody EvaluationStartStaff evaluationStartStaff) {
evaluationStartStaff = evaluationStartStaffservice.selectEvaluationStartStaffById(evaluationStartStaff.getId());
evaluationStartStaff = evaluationStartStaffService.selectEvaluationStartStaffById(evaluationStartStaff.getId());
return R.ok().put("evaluationStartStaff",evaluationStartStaff);
}
@RequestMapping("/update")
public R update(@RequestBody EvaluationStartStaff evaluationStartStaff) {
evaluationStartStaffservice.updateEvaluationStartStaffById(evaluationStartStaff);
evaluationStartStaffService.updateEvaluationStartStaffById(evaluationStartStaff);
return R.ok();
}
@RequestMapping("/save")
public R save(@RequestBody EvaluationStartStaff evaluationStartStaff) {
evaluationStartStaffservice.insertEvaluationStartStaff(evaluationStartStaff);
evaluationStartStaffService.insertEvaluationStartStaff(evaluationStartStaff);
return R.ok();
}
@RequestMapping("/delete")
public R list(@MultiRequestBody Long id) {
evaluationStartStaffservice.deleteEvaluationStartStaffById(id);
public R list(@RequestBody Long id) {
evaluationStartStaffService.deleteEvaluationStartStaffById(id);
return R.ok();
}
}

View File

@ -1,7 +1,19 @@
package com.lz.modules.performance;
import com.alibaba.fastjson.JSONObject;
import com.lz.common.utils.PageUtils;
import com.lz.common.utils.R;
import com.lz.common.utils.StringUtil;
import com.lz.modules.flow.entity.FlowApprovalRole;
import com.lz.modules.flow.service.FlowApprovalRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/flowApprovalRole")
@ -12,41 +24,33 @@ public class FlowApprovalRoleController {
private FlowApprovalRoleService flowApprovalRoleService;
@RequestMapping("/list")
public R list(@RequestBody String body) {
Map<String,Object> params = new HashMap<>();
if(StringUtil.isNotBlank(body)){
params = JSONObject.parseObject(body,Map.class);
}
PageUtils page = flowApprovalRoleservice.queryPage(params);
return R.ok().put("page", page);
}
@RequestMapping("/getById")
public R getById(@RequestBody FlowApprovalRole flowApprovalRole) {
flowApprovalRole = flowApprovalRoleservice.selectFlowApprovalRoleById(flowApprovalRole.getId());
flowApprovalRole = flowApprovalRoleService.selectFlowApprovalRoleById(flowApprovalRole.getId());
return R.ok().put("flowApprovalRole",flowApprovalRole);
}
@RequestMapping("/update")
public R update(@RequestBody FlowApprovalRole flowApprovalRole) {
flowApprovalRoleservice.updateFlowApprovalRoleById(flowApprovalRole);
flowApprovalRoleService.updateFlowApprovalRoleById(flowApprovalRole);
return R.ok();
}
@RequestMapping("/save")
public R save(@RequestBody FlowApprovalRole flowApprovalRole) {
flowApprovalRoleservice.insertFlowApprovalRole(flowApprovalRole);
flowApprovalRoleService.insertFlowApprovalRole(flowApprovalRole);
return R.ok();
}
@RequestMapping("/delete")
public R list(@MultiRequestBody Long id) {
flowApprovalRoleservice.deleteFlowApprovalRoleById(id);
public R list(@RequestBody Long id) {
flowApprovalRoleService.deleteFlowApprovalRoleById(id);
return R.ok();
}
}

View File

@ -1,7 +1,19 @@
package com.lz.modules.performance;
import com.alibaba.fastjson.JSONObject;
import com.lz.common.utils.PageUtils;
import com.lz.common.utils.R;
import com.lz.common.utils.StringUtil;
import com.lz.modules.flow.entity.FlowChange;
import com.lz.modules.flow.service.FlowChangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/flowChange")
@ -12,41 +24,33 @@ public class FlowChangeController {
private FlowChangeService flowChangeService;
@RequestMapping("/list")
public R list(@RequestBody String body) {
Map<String,Object> params = new HashMap<>();
if(StringUtil.isNotBlank(body)){
params = JSONObject.parseObject(body,Map.class);
}
PageUtils page = flowChangeservice.queryPage(params);
return R.ok().put("page", page);
}
@RequestMapping("/getById")
public R getById(@RequestBody FlowChange flowChange) {
flowChange = flowChangeservice.selectFlowChangeById(flowChange.getId());
flowChange = flowChangeService.selectFlowChangeById(flowChange.getId());
return R.ok().put("flowChange",flowChange);
}
@RequestMapping("/update")
public R update(@RequestBody FlowChange flowChange) {
flowChangeservice.updateFlowChangeById(flowChange);
flowChangeService.updateFlowChangeById(flowChange);
return R.ok();
}
@RequestMapping("/save")
public R save(@RequestBody FlowChange flowChange) {
flowChangeservice.insertFlowChange(flowChange);
flowChangeService.insertFlowChange(flowChange);
return R.ok();
}
@RequestMapping("/delete")
public R list(@MultiRequestBody Long id) {
flowChangeservice.deleteFlowChangeById(id);
public R list(@RequestBody Long id) {
flowChangeService.deleteFlowChangeById(id);
return R.ok();
}
}

View File

@ -1,7 +1,19 @@
package com.lz.modules.performance;
import com.alibaba.fastjson.JSONObject;
import com.lz.common.utils.PageUtils;
import com.lz.common.utils.R;
import com.lz.common.utils.StringUtil;
import com.lz.modules.flow.entity.FlowChart;
import com.lz.modules.flow.service.FlowChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/flowChart")
@ -12,41 +24,33 @@ public class FlowChartController {
private FlowChartService flowChartService;
@RequestMapping("/list")
public R list(@RequestBody String body) {
Map<String,Object> params = new HashMap<>();
if(StringUtil.isNotBlank(body)){
params = JSONObject.parseObject(body,Map.class);
}
PageUtils page = flowChartservice.queryPage(params);
return R.ok().put("page", page);
}
@RequestMapping("/getById")
public R getById(@RequestBody FlowChart flowChart) {
flowChart = flowChartservice.selectFlowChartById(flowChart.getId());
flowChart = flowChartService.selectFlowChartById(flowChart.getId());
return R.ok().put("flowChart",flowChart);
}
@RequestMapping("/update")
public R update(@RequestBody FlowChart flowChart) {
flowChartservice.updateFlowChartById(flowChart);
flowChartService.updateFlowChartById(flowChart);
return R.ok();
}
@RequestMapping("/save")
public R save(@RequestBody FlowChart flowChart) {
flowChartservice.insertFlowChart(flowChart);
flowChartService.insertFlowChart(flowChart);
return R.ok();
}
@RequestMapping("/delete")
public R list(@MultiRequestBody Long id) {
flowChartservice.deleteFlowChartById(id);
public R list(@RequestBody Long id) {
flowChartService.deleteFlowChartById(id);
return R.ok();
}
}

View File

@ -1,7 +1,19 @@
package com.lz.modules.performance;
import com.alibaba.fastjson.JSONObject;
import com.lz.common.utils.PageUtils;
import com.lz.common.utils.R;
import com.lz.common.utils.StringUtil;
import com.lz.modules.flow.entity.FlowStart;
import com.lz.modules.flow.service.FlowStartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/flowStart")
@ -12,41 +24,33 @@ public class FlowStartController {
private FlowStartService flowStartService;
@RequestMapping("/list")
public R list(@RequestBody String body) {
Map<String,Object> params = new HashMap<>();
if(StringUtil.isNotBlank(body)){
params = JSONObject.parseObject(body,Map.class);
}
PageUtils page = flowStartservice.queryPage(params);
return R.ok().put("page", page);
}
@RequestMapping("/getById")
public R getById(@RequestBody FlowStart flowStart) {
flowStart = flowStartservice.selectFlowStartById(flowStart.getId());
flowStart = flowStartService.selectFlowStartById(flowStart.getId());
return R.ok().put("flowStart",flowStart);
}
@RequestMapping("/update")
public R update(@RequestBody FlowStart flowStart) {
flowStartservice.updateFlowStartById(flowStart);
flowStartService.updateFlowStartById(flowStart);
return R.ok();
}
@RequestMapping("/save")
public R save(@RequestBody FlowStart flowStart) {
flowStartservice.insertFlowStart(flowStart);
flowStartService.insertFlowStart(flowStart);
return R.ok();
}
@RequestMapping("/delete")
public R list(@MultiRequestBody Long id) {
flowStartservice.deleteFlowStartById(id);
public R list(@RequestBody Long id) {
flowStartService.deleteFlowStartById(id);
return R.ok();
}
}

View File

@ -1,7 +1,19 @@
package com.lz.modules.performance;
import com.alibaba.fastjson.JSONObject;
import com.lz.common.utils.PageUtils;
import com.lz.common.utils.R;
import com.lz.common.utils.StringUtil;
import com.lz.modules.flow.entity.ResultModel;
import com.lz.modules.flow.service.ResultModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/resultModel")
@ -12,41 +24,33 @@ public class ResultModelController {
private ResultModelService resultModelService;
@RequestMapping("/list")
public R list(@RequestBody String body) {
Map<String,Object> params = new HashMap<>();
if(StringUtil.isNotBlank(body)){
params = JSONObject.parseObject(body,Map.class);
}
PageUtils page = resultModelservice.queryPage(params);
return R.ok().put("page", page);
}
@RequestMapping("/getById")
public R getById(@RequestBody ResultModel resultModel) {
resultModel = resultModelservice.selectResultModelById(resultModel.getId());
resultModel = resultModelService.selectResultModelById(resultModel.getId());
return R.ok().put("resultModel",resultModel);
}
@RequestMapping("/update")
public R update(@RequestBody ResultModel resultModel) {
resultModelservice.updateResultModelById(resultModel);
resultModelService.updateResultModelById(resultModel);
return R.ok();
}
@RequestMapping("/save")
public R save(@RequestBody ResultModel resultModel) {
resultModelservice.insertResultModel(resultModel);
resultModelService.insertResultModel(resultModel);
return R.ok();
}
@RequestMapping("/delete")
public R list(@MultiRequestBody Long id) {
resultModelservice.deleteResultModelById(id);
public R list(@RequestBody Long id) {
resultModelService.deleteResultModelById(id);
return R.ok();
}
}

View File

@ -1,7 +1,19 @@
package com.lz.modules.performance;
import com.alibaba.fastjson.JSONObject;
import com.lz.common.utils.PageUtils;
import com.lz.common.utils.R;
import com.lz.common.utils.StringUtil;
import com.lz.modules.flow.entity.ResultScore;
import com.lz.modules.flow.service.ResultScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/resultScore")
@ -12,41 +24,33 @@ public class ResultScoreController {
private ResultScoreService resultScoreService;
@RequestMapping("/list")
public R list(@RequestBody String body) {
Map<String,Object> params = new HashMap<>();
if(StringUtil.isNotBlank(body)){
params = JSONObject.parseObject(body,Map.class);
}
PageUtils page = resultScoreservice.queryPage(params);
return R.ok().put("page", page);
}
@RequestMapping("/getById")
public R getById(@RequestBody ResultScore resultScore) {
resultScore = resultScoreservice.selectResultScoreById(resultScore.getId());
resultScore = resultScoreService.selectResultScoreById(resultScore.getId());
return R.ok().put("resultScore",resultScore);
}
@RequestMapping("/update")
public R update(@RequestBody ResultScore resultScore) {
resultScoreservice.updateResultScoreById(resultScore);
resultScoreService.updateResultScoreById(resultScore);
return R.ok();
}
@RequestMapping("/save")
public R save(@RequestBody ResultScore resultScore) {
resultScoreservice.insertResultScore(resultScore);
resultScoreService.insertResultScore(resultScore);
return R.ok();
}
@RequestMapping("/delete")
public R list(@MultiRequestBody Long id) {
resultScoreservice.deleteResultScoreById(id);
public R list(@RequestBody Long id) {
resultScoreService.deleteResultScoreById(id);
return R.ok();
}
}

View File

@ -1,9 +1,9 @@
<?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="com.sina.mapper.user.EvaluationGroupMapper">
<mapper namespace="com.lz.modules.flow.dao.EvaluationGroupMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.sina.model.entity.user.EvaluationGroup">
<resultMap id="BaseResultMap" type="com.lz.modules.flow.entity.EvaluationGroup">
<id column="id" property="id"/>
<result column="is_delete" property="isDelete"/>
<result column="gmt_create" property="gmtCreate"/>

View File

@ -1,9 +1,9 @@
<?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="com.sina.mapper.user.EvaluationStartStaffMapper">
<mapper namespace="com.lz.modules.flow.dao.EvaluationStartStaffMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.sina.model.entity.user.EvaluationStartStaff">
<resultMap id="BaseResultMap" type="com.lz.modules.flow.entity.EvaluationStartStaff">
<id column="id" property="id"/>
<result column="is_delete" property="isDelete"/>
<result column="gmt_create" property="gmtCreate"/>

View File

@ -1,9 +1,9 @@
<?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="com.sina.mapper.user.FlowApprovalRoleMapper">
<mapper namespace="com.lz.modules.flow.dao.FlowApprovalRoleMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.sina.model.entity.user.FlowApprovalRole">
<resultMap id="BaseResultMap" type="com.lz.modules.flow.entity.FlowApprovalRole">
<id column="id" property="id"/>
<result column="is_delete" property="isDelete"/>
<result column="gmt_create" property="gmtCreate"/>

View File

@ -1,9 +1,9 @@
<?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="com.sina.mapper.user.FlowChangeMapper">
<mapper namespace="com.lz.modules.flow.dao.FlowChangeMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.sina.model.entity.user.FlowChange">
<resultMap id="BaseResultMap" type="com.lz.modules.flow.entity.FlowChange">
<id column="id" property="id"/>
<result column="is_delete" property="isDelete"/>
<result column="gmt_create" property="gmtCreate"/>

View File

@ -1,9 +1,9 @@
<?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="com.sina.mapper.user.FlowChartMapper">
<mapper namespace="com.lz.modules.flow.dao.FlowChartMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.sina.model.entity.user.FlowChart">
<resultMap id="BaseResultMap" type="com.lz.modules.flow.entity.FlowChart">
<id column="id" property="id"/>
<result column="is_delete" property="isDelete"/>
<result column="gmt_create" property="gmtCreate"/>

View File

@ -1,9 +1,9 @@
<?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="com.sina.mapper.user.FlowStartMapper">
<mapper namespace="com.lz.modules.flow.dao.FlowStartMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.sina.model.entity.user.FlowStart">
<resultMap id="BaseResultMap" type="com.lz.modules.flow.entity.FlowStart">
<id column="id" property="id"/>
<result column="is_delete" property="isDelete"/>
<result column="gmt_create" property="gmtCreate"/>

View File

@ -1,9 +1,9 @@
<?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="com.sina.mapper.user.ResultModelMapper">
<mapper namespace="com.lz.modules.flow.dao.ResultModelMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.sina.model.entity.user.ResultModel">
<resultMap id="BaseResultMap" type="com.lz.modules.flow.entity.ResultModel">
<id column="id" property="id"/>
<result column="is_delete" property="isDelete"/>
<result column="gmt_create" property="gmtCreate"/>

View File

@ -1,9 +1,9 @@
<?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="com.sina.mapper.user.ResultScoreMapper">
<mapper namespace="com.lz.modules.flow.dao.ResultScoreMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.sina.model.entity.user.ResultScore">
<resultMap id="BaseResultMap" type="com.lz.modules.flow.entity.ResultScore">
<id column="id" property="id"/>
<result column="is_delete" property="isDelete"/>
<result column="gmt_create" property="gmtCreate"/>