| | |
| | | @ValueClassify("å·¥æ¶ç®¡ç") |
| | | @ApiOperation(value = "导åºåå§å·¥æ¶") |
| | | @GetMapping("/exportOriginalHours") |
| | | public void exportOriginalHours(@RequestBody AuxiliaryOriginalHoursLookDto auxiliaryOriginalHoursLookDto,HttpServletResponse response) throws IOException { |
| | | auxiliaryOriginalHoursService.exportWorkingHours(auxiliaryOriginalHoursLookDto,response); |
| | | public void exportOriginalHours(@RequestParam("month") String month, @RequestParam("name") String name, @RequestParam("departLims") String departLims,HttpServletResponse response) throws IOException { |
| | | auxiliaryOriginalHoursService.exportWorkingHours(month,name,departLims,response); |
| | | } |
| | | } |
| | |
| | | package com.yuanchu.mom.controller; |
| | | |
| | | import com.yuanchu.mom.annotation.ValueClassify; |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.mapper.EvaluateCompetentMapper; |
| | | import com.yuanchu.mom.pojo.EvaluateCompetent; |
| | | import com.yuanchu.mom.pojo.EvaluateLeader; |
| | | import com.yuanchu.mom.service.EvaluateCompetentService; |
| | | import com.yuanchu.mom.service.EvaluateLeaderService; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/evaluateCompetent") |
| | | public class EvaluateCompetentController { |
| | | |
| | | @Resource |
| | | private EvaluateCompetentService evaluateCompetentService; |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value="æ¥è¯¢ä¸»ç®¡æå") |
| | | @PostMapping("/getEvaluateCompetent") |
| | | public Result getEvaluateCompetent(@RequestBody EvaluateGroupDto evaluateGroupDto) { |
| | | return Result.success(evaluateCompetentService.getEvaluateCompetent(evaluateGroupDto)); |
| | | } |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value="å¡«å主管æå") |
| | | @PostMapping("/writeEvaluateCompetent") |
| | | public Result writeEvaluateCompetent(@RequestBody EvaluateCompetent evaluateCompetent) { |
| | | return Result.success(evaluateCompetentService.writeEvaluateCompetent(evaluateCompetent)); |
| | | } |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value = "导åºä¸»ç®¡æå") |
| | | @GetMapping("/exportEvaluateCompetent") |
| | | public void exportEvaluateCompetent(@RequestParam("month") String month, @RequestParam("name") String name, @RequestParam("departLims") String departLims, HttpServletResponse response) throws IOException { |
| | | evaluateCompetentService.export(month, name, departLims, response); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | private EvaluateService evaluateService; |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value="èè¯å页æ¥è¯¢") |
| | | @ApiOperation(value = "æ¥è¯¢èè¯") |
| | | @PostMapping("/page") |
| | | public Result page(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | Evaluate entity = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), Evaluate.class); |
| | | return Result.success(evaluateService.getPage(page,entity)); |
| | | return Result.success(evaluateService.getPage(page, entity)); |
| | | } |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value = "导åºèè¯") |
| | | @GetMapping("/exportEvaluate") |
| | | public void exportEvaluate(@RequestParam("month") String month, @RequestParam("name") String name, @RequestParam("departLims") String departLims, HttpServletResponse response) throws IOException { |
| | | evaluateService.export(month, name, departLims, response); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.yuanchu.mom.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.annotation.ValueClassify; |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.pojo.Evaluate; |
| | | import com.yuanchu.mom.pojo.EvaluateGroup; |
| | | import com.yuanchu.mom.service.EvaluateGroupService; |
| | | import com.yuanchu.mom.utils.JackSonUtil; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/evaluateGroup") |
| | | public class EvaluateGroupController { |
| | | |
| | | |
| | | @Resource |
| | | private EvaluateGroupService evaluateGroupService; |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value="æ¥è¯¢åå·¥äºè¯") |
| | | @PostMapping("/getEvaluateGroup") |
| | | public Result getEvaluateGroup(@RequestBody EvaluateGroupDto evaluateGroupDto) { |
| | | return Result.success(evaluateGroupService.getEvaluateGroup(evaluateGroupDto)); |
| | | } |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value="å¡«ååå·¥äºè¯") |
| | | @PostMapping("/writeEvaluateGroup") |
| | | public Result writeEvaluateGroup(@RequestBody EvaluateGroup evaluateGroup) { |
| | | return Result.success(evaluateGroupService.writeEvaluateGroup(evaluateGroup)); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.yuanchu.mom.controller; |
| | | |
| | | import com.yuanchu.mom.annotation.ValueClassify; |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.pojo.EvaluateGroup; |
| | | import com.yuanchu.mom.pojo.EvaluateLeader; |
| | | import com.yuanchu.mom.service.EvaluateGroupService; |
| | | import com.yuanchu.mom.service.EvaluateLeaderService; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/evaluateLeader") |
| | | public class EvaluateLeaderController { |
| | | |
| | | @Resource |
| | | private EvaluateLeaderService evaluateLeaderService; |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value="æ¥è¯¢ç»é¿è¯å") |
| | | @PostMapping("/getEvaluateLeader") |
| | | public Result getEvaluateLeader(@RequestBody EvaluateGroupDto evaluateGroupDto) { |
| | | return Result.success(evaluateLeaderService.getEvaluateLeader(evaluateGroupDto)); |
| | | } |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value="å¡«åç»é¿è¯å") |
| | | @PostMapping("/writeEvaluateLeader") |
| | | public Result writeEvaluateLeader(@RequestBody EvaluateLeader evaluateLeader) { |
| | | return Result.success(evaluateLeaderService.writeEvaluateLeader(evaluateLeader)); |
| | | } |
| | | |
| | | @ValueClassify("人åèè¯") |
| | | @ApiOperation(value = "导åºç»é¿æå") |
| | | @GetMapping("/exportEvaluateLeader") |
| | | public void exportEvaluateLeader(@RequestParam("month") String month, @RequestParam("name") String name, @RequestParam("departLims") String departLims, HttpServletResponse response) throws IOException { |
| | | evaluateLeaderService.export(month, name, departLims, response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.yuanchu.mom.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | //åå·¥äºè¯æ¥è¯¢æ¡ä»¶ |
| | | public class EvaluateGroupDto { |
| | | |
| | | //æä»½ |
| | | private String month; |
| | | |
| | | //å®éªå®¤ |
| | | private String departLims; |
| | | |
| | | //人ååç§° |
| | | private String name; |
| | | } |
| | |
| | | |
| | | import com.yuanchu.mom.pojo.EvaluateCompetent; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface EvaluateCompetentMapper extends BaseMapper<EvaluateCompetent> { |
| | | |
| | | List<EvaluateCompetent> getEvaluateCompetent(@Param("month") String month, @Param("departLims") String departLims, @Param("name") String name); |
| | | } |
| | |
| | | package com.yuanchu.mom.mapper; |
| | | |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.pojo.EvaluateGroup; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface EvaluateGroupMapper extends BaseMapper<EvaluateGroup> { |
| | | |
| | | |
| | | List<EvaluateGroup> getEvaluateGroup(@Param("month") String month, @Param("departLims") String departLims, @Param("name") String name); |
| | | } |
| | |
| | | |
| | | import com.yuanchu.mom.pojo.EvaluateLeader; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface EvaluateLeaderMapper extends BaseMapper<EvaluateLeader> { |
| | | |
| | | List<EvaluateLeader> getEvaluateLeader(@Param("month") String month, @Param("departLims") String departLims, @Param("name") String name); |
| | | } |
| | |
| | | package com.yuanchu.mom.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.pojo.Evaluate; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface EvaluateMapper extends BaseMapper<Evaluate> { |
| | | |
| | | IPage<Evaluate> getPage(@Param("page") Page page, @Param("ew") QueryWrapper<Evaluate> ew); |
| | | } |
| | |
| | | package com.yuanchu.mom.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnore; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | |
| | | public class Evaluate extends OrderBy implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ExcelIgnore |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("å¤é® å
³èç¨æ·id") |
| | | @ExcelIgnore |
| | | private Integer userId; |
| | | |
| | | @ValueTableShow(value = 1, name = "å·¥å·") |
| | | @TableField(exist = false,select = false) |
| | | @ExcelProperty(value = "å·¥å·") |
| | | private String account; |
| | | |
| | | @ValueTableShow(value = 2, name = "å§å") |
| | | @TableField(exist = false,select = false) |
| | | @ExcelProperty(value = "å§å") |
| | | private String name; |
| | | |
| | | @TableField(exist = false,select = false) |
| | | //å®éªå®¤ |
| | | private String departLims; |
| | | |
| | | @ValueTableShow(value = 3, name = "åå·¥äºè¯") |
| | | @TableField(exist = false,select = false) |
| | | @ExcelProperty(value = "åå·¥äºè¯") |
| | | private Double groupTotal; |
| | | |
| | | @ValueTableShow(value = 4, name = "ç»é¿è¯å") |
| | | @TableField(exist = false,select = false) |
| | | @ExcelProperty(value = "åå·¥äºè¯") |
| | | private Double leaderTotal; |
| | | |
| | | @ValueTableShow(value = 5, name = "主管è¯å") |
| | | @TableField(exist = false,select = false) |
| | | @ExcelProperty(value = "主管è¯å") |
| | | private Double competentTotal; |
| | | |
| | | @ApiModelProperty("èè¯å¾å") |
| | | @ValueTableShow(6) |
| | | @ExcelProperty(value = "èè¯å¾å") |
| | | private Double score; |
| | | |
| | | @ApiModelProperty("èè¯ç级") |
| | | @ValueTableShow(7) |
| | | @ExcelProperty(value = "èè¯ç级") |
| | | private String grade; |
| | | |
| | | @ApiModelProperty("æä»½") |
| | | @ExcelIgnore |
| | | private String month; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @ExcelIgnore |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @ExcelIgnore |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @ExcelIgnore |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @ExcelIgnore |
| | | private Integer updateUser; |
| | | } |
| | |
| | | package com.yuanchu.mom.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnore; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | |
| | | |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ExcelIgnore |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("å¤é® å
³è人åèè¯è¡¨id") |
| | | @ExcelIgnore |
| | | private Integer evaluateId; |
| | | |
| | | @ValueTableShow(value = 1, name = "å§å") |
| | | @TableField(exist = false,select = false) |
| | | @TableField(exist = false, select = false) |
| | | @ExcelProperty(value = "å§å") |
| | | private String name; |
| | | |
| | | @TableField(exist = false,select = false) |
| | | //å®éªå®¤ |
| | | private String departLims; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @ExcelIgnore |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @ExcelIgnore |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @ExcelIgnore |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @ExcelIgnore |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("æè½æ°´å¹³") |
| | | @ValueTableShow(2) |
| | | @ExcelProperty(value = {"æè½æ°´å¹³", "20"}) |
| | | private Double skill; |
| | | |
| | | @ApiModelProperty("æä»åå·¥") |
| | | @ValueTableShow(3) |
| | | @ExcelProperty(value = {"æä»åå·¥", "20"}) |
| | | private Double compliance; |
| | | |
| | | @ApiModelProperty("ç§¯ææ§") |
| | | @ValueTableShow(4) |
| | | @ExcelProperty(value = {"ç§¯ææ§", "20"}) |
| | | private Double positive; |
| | | |
| | | @ApiModelProperty("5S-3å®") |
| | | @ValueTableShow(5) |
| | | @ExcelProperty(value = {"5S-3å®", "10"}) |
| | | private Double tidy; |
| | | |
| | | @ApiModelProperty("è§ç« å¶åº¦") |
| | | @ValueTableShow(6) |
| | | @ExcelProperty(value = {"è§ç« å¶åº¦", "10"}) |
| | | private Double discipline; |
| | | |
| | | @ApiModelProperty("å¢ç»åä½") |
| | | @ValueTableShow(7) |
| | | @ExcelProperty(value = {"å¢ç»åä½", "10"}) |
| | | private Double solidarity; |
| | | |
| | | @ApiModelProperty("ææ¡ç§¯å") |
| | | @ValueTableShow(8) |
| | | @ExcelProperty(value = {"ææ¡ç§¯å", "10"}) |
| | | private Double proposal; |
| | | |
| | | @ApiModelProperty("å¾å") |
| | | @ValueTableShow(9) |
| | | @ExcelProperty(value = {"å¾å", "100"}) |
| | | private Double total; |
| | | } |
| | |
| | | @TableField(exist = false,select = false) |
| | | private String name; |
| | | |
| | | @TableField(exist = false,select = false) |
| | | //å®éªå®¤ |
| | | private String departLims; |
| | | |
| | | @ApiModelProperty("åæ¶æ§") |
| | | @ValueTableShow(2) |
| | | private Double seasonable; |
| | |
| | | package com.yuanchu.mom.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnore; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | |
| | | public class EvaluateLeader extends OrderBy implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ExcelIgnore |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("å¤é® å
³è人åèè¯è¡¨id") |
| | | @ExcelIgnore |
| | | private Integer evaluateId; |
| | | |
| | | @ValueTableShow(value = 1, name = "å§å") |
| | | @TableField(exist = false,select = false) |
| | | @ExcelProperty(value = "å§å") |
| | | private String name; |
| | | |
| | | @TableField(exist = false,select = false) |
| | | //å®éªå®¤ |
| | | private String departLims; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @ExcelIgnore |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @ExcelIgnore |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @ExcelIgnore |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @ExcelIgnore |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("å·¥ä½è´£ä»»å¿") |
| | | @ValueTableShow(2) |
| | | @ExcelProperty(value = {"å·¥ä½è´£ä»»å¿", "25"}) |
| | | private Double responsibility; |
| | | |
| | | @ApiModelProperty("æä»åå·¥") |
| | | @ValueTableShow(3) |
| | | @ExcelProperty(value = {"æä»åå·¥", "25"}) |
| | | private Double compliance; |
| | | |
| | | @ApiModelProperty("ç§¯ææ§") |
| | | @ValueTableShow(4) |
| | | @ExcelProperty(value = {"ç§¯ææ§", "20"}) |
| | | private Double positive; |
| | | |
| | | @ApiModelProperty("å¢ç»åäº") |
| | | @ValueTableShow(5) |
| | | @ExcelProperty(value = {"å¢ç»åäº", "10"}) |
| | | private Double solidarity; |
| | | |
| | | @ApiModelProperty("åæ¶æ§") |
| | | @ValueTableShow(6) |
| | | @ExcelProperty(value = {"è¯éªåæ¶æ§", "10"}) |
| | | private Double seasonable; |
| | | |
| | | @ApiModelProperty("åç¡®æ§") |
| | | @ValueTableShow(7) |
| | | @ExcelProperty(value = {"ç»æåç¡®æ§", "10"}) |
| | | private Double exact; |
| | | |
| | | @ApiModelProperty("å¾å") |
| | | @ValueTableShow(8) |
| | | @ExcelProperty(value = {"å¾å", "100"}) |
| | | private Double total; |
| | | } |
| | |
| | | * |
| | | * @param response |
| | | */ |
| | | void exportWorkingHours(AuxiliaryOriginalHoursLookDto auxiliaryOriginalHoursLookDto, HttpServletResponse response) throws IOException; |
| | | void exportWorkingHours(String month, String name, String departLims,HttpServletResponse response) throws IOException; |
| | | } |
| | |
| | | package com.yuanchu.mom.service; |
| | | |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.pojo.EvaluateCompetent; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface EvaluateCompetentService extends IService<EvaluateCompetent> { |
| | | |
| | | List<EvaluateCompetent> getEvaluateCompetent(EvaluateGroupDto evaluateGroupDto); |
| | | |
| | | Double writeEvaluateCompetent(EvaluateCompetent evaluateCompetent); |
| | | |
| | | void export(String month, String name, String departLims, HttpServletResponse response)throws IOException; |
| | | } |
| | |
| | | package com.yuanchu.mom.service; |
| | | |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.pojo.EvaluateGroup; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface EvaluateGroupService extends IService<EvaluateGroup> { |
| | | |
| | | /** |
| | | * æ¥è¯¢åå·¥äºè¯ |
| | | * @param evaluateGroupDto |
| | | * @return |
| | | */ |
| | | List<EvaluateGroup> getEvaluateGroup(EvaluateGroupDto evaluateGroupDto); |
| | | |
| | | /** |
| | | * å¡«ååå·¥äºè¯ |
| | | * @param evaluateGroup |
| | | * @return |
| | | */ |
| | | Double writeEvaluateGroup(EvaluateGroup evaluateGroup); |
| | | } |
| | |
| | | package com.yuanchu.mom.service; |
| | | |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.pojo.EvaluateLeader; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface EvaluateLeaderService extends IService<EvaluateLeader> { |
| | | |
| | | /** |
| | | * æ¥è¯¢ç»é¿è¯å |
| | | * @param evaluateGroupDto |
| | | * @return |
| | | */ |
| | | List<EvaluateLeader> getEvaluateLeader(EvaluateGroupDto evaluateGroupDto); |
| | | |
| | | Double writeEvaluateLeader(EvaluateLeader evaluateLeader); |
| | | |
| | | void export(String month, String name, String departLims, HttpServletResponse response) throws IOException; |
| | | |
| | | } |
| | |
| | | import com.yuanchu.mom.pojo.Evaluate; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public interface EvaluateService extends IService<Evaluate> { |
| | | |
| | | Map<String,Object> getPage(Page page, Evaluate entity); |
| | | Map<String, Object> getPage(Page page, Evaluate entity); |
| | | |
| | | |
| | | void export(String month, String name, String departLims, HttpServletResponse response) throws IOException; |
| | | } |
| | |
| | | @Override |
| | | public Map<String, Object> selectAuxiliaryOriginalHours(Page page, AuxiliaryOriginalHoursLookDto auxiliaryOriginalHoursLookDto) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | List<Integer> ids = new ArrayList<>(); ; |
| | | List<Integer> ids = new ArrayList<>(); |
| | | ; |
| | | map.put("head", PrintChina.printChina(AuxiliaryCorrectionHoursDto.class)); |
| | | //夿ç»é¿,ç»å,管çåæé |
| | | Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("selectAuxiliaryOriginalHours"); |
| | |
| | | |
| | | //导åºåå§å·¥æ¶ |
| | | @Override |
| | | public void exportWorkingHours(AuxiliaryOriginalHoursLookDto auxiliaryOriginalHoursLookDto, HttpServletResponse response) throws IOException { |
| | | public void exportWorkingHours(String month, String name, String departLims, HttpServletResponse response) throws IOException { |
| | | List<AuxiliaryOriginalHoursDto> auxiliaryOriginalHoursDtos = new ArrayList<AuxiliaryOriginalHoursDto>(); |
| | | |
| | | //æ¥è¯¢åå§å·¥æ¶(使ç¨å页æ¥è¯¢) |
| | | AuxiliaryOriginalHoursLookDto auxiliaryOriginalHoursLookDto = new AuxiliaryOriginalHoursLookDto(); |
| | | if (ObjectUtils.isNotEmpty(month)) { |
| | | auxiliaryOriginalHoursLookDto.setMonth(month); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(name)) { |
| | | auxiliaryOriginalHoursLookDto.setName(name); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(departLims)) { |
| | | auxiliaryOriginalHoursLookDto.setDepartLims(departLims); |
| | | } |
| | | IPage<AuxiliaryOriginalHoursDto> body = (IPage<AuxiliaryOriginalHoursDto>) selectAuxiliaryOriginalHours(new Page(-1, -1), auxiliaryOriginalHoursLookDto).get("body"); |
| | | auxiliaryOriginalHoursDtos=body.getRecords(); |
| | | auxiliaryOriginalHoursDtos = body.getRecords(); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå
³ç³» |
| | |
| | | package com.yuanchu.mom.service.impl; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.mapper.EvaluateLeaderMapper; |
| | | import com.yuanchu.mom.mapper.EvaluateMapper; |
| | | import com.yuanchu.mom.pojo.Evaluate; |
| | | import com.yuanchu.mom.pojo.EvaluateCompetent; |
| | | import com.yuanchu.mom.mapper.EvaluateCompetentMapper; |
| | | import com.yuanchu.mom.pojo.EvaluateGroup; |
| | | import com.yuanchu.mom.service.EvaluateCompetentService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.net.URLEncoder; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class EvaluateCompetentServiceImpl extends ServiceImpl<EvaluateCompetentMapper, EvaluateCompetent> implements EvaluateCompetentService { |
| | | |
| | | @Resource |
| | | EvaluateCompetentMapper evaluateCompetentMapper; |
| | | |
| | | @Resource |
| | | EvaluateMapper evaluateMapper; |
| | | |
| | | @Override |
| | | public List<EvaluateCompetent> getEvaluateCompetent(EvaluateGroupDto evaluateGroupDto) { |
| | | return evaluateCompetentMapper.getEvaluateCompetent(evaluateGroupDto.getMonth(), evaluateGroupDto.getDepartLims(), evaluateGroupDto.getName()); |
| | | } |
| | | |
| | | @Override |
| | | public Double writeEvaluateCompetent(EvaluateCompetent evaluateCompetent) { |
| | | double newTotal = evaluateCompetent.getSkill() + evaluateCompetent.getCompliance() + evaluateCompetent.getPositive() + evaluateCompetent.getTidy() + evaluateCompetent.getDiscipline() + evaluateCompetent.getSolidarity() + evaluateCompetent.getProposal(); |
| | | EvaluateCompetent evaluateCompetent1 = evaluateCompetentMapper.selectById(evaluateCompetent.getId()); |
| | | Evaluate evaluate = evaluateMapper.selectById(evaluateCompetent.getEvaluateId()); |
| | | evaluate.setScore(evaluate.getScore() - evaluateCompetent1.getTotal() + newTotal); |
| | | evaluateMapper.updateById(evaluate); |
| | | evaluateCompetent.setTotal(newTotal); |
| | | evaluateCompetentMapper.updateById(evaluateCompetent); |
| | | return newTotal; |
| | | } |
| | | |
| | | //å¯¼åº |
| | | @Override |
| | | public void export(String month, String name, String departLims, HttpServletResponse response) throws IOException { |
| | | List<EvaluateCompetent> evaluateCompetents = new ArrayList<EvaluateCompetent>(); |
| | | evaluateCompetents = evaluateCompetentMapper.getEvaluateCompetent(month, departLims, name); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå
³ç³» |
| | | String fileName = URLEncoder.encode("主管æå导åº", "UTF-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | try { |
| | | // æ°å»ºExcelWriter |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet mainSheet = EasyExcel.writerSheet(0, "主管æå导åº").head(EvaluateCompetent.class).build(); |
| | | excelWriter.write(evaluateCompetents, mainSheet); |
| | | // å
³éæµ |
| | | excelWriter.finish(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| | |
| | | package com.yuanchu.mom.service.impl; |
| | | |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.mapper.EvaluateCompetentMapper; |
| | | import com.yuanchu.mom.mapper.EvaluateLeaderMapper; |
| | | import com.yuanchu.mom.mapper.EvaluateMapper; |
| | | import com.yuanchu.mom.pojo.Evaluate; |
| | | import com.yuanchu.mom.pojo.EvaluateGroup; |
| | | import com.yuanchu.mom.mapper.EvaluateGroupMapper; |
| | | import com.yuanchu.mom.service.EvaluateGroupService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class EvaluateGroupServiceImpl extends ServiceImpl<EvaluateGroupMapper, EvaluateGroup> implements EvaluateGroupService { |
| | | |
| | | @Resource |
| | | EvaluateGroupMapper evaluateGroupMapper; |
| | | |
| | | @Resource |
| | | EvaluateMapper evaluateMapper; |
| | | |
| | | //æ¥è¯¢åå·¥äºè¯ |
| | | @Override |
| | | public List<EvaluateGroup> getEvaluateGroup(EvaluateGroupDto evaluateGroupDto) { |
| | | return evaluateGroupMapper.getEvaluateGroup(evaluateGroupDto.getMonth(), evaluateGroupDto.getDepartLims(), evaluateGroupDto.getName()); |
| | | } |
| | | |
| | | //å¡«ååå·¥äºè¯ |
| | | @Override |
| | | public Double writeEvaluateGroup(EvaluateGroup evaluateGroup) { |
| | | double newTotal = evaluateGroup.getSeasonable() + evaluateGroup.getExact() + evaluateGroup.getSkill() + evaluateGroup.getPreserve() + evaluateGroup.getDiscipline() + evaluateGroup.getSolidarity() + evaluateGroup.getTidy(); |
| | | EvaluateGroup evaluateGroup1 = evaluateGroupMapper.selectById(evaluateGroup.getId()); |
| | | Evaluate evaluate = evaluateMapper.selectById(evaluateGroup.getEvaluateId()); |
| | | evaluate.setScore(evaluate.getScore() - evaluateGroup1.getTotal() + newTotal); |
| | | evaluateMapper.updateById(evaluate); |
| | | evaluateGroup.setTotal(newTotal); |
| | | evaluateGroupMapper.updateById(evaluateGroup); |
| | | return newTotal; |
| | | } |
| | | } |
| | |
| | | package com.yuanchu.mom.service.impl; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.yuanchu.mom.dto.EvaluateGroupDto; |
| | | import com.yuanchu.mom.mapper.EvaluateGroupMapper; |
| | | import com.yuanchu.mom.mapper.EvaluateMapper; |
| | | import com.yuanchu.mom.pojo.Evaluate; |
| | | import com.yuanchu.mom.pojo.EvaluateCompetent; |
| | | import com.yuanchu.mom.pojo.EvaluateGroup; |
| | | import com.yuanchu.mom.pojo.EvaluateLeader; |
| | | import com.yuanchu.mom.mapper.EvaluateLeaderMapper; |
| | | import com.yuanchu.mom.service.EvaluateLeaderService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.net.URLEncoder; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class EvaluateLeaderServiceImpl extends ServiceImpl<EvaluateLeaderMapper, EvaluateLeader> implements EvaluateLeaderService { |
| | | |
| | | @Resource |
| | | EvaluateLeaderMapper evaluateLeaderMapper; |
| | | |
| | | @Resource |
| | | EvaluateMapper evaluateMapper; |
| | | |
| | | |
| | | @Override |
| | | public List<EvaluateLeader> getEvaluateLeader(EvaluateGroupDto evaluateGroupDto) { |
| | | return evaluateLeaderMapper.getEvaluateLeader(evaluateGroupDto.getMonth(), evaluateGroupDto.getDepartLims(), evaluateGroupDto.getName()); |
| | | } |
| | | |
| | | @Override |
| | | public Double writeEvaluateLeader(EvaluateLeader evaluateLeader) { |
| | | double newTotal = evaluateLeader.getSeasonable() + evaluateLeader.getExact() + evaluateLeader.getResponsibility() + evaluateLeader.getCompliance() + evaluateLeader.getPositive() + evaluateLeader.getSolidarity(); |
| | | EvaluateLeader evaluateLeader1 = evaluateLeaderMapper.selectById(evaluateLeader.getId()); |
| | | Evaluate evaluate = evaluateMapper.selectById(evaluateLeader.getEvaluateId()); |
| | | evaluate.setScore(evaluate.getScore() - evaluateLeader1.getTotal() + newTotal); |
| | | evaluateMapper.updateById(evaluate); |
| | | evaluateLeader.setTotal(newTotal); |
| | | evaluateLeaderMapper.updateById(evaluateLeader); |
| | | return newTotal; |
| | | } |
| | | |
| | | @Override |
| | | public void export(String month, String name, String departLims, HttpServletResponse response) throws IOException { |
| | | List<EvaluateLeader> evaluateLeaders = new ArrayList<EvaluateLeader>(); |
| | | evaluateLeaders = evaluateLeaderMapper.getEvaluateLeader(month, departLims, name); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå
³ç³» |
| | | String fileName = URLEncoder.encode("ç»é¿æå导åº", "UTF-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | try { |
| | | // æ°å»ºExcelWriter |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet mainSheet = EasyExcel.writerSheet(0, "ç»é¿æå导åº").head(EvaluateLeader.class).build(); |
| | | excelWriter.write(evaluateLeaders, mainSheet); |
| | | // å
³éæµ |
| | | excelWriter.finish(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| | |
| | | package com.yuanchu.mom.service.impl; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.common.GetLook; |
| | | import com.yuanchu.mom.common.PrintChina; |
| | | import com.yuanchu.mom.dto.AuxiliaryOriginalHoursDto; |
| | | import com.yuanchu.mom.pojo.Evaluate; |
| | | import com.yuanchu.mom.mapper.EvaluateMapper; |
| | | import com.yuanchu.mom.service.EvaluateService; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.net.URLEncoder; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("head", PrintChina.printChina(Evaluate.class)); |
| | | Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("getPage"); |
| | | if(map1.get("look")==1) evaluate.setCreateUser(map1.get("userId")); |
| | | //map.put("body", evaluateMapper.getPage(page, QueryWrappers.queryWrappers(evaluate))); |
| | | if (map1.get("look") == 1) evaluate.setCreateUser(map1.get("userId")); |
| | | map.put("body", evaluateMapper.getPage(page, QueryWrappers.queryWrappers(evaluate))); |
| | | return map; |
| | | } |
| | | |
| | | //导åºèè¯ |
| | | @Override |
| | | public void export(String month, String name, String departLims, HttpServletResponse response) throws IOException { |
| | | List<Evaluate> evaluates = new ArrayList<Evaluate>(); |
| | | //æ¥è¯¢åå§å·¥æ¶(使ç¨å页æ¥è¯¢) |
| | | Evaluate evaluate = new Evaluate(); |
| | | if (ObjectUtils.isNotEmpty(month)) { |
| | | evaluate.setMonth(month); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(name)) { |
| | | evaluate.setName(name); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(departLims)) { |
| | | evaluate.setDepartLims(departLims); |
| | | } |
| | | IPage<Evaluate> body = (IPage<Evaluate>) getPage(new Page(-1, -1), evaluate).get("body"); |
| | | evaluates = body.getRecords(); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå
³ç³» |
| | | String fileName = URLEncoder.encode("èè¯å¯¼åº", "UTF-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | try { |
| | | // æ°å»ºExcelWriter |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet mainSheet = EasyExcel.writerSheet(0, "èè¯å¯¼åº").head(Evaluate.class).build(); |
| | | excelWriter.write(evaluates, mainSheet); |
| | | // å
³éæµ |
| | | excelWriter.finish(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| | |
| | | <result column="solidarity" property="solidarity" /> |
| | | <result column="proposal" property="proposal" /> |
| | | <result column="total" property="total" /> |
| | | <result column="name" property="name" /> |
| | | <result column="depart_lims" property="departLims" /> |
| | | </resultMap> |
| | | |
| | | <select id="getEvaluateCompetent" resultType="com.yuanchu.mom.pojo.EvaluateCompetent"> |
| | | select ec.*,u.name, |
| | | dl.name depart_lims |
| | | from evaluate_competent ec |
| | | left join evaluate e on ec.evaluate_id = e.id |
| | | left join user u on e.user_id = u.id |
| | | left join department_lims dl on depart_lims_id like dl.id |
| | | where 1=1 |
| | | <if test="month!=null and month!=''"> |
| | | and e.month=#{month} |
| | | </if> |
| | | <if test="departLims!=null and departLims!=''"> |
| | | and dl.name like concat ('%',#{departLims},'%') |
| | | </if> |
| | | <if test="name!=null and name!=''"> |
| | | and u.name like concat ('%',#{name},'%') |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | <?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.yuanchu.mom.mapper.EvaluateGroupMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.EvaluateGroup"> |
| | | <id column="id" property="id" /> |
| | | <result column="evaluate_id" property="evaluateId" /> |
| | | <result column="seasonable" property="seasonable" /> |
| | | <result column="exact" property="exact" /> |
| | | <result column="skill" property="skill" /> |
| | | <result column="preserve" property="preserve" /> |
| | | <result column="discipline" property="discipline" /> |
| | | <result column="solidarity" property="solidarity" /> |
| | | <result column="tidy" property="tidy" /> |
| | | <result column="total" property="total" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <id column="id" property="id"/> |
| | | <result column="name" property="name"/> |
| | | <result column="depart_lims" property="departLims"/> |
| | | <result column="evaluate_id" property="evaluateId"/> |
| | | <result column="seasonable" property="seasonable"/> |
| | | <result column="exact" property="exact"/> |
| | | <result column="skill" property="skill"/> |
| | | <result column="preserve" property="preserve"/> |
| | | <result column="discipline" property="discipline"/> |
| | | <result column="solidarity" property="solidarity"/> |
| | | <result column="tidy" property="tidy"/> |
| | | <result column="total" property="total"/> |
| | | <result column="create_time" property="createTime"/> |
| | | <result column="update_time" property="updateTime"/> |
| | | <result column="create_user" property="createUser"/> |
| | | <result column="update_user" property="updateUser"/> |
| | | </resultMap> |
| | | |
| | | <select id="getEvaluateGroup" resultType="com.yuanchu.mom.pojo.EvaluateGroup"> |
| | | select eg.*,u.name,dl.name depart_lims |
| | | from evaluate_group eg |
| | | left join evaluate e on eg.evaluate_id = e.id |
| | | left join user u on e.user_id = u.id |
| | | left join department_lims dl on depart_lims_id like dl.id |
| | | where 1=1 |
| | | <if test="month!=null and month!=''"> |
| | | and e.month=#{month} |
| | | </if> |
| | | <if test="departLims!=null and departLims!=''"> |
| | | and dl.name like concat ('%',#{departLims},'%') |
| | | </if> |
| | | <if test="name!=null and name!=''"> |
| | | and u.name like concat ('%',#{name},'%') |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | <result column="seasonable" property="seasonable" /> |
| | | <result column="exact" property="exact" /> |
| | | <result column="total" property="total" /> |
| | | <result column="name" property="name" /> |
| | | <result column="depart_lims" property="departLims"/> |
| | | </resultMap> |
| | | |
| | | <select id="getEvaluateLeader" resultType="com.yuanchu.mom.pojo.EvaluateLeader"> |
| | | select el.*,u.name,dl.name depart_lims |
| | | from evaluate_leader el |
| | | left join evaluate e on el.evaluate_id = e.id |
| | | left join user u on e.user_id = u.id |
| | | left join department_lims dl on depart_lims_id like dl.id |
| | | where 1=1 |
| | | <if test="month!=null and month!=''"> |
| | | and e.month=#{month} |
| | | </if> |
| | | <if test="departLims!=null and departLims!=''"> |
| | | and dl.name like concat ('%',#{departLims},'%') |
| | | </if> |
| | | <if test="name!=null and name!=''"> |
| | | and u.name like concat ('%',#{name},'%') |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | <?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.yuanchu.mom.mapper.EvaluateMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.Evaluate"> |
| | | <id column="id" property="id" /> |
| | | <result column="user_id" property="userId" /> |
| | | <result column="score" property="score" /> |
| | | <result column="grade" property="grade" /> |
| | | <result column="month" property="month" /> |
| | | <id column="id" property="id"/> |
| | | <result column="user_id" property="userId"/> |
| | | <result column="account" property="account"/> |
| | | <result column="name" property="name"/> |
| | | <result column="depart_lims" property="departLims"/> |
| | | <result column="score" property="score"/> |
| | | <result column="grade" property="grade"/> |
| | | <result column="month" property="month"/> |
| | | <result column="competentTotal" property="competentTotal"/> |
| | | <result column="groupTotal" property="groupTotal"/> |
| | | <result column="leaderTotal" property="leaderTotal"/> |
| | | </resultMap> |
| | | |
| | | <select id="getPage" resultType="com.yuanchu.mom.pojo.Evaluate"> |
| | | select * from(select e.*, |
| | | account, |
| | | u.name name, |
| | | dl.name depart_lims, |
| | | ec.total competentTotal, |
| | | eg.total groupTotal, |
| | | el.total leaderTotal |
| | | from evaluate e |
| | | left join evaluate_competent ec on e.id = ec.evaluate_id |
| | | left join evaluate_group eg on e.id = eg.evaluate_id |
| | | left join evaluate_leader el on e.id = el.evaluate_id |
| | | left join user u on e.user_id = u.id |
| | | left join department_lims dl on depart_lims_id like dl.id ) A |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | </mapper> |