Commit 17d2d250 authored by 蔡镇泽's avatar 蔡镇泽

评定报告新增

parent dad0ecce
...@@ -2,15 +2,18 @@ package com.hungraim.ltc.controller; ...@@ -2,15 +2,18 @@ package com.hungraim.ltc.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hungraim.ltc.pojo.entity.eval.ChAprEmp; import com.hungraim.ltc.pojo.entity.eval.ChAprEmp;
import com.hungraim.ltc.pojo.entity.eval.ChAprReport;
import com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO; import com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO;
import com.hungraim.ltc.pojo.vo.assessment.TaskReportVO; import com.hungraim.ltc.pojo.vo.assessment.TaskReportVO;
import com.hungraim.ltc.service.TaskService; import com.hungraim.ltc.service.TaskService;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
...@@ -73,4 +76,14 @@ public class TaskController { ...@@ -73,4 +76,14 @@ public class TaskController {
return Result.success(chAprEmps); return Result.success(chAprEmps);
} }
/**
* 评定报告新增
*/
@RequestMapping("/addReport")
public Result addReport(@RequestBody ChAprReport chAprReport) {
chAprReport.setEffTime(new Date());
taskService.addReport(chAprReport);
return Result.success();
}
} }
package com.hungraim.ltc.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.eval.ChAprReport;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* 失能评定报告Mapper
*
* @author czz
*/
@Mapper
@Repository
public interface AprReportMapper extends BaseMapper<ChAprReport> {
}
...@@ -2,6 +2,7 @@ package com.hungraim.ltc.service; ...@@ -2,6 +2,7 @@ package com.hungraim.ltc.service;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hungraim.ltc.pojo.entity.eval.ChAprEmp; import com.hungraim.ltc.pojo.entity.eval.ChAprEmp;
import com.hungraim.ltc.pojo.entity.eval.ChAprReport;
import com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO; import com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO;
import com.hungraim.ltc.pojo.vo.assessment.TaskReportVO; import com.hungraim.ltc.pojo.vo.assessment.TaskReportVO;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -45,4 +46,6 @@ public interface TaskService { ...@@ -45,4 +46,6 @@ public interface TaskService {
List<TaskReportVO> taskReportList(); List<TaskReportVO> taskReportList();
List<ChAprEmp> aprEmpList(); List<ChAprEmp> aprEmpList();
void addReport(ChAprReport chAprReport);
} }
...@@ -5,8 +5,10 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; ...@@ -5,8 +5,10 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.dao.AprEmpMapper; import com.hungraim.ltc.dao.AprEmpMapper;
import com.hungraim.ltc.dao.AprReportMapper;
import com.hungraim.ltc.dao.TaskMapper; import com.hungraim.ltc.dao.TaskMapper;
import com.hungraim.ltc.pojo.entity.eval.ChAprEmp; import com.hungraim.ltc.pojo.entity.eval.ChAprEmp;
import com.hungraim.ltc.pojo.entity.eval.ChAprReport;
import com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO; import com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO;
import com.hungraim.ltc.pojo.vo.assessment.TaskReportVO; import com.hungraim.ltc.pojo.vo.assessment.TaskReportVO;
import com.hungraim.ltc.service.TaskService; import com.hungraim.ltc.service.TaskService;
...@@ -26,6 +28,8 @@ public class TaskServiceImpl implements TaskService { ...@@ -26,6 +28,8 @@ public class TaskServiceImpl implements TaskService {
private TaskMapper taskMapper; private TaskMapper taskMapper;
@Autowired @Autowired
private AprEmpMapper aprEmpMapper; private AprEmpMapper aprEmpMapper;
@Autowired
private AprReportMapper aprReportMapper;
@Override @Override
public IPage<TaskDistributionVO> taskDistributionList(String organId, String provincial, String city, public IPage<TaskDistributionVO> taskDistributionList(String organId, String provincial, String city,
...@@ -49,4 +53,9 @@ public class TaskServiceImpl implements TaskService { ...@@ -49,4 +53,9 @@ public class TaskServiceImpl implements TaskService {
public List<ChAprEmp> aprEmpList() { public List<ChAprEmp> aprEmpList() {
return aprEmpMapper.selectList(new QueryWrapper<ChAprEmp>().eq("IS_LOCK", 0)); return aprEmpMapper.selectList(new QueryWrapper<ChAprEmp>().eq("IS_LOCK", 0));
} }
@Override
public void addReport(ChAprReport chAprReport) {
aprReportMapper.insert(chAprReport);
}
} }
\ No newline at end of file
package com.hungraim.ltc.pojo.entity.eval;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("CH_APR_REPORT")
@KeySequence(value = "SEQ_CH_APR_REPORT")
public class ChAprReport {
@TableId(value = "REPORT_ID", type = IdType.INPUT)
private Integer reportId;
private Integer checkName;
private Integer evaluateRatingType;
private Integer status;
private java.util.Date endTime;
private String polNo;
private Integer disableLevelId;
private String evaluationRemark;
private Integer defineEmp;
private Integer cfgModeId;
private java.util.Date evaluateTime;
private String remark;
private java.util.Date publicityStartTime;
private java.util.Date evaluationTime;
private java.util.Date publicityEndTime;
private java.util.Date fcd;
private Integer srvModeId;
private java.util.Date lcd;
private Integer simpleIntelligentScore;
private Integer treatmentType;
private String srvModeName;
private Integer endEmp;
private String publicityRemark;
private Integer fcu;
private Integer cfgAprId;
private String evaluateRating;
private Integer evaluationEmp;
private java.util.Date effTime;
private Integer aprTotalScore;
private String checkRemark;
private Integer taskId;
private Integer lcu;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment