parent
f90f8ad477
commit
b1fc846f82
13 changed files with 171 additions and 645 deletions
@ -1,72 +0,0 @@ |
||||
package com.hisense.hiatmp.server_api.controller; |
||||
|
||||
import com.hisense.hiatmp.server_api.mapper.OperatorMapper; |
||||
import com.hisense.hiatmp.server_api.model.OperatorDTO; |
||||
import com.hisense.hiatmp.server_api.service.AuthService; |
||||
import com.hisense.hiatmp.model.common.Operator; |
||||
import com.hisense.hiatmp.model.common.ServerResponse; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.HashMap; |
||||
import java.util.Map; |
||||
|
||||
@Slf4j |
||||
@RestController |
||||
@RequestMapping("/auth") |
||||
public class AuthController { |
||||
|
||||
@Autowired |
||||
private AuthService authService; |
||||
|
||||
@Autowired |
||||
private OperatorMapper operatorMapper; |
||||
|
||||
static Map<Integer, Operator> userMap = new HashMap<>(); |
||||
|
||||
/** |
||||
* 用户登录 |
||||
*/ |
||||
@PostMapping("/login") |
||||
public ServerResponse<?> login(@RequestBody OperatorDTO operator) { |
||||
|
||||
// 判断是否有该用户,取出该用户信息
|
||||
Operator operatorById = operatorMapper.getOperatorById(operator.getCusername()); |
||||
if(operatorById != null){ |
||||
// 密码加密
|
||||
String encrypt = authService.encrypt(operator.getCuserpwd()+ operator.getCusername()); |
||||
if (operatorById.getCusername().equals(operator.getCusername()) && operatorById.getCuserpwd().equals(encrypt)) { |
||||
// String token = JwtUtil.createToken(operatorById);
|
||||
return ServerResponse.ok(operatorById.getNuserid()); |
||||
} |
||||
}else{ |
||||
return ServerResponse.error("用户不存在"); |
||||
} |
||||
return ServerResponse.error("用户名或密码错误"); |
||||
} |
||||
|
||||
/* |
||||
密码修改接口 |
||||
*/ |
||||
@PostMapping("/updatePwd") |
||||
public ServerResponse<?> updatePwd(@RequestParam String cusername,@RequestParam String nuserpwd){ |
||||
// 获取要修改的用户信息
|
||||
Operator operatorById = operatorMapper.getOperatorById(cusername); |
||||
if(operatorById!=null){ |
||||
// 密码加密存储
|
||||
String encrypt = authService.encrypt(nuserpwd + cusername); |
||||
operatorById.setCuserpwd(encrypt); |
||||
|
||||
// 执行修改操作并返回结果,返回修改的,如果为null,表示修改失败
|
||||
String rowsAffected = operatorMapper.updateByPrimaryKeySelective(operatorById.getCusername(), operatorById.getCuserpwd()); |
||||
if(rowsAffected != null){ |
||||
return ServerResponse.ok("<" + operatorById.getCusername() + ">用户密码修改成功"); |
||||
}else{ |
||||
return ServerResponse.error("修改失败"); |
||||
} |
||||
// return ServerResponse.ok("修改成功");
|
||||
} |
||||
return ServerResponse.error("无用户信息"); |
||||
} |
||||
} |
||||
@ -1,381 +0,0 @@ |
||||
package com.hisense.hiatmp.server_api.controller; |
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import com.github.pagehelper.PageInfo; |
||||
import com.hisense.hiatmp.server_api.mapper.HighDangerMapper; |
||||
import com.hisense.hiatmp.server_api.mapper.OperatorMapper; |
||||
import com.hisense.hiatmp.server_api.model.BisRoadVO; |
||||
import com.hisense.hiatmp.server_api.service.HighDangerService; |
||||
import com.hisense.hiatmp.model.common.*; |
||||
import com.hisense.hiatmp.model.dmr.Point; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.transaction.annotation.Transactional; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import org.springframework.web.multipart.MultipartFile; |
||||
|
||||
import java.util.*; |
||||
|
||||
@Slf4j |
||||
@RestController |
||||
@RequestMapping(value = "/highDanger") |
||||
public class HighDangerController { |
||||
|
||||
@Autowired |
||||
OperatorMapper operatorMapper; |
||||
|
||||
@Autowired |
||||
HighDangerMapper highDangerMapper; |
||||
|
||||
@Autowired |
||||
HighDangerService highDangerService; |
||||
|
||||
// 查询各个状态的数据情况
|
||||
@GetMapping("/getHighDangerStatusNum") |
||||
public ServerResponse<?> getHighStatusNum(@RequestParam String cusername){ |
||||
String cdepartmentid = null; |
||||
Operator operatorById = operatorMapper.getOperatorById(cusername); |
||||
if(operatorById != null){ |
||||
cdepartmentid = operatorById.getCdepartmentid(); |
||||
}else{ |
||||
return ServerResponse.error("未找到当前用户"); |
||||
} |
||||
|
||||
List<HighDangerBaseNum> statusCounts = highDangerMapper.getStatusCounts(cdepartmentid); |
||||
|
||||
return ServerResponse.ok(statusCounts); |
||||
} |
||||
|
||||
// 查询各状态列表
|
||||
@PostMapping("/getHigDangerDealt") |
||||
public ServerResponse<?> getHighDealt(@RequestBody HighDangerBaseVO highDangerBaseVO, |
||||
@RequestParam(defaultValue = "1") Integer pageNum, |
||||
@RequestParam(defaultValue = "10") Integer pageSize){ |
||||
String cdepartmentid = null; |
||||
// 获取当前操作的对象,用于查找对应的部门
|
||||
Operator operatorById = operatorMapper.getOperatorById(highDangerBaseVO.getCusername()); |
||||
if(operatorById != null){ |
||||
cdepartmentid = operatorById.getCdepartmentid(); |
||||
}else{ |
||||
return ServerResponse.error("未找到当前用户"); |
||||
} |
||||
|
||||
Page<HighDangerBase> page = new Page<>(pageNum, pageSize); |
||||
|
||||
// 将要查询的状态和部门id查询数据库,获得隐患排查表
|
||||
List<HighDangerBase> statusCounts = highDangerMapper.getHigDangerDealt(highDangerBaseVO.getStatus(),cdepartmentid,page); |
||||
|
||||
for (HighDangerBase base : statusCounts) { |
||||
Date nowDate = new Date(); |
||||
Date pcEndTime = base.getPcEndTime(); |
||||
if(pcEndTime != null){ |
||||
long diff = nowDate.getTime() - pcEndTime.getTime(); |
||||
// 时间差
|
||||
long diffDays = diff / (24 * 60 * 60 * 1000); |
||||
diffDays = Math.abs(diffDays); |
||||
|
||||
int comparison = nowDate.compareTo(pcEndTime); |
||||
if(comparison < 0) { // 超期
|
||||
base.setDeadline(diffDays); |
||||
base.setDeadlineStatus("超期" + diffDays + "天"); |
||||
} else if(comparison > 0 && diffDays <= 3) { // 临期
|
||||
base.setDeadline(diffDays); |
||||
base.setDeadlineStatus("临期" + diffDays + "天"); |
||||
} else { // 正常
|
||||
base.setDeadline(diffDays); |
||||
base.setDeadlineStatus("正常"); |
||||
} |
||||
}else{ |
||||
base.setDeadlineStatus("无排查结束时间"); |
||||
} |
||||
} |
||||
PageInfo<HighDangerBase> pageInfo = new PageInfo<>(statusCounts); |
||||
|
||||
return ServerResponse.ok(pageInfo); |
||||
} |
||||
|
||||
// 查询临期 & 超期任务
|
||||
@PostMapping("/getHigDangerDying") |
||||
public ServerResponse<?> getHighDying(@RequestBody HighDangerBaseVO highDangerBaseVO){ |
||||
String departmentId = null; |
||||
// 查询当前登录用户的部门
|
||||
Operator operatorById = operatorMapper.getOperatorById(highDangerBaseVO.getNuserid()); |
||||
if(operatorById != null){ |
||||
departmentId = operatorById.getCdepartmentid(); |
||||
}else{ |
||||
return ServerResponse.error("未找到当前用户"); |
||||
} |
||||
|
||||
// 查询该部门的指定状态的任务
|
||||
List<HighDangerBase> statusCounts = highDangerMapper.getHigDangerDying(highDangerBaseVO.getStatus(),departmentId); |
||||
if(statusCounts != null){ |
||||
return ServerResponse.ok(statusCounts); |
||||
}else{ |
||||
return ServerResponse.error("未查询到任务"); |
||||
} |
||||
} |
||||
|
||||
|
||||
// 查询指定任务详情任务
|
||||
@GetMapping("/getHigDangerDetail") |
||||
public ServerResponse<?> getHighDetail(@RequestParam String businessId){ |
||||
|
||||
HighDangerBase highDangerBase = highDangerMapper.getHigDangerDetail(businessId); |
||||
|
||||
return ServerResponse.ok(highDangerBase); |
||||
} |
||||
|
||||
/* |
||||
* 模糊查询隐患排查项 |
||||
*/ |
||||
@GetMapping("/getHigDangerSearch") |
||||
public ServerResponse<?> getHighSearch(@RequestParam String search){ |
||||
|
||||
List<HighDangerBase> highDangerBase = highDangerMapper.getHigDangerSearch("%" + search + "%"); |
||||
if(highDangerBase != null){ |
||||
return ServerResponse.ok(highDangerBase); |
||||
}else{ |
||||
return ServerResponse.error("未查询到隐患排查项"); |
||||
} |
||||
|
||||
} |
||||
|
||||
// 获取全部道路
|
||||
@GetMapping("/getAllRoadInfo") |
||||
public ServerResponse<?> getAllRoad(){ |
||||
|
||||
List<BisRoadDTO> allRoadInfo = highDangerMapper.getAllRoadInfo(); |
||||
|
||||
return ServerResponse.ok(allRoadInfo); |
||||
} |
||||
|
||||
// 获取最近道路
|
||||
@PostMapping("/getNearRoadInfo") |
||||
public ServerResponse<?> getNearRoad(@RequestBody Point point){ |
||||
// 获取全部路段数据
|
||||
List<BisRoadDTO> allRoadInfo = highDangerMapper.getAllRoadInfo(); |
||||
HashMap<String, Double> pointMap = new HashMap<>(); |
||||
|
||||
// 遍历所有路段
|
||||
for(BisRoadDTO dto : allRoadInfo){ |
||||
// 临时存储最短距离
|
||||
Double minDistance = null; |
||||
|
||||
// 将单条路段的坐标点依次取出进行对比
|
||||
String[] split = dto.getPosition().split(","); |
||||
for(int i = 0; i < split.length; i += 2){ |
||||
float x = Float.parseFloat(split[i]); |
||||
float y = Float.parseFloat(split[i + 1]); |
||||
Point Dpoint = new Point(); |
||||
Dpoint.setX(x); |
||||
Dpoint.setY(y); |
||||
// 计算两点间的距离
|
||||
Double pointDistance = highDangerService.getPointDistance(Dpoint, point); |
||||
// 最短距离为空,初次存入第一个值
|
||||
if(minDistance == null){ |
||||
minDistance = pointDistance; |
||||
continue; |
||||
}else{ |
||||
if(pointDistance < minDistance){ |
||||
minDistance = pointDistance; |
||||
} |
||||
} |
||||
} |
||||
// 将路段和最短路线
|
||||
pointMap.put(dto.getRoadName(), minDistance); |
||||
minDistance = null; |
||||
} |
||||
// 将路段根据计算的值进行排序
|
||||
Map<String, Double> sortedMap = highDangerService.sortByValue(pointMap); |
||||
if(sortedMap != null){ |
||||
return ServerResponse.ok(sortedMap); |
||||
}else{ |
||||
return ServerResponse.error("未查询到最近道路"); |
||||
} |
||||
// return ServerResponse.ok(sortedMap);
|
||||
} |
||||
|
||||
// 查询当前排查所在路段
|
||||
@GetMapping("/getDangerRoad") |
||||
public ServerResponse<?> getDangerRoad(@RequestParam String businessId){ |
||||
|
||||
List<BisRoadVO> roadInfo = highDangerMapper.getRoadInfo(businessId); |
||||
if(roadInfo != null){ |
||||
return ServerResponse.ok(roadInfo); |
||||
}else { |
||||
return ServerResponse.error("无对应路口信息"); |
||||
} |
||||
|
||||
} |
||||
|
||||
// 查询重点排查选项
|
||||
@GetMapping("/getImportDangers") |
||||
public ServerResponse<?> getImportDangers(){ |
||||
|
||||
List<ImportDangerDTO> importDanger = highDangerMapper.getImportDanger(); |
||||
if(importDanger != null){ |
||||
return ServerResponse.ok(importDanger); |
||||
}else { |
||||
return ServerResponse.error("无对应路口信息"); |
||||
} |
||||
} |
||||
|
||||
// 新增路段
|
||||
@PostMapping("/saveRoad") |
||||
public ServerResponse<?> saveRoad(@RequestBody SectionDTO sectionDTO){ |
||||
|
||||
// 随机生成一个16位的数作为路段id
|
||||
Random random = new Random(); |
||||
long randomNumber = (long) (random.nextDouble() * 9000000000000000L) + 1000000000000000L; |
||||
|
||||
String section = highDangerMapper.saveRoad(String.valueOf(randomNumber), sectionDTO.getSectionName(), sectionDTO.getUpCrossingCode(), sectionDTO.getDownCrossingCode()); |
||||
if(section != null && !section.isEmpty()){ |
||||
return ServerResponse.ok(section); |
||||
}else { |
||||
return ServerResponse.error("新增路段失败"); |
||||
} |
||||
} |
||||
|
||||
// 新增路口
|
||||
@PostMapping("/saveCrossing") |
||||
public ServerResponse<?> saveCrossing(@RequestBody CrossingDTO crossingDTO){ |
||||
|
||||
Random random = new Random(); |
||||
long randomNumber = (long) (random.nextDouble() * 9000000000000000L) + 1000000000000000L; |
||||
String crossing = highDangerMapper.saveCrossing(String.valueOf(randomNumber), crossingDTO.getCrossingName(), crossingDTO.getLongitude(), crossingDTO.getLatitude()); |
||||
if(crossing != null && crossing != ""){ |
||||
return ServerResponse.ok(crossing); |
||||
}else { |
||||
return ServerResponse.error("新增路口失败"); |
||||
} |
||||
} |
||||
|
||||
// 重点排查二级页面信息
|
||||
@GetMapping("/getImportDangerInfo") |
||||
public ServerResponse<?> getImportDangerInfo(@RequestParam String sid){ |
||||
|
||||
List<ImportDangerInfoDTO> importDangerInfo = highDangerMapper.getImportDangerInfo(sid); |
||||
if(importDangerInfo != null){ |
||||
return ServerResponse.ok(importDangerInfo); |
||||
}else { |
||||
return ServerResponse.error("获取二级页面信息失败"); |
||||
} |
||||
} |
||||
|
||||
// 排查审批
|
||||
@PostMapping("/approval") |
||||
public ServerResponse<?> approval(@RequestParam String businessId){ |
||||
|
||||
String approvalId = highDangerMapper.setApproval(businessId); |
||||
if(approvalId != null){ |
||||
return ServerResponse.ok(approvalId); |
||||
}else { |
||||
return ServerResponse.error("审批失败"); |
||||
} |
||||
} |
||||
|
||||
// 获取基础数据(第一页)
|
||||
@GetMapping("/getSectionInfo") |
||||
public ServerResponse<?> getSectionInfo(@RequestParam String businessId){ |
||||
|
||||
ThtSectionInfoDTO sectionInfo = highDangerMapper.getSectionInfo(businessId); |
||||
if(sectionInfo != null){ |
||||
return ServerResponse.ok(sectionInfo); |
||||
}else { |
||||
return ServerResponse.error("无基本信息内容"); |
||||
} |
||||
} |
||||
|
||||
// 获取统计数据(第二页)
|
||||
@GetMapping("/getSectionTraffic") |
||||
public ServerResponse<?> getSectionTraffic(@RequestParam String businessId){ |
||||
|
||||
ThtSectionTrafficDTO sectionTraffic = highDangerMapper.getSectionTraffic(businessId); |
||||
if(sectionTraffic != null){ |
||||
return ServerResponse.ok(sectionTraffic); |
||||
}else { |
||||
return ServerResponse.error("无基本信息内容"); |
||||
} |
||||
} |
||||
|
||||
// 获取存在隐患的存在问题,多级列表
|
||||
@GetMapping("/getDangerItems") |
||||
public ServerResponse<?> getDangerItems(){ |
||||
|
||||
List<ThtDangerItems> thtDangerItems = highDangerService.listWithTree(); |
||||
|
||||
if(thtDangerItems != null){ |
||||
return ServerResponse.ok(thtDangerItems); |
||||
}else { |
||||
return ServerResponse.error("无存在问题数据"); |
||||
} |
||||
} |
||||
|
||||
|
||||
// 保存人工排查
|
||||
@Transactional |
||||
@PostMapping("/saveManualInvestigation") |
||||
public ServerResponse<?> saveManualInvestigation(@RequestBody ManualInvestigation manualInvestigation){ |
||||
|
||||
Date lastModDate = new Date(); |
||||
manualInvestigation.setLastModeDate(lastModDate); |
||||
|
||||
ThtSectionInfoDTO sectionInfo = highDangerMapper.getSectionInfo(manualInvestigation.getBusinessId()); |
||||
if(sectionInfo != null){ |
||||
// 更新基础数据(步骤1)
|
||||
highDangerMapper.updateSectionInfo(manualInvestigation); |
||||
}else{ |
||||
// 保存基础数据(步骤1)
|
||||
highDangerMapper.insertSectionInfo(manualInvestigation); |
||||
} |
||||
|
||||
// 判断数据库是否存在统计数据
|
||||
ThtSectionTrafficDTO sectionTraffic = highDangerMapper.getSectionTraffic(manualInvestigation.getBusinessId()); |
||||
if(sectionTraffic != null){ |
||||
// 更新统计数据(步骤1)
|
||||
highDangerMapper.updateSectionTraffic(manualInvestigation); |
||||
}else{ |
||||
// 保存统计数据(步骤2)
|
||||
highDangerMapper.insertSectionTraffic(manualInvestigation); |
||||
} |
||||
Set<String> keys; |
||||
|
||||
// 保存隐患排查二级页面数据
|
||||
for (Map<String,List<ThtHiddenDataCollectConfig>> map: manualInvestigation.getKeyInvestigation()){ |
||||
keys = map.keySet(); |
||||
for (Map.Entry<String, List<ThtHiddenDataCollectConfig>> entry : map.entrySet()) { |
||||
String key = entry.getKey(); |
||||
List<ThtHiddenDataCollectConfig> value = entry.getValue(); |
||||
// 对key和value进行操作
|
||||
for (ThtHiddenDataCollectConfig config : value) { |
||||
// 保存图片
|
||||
List<MultipartFile> multipartFiles1 = config.getMultipartFiles1(); |
||||
// 图片路径集合(来车方向1)
|
||||
String path1 = highDangerService.saveMultipartFiles(multipartFiles1).toString(); |
||||
|
||||
List<MultipartFile> multipartFiles2 = config.getMultipartFiles1(); |
||||
// 图片路径集合(来车方向2)
|
||||
String path2 = highDangerService.saveMultipartFiles(multipartFiles2).toString(); |
||||
|
||||
config.setPic1Address(path1); |
||||
config.setPic2Address(path2); |
||||
|
||||
// 插入重点排查二级页面数据
|
||||
highDangerMapper.saveHiddenDataCollectConfig(config); |
||||
} |
||||
} |
||||
} |
||||
|
||||
// 保存重点排查数据
|
||||
highDangerMapper.saveDangerExtra(manualInvestigation); |
||||
|
||||
// 暂存数据
|
||||
if(manualInvestigation.getTemporary() == Boolean.FALSE){ |
||||
highDangerMapper.updateTemporary(manualInvestigation.getBusinessId()); |
||||
return ServerResponse.ok("数据已暂存"); |
||||
} |
||||
|
||||
return ServerResponse.ok(manualInvestigation); |
||||
} |
||||
|
||||
} |
||||
@ -1,40 +0,0 @@ |
||||
package com.hisense.hiatmp.server_api.controller; |
||||
|
||||
import com.hisense.hiatmp.server_api.mapper.OperatorMapper; |
||||
import com.hisense.hiatmp.model.common.Operator; |
||||
import com.hisense.hiatmp.model.common.ServerResponse; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.List; |
||||
|
||||
@RestController |
||||
@RequestMapping("/operator") |
||||
public class OperatorController { |
||||
|
||||
@Autowired |
||||
OperatorMapper operatorMapper; |
||||
|
||||
// 查询指定用户
|
||||
@GetMapping("/getOperatorById") |
||||
public ServerResponse<?> getOperatorById(@RequestParam String nusername){ |
||||
Operator operatorById = operatorMapper.getOperatorById(nusername); |
||||
if(operatorById != null){ |
||||
return ServerResponse.ok(operatorById); |
||||
}else{ |
||||
return ServerResponse.error("未查询到用户信息"); |
||||
} |
||||
} |
||||
|
||||
// 查询所有用户
|
||||
@GetMapping("/getAllOperator") |
||||
public ServerResponse<?> getAllOperator(){ |
||||
List<Operator> allOperator = operatorMapper.getAllOperator(); |
||||
if(allOperator != null){ |
||||
return ServerResponse.ok(allOperator); |
||||
}else{ |
||||
return ServerResponse.error("未查询到用户信息"); |
||||
} |
||||
} |
||||
|
||||
} |
||||
@ -1,63 +0,0 @@ |
||||
package com.hisense.hiatmp.server_api.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import com.hisense.hiatmp.server_api.model.BisRoadVO; |
||||
import com.hisense.hiatmp.model.common.*; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
import java.util.List; |
||||
|
||||
@Repository |
||||
public interface HighDangerMapper extends BaseMapper<HighDangerBase>{ |
||||
|
||||
// String getHighDangerStatusNum(@Param("postId") String postId);
|
||||
// 主页获取各类型数据
|
||||
List<HighDangerBaseNum> getStatusCounts(String cdepartmentid); |
||||
|
||||
//
|
||||
List<HighDangerBase> getHigDangerDealt(String status, String cdepartmentid, Page<HighDangerBase> page); |
||||
|
||||
List<HighDangerBase> getHigDangerDying(String status, String cdepartmentid); |
||||
|
||||
HighDangerBase getHigDangerDetail(String businessId); |
||||
|
||||
List<HighDangerBase> getHigDangerSearch(String search); |
||||
|
||||
List<BisRoadDTO> getAllRoadInfo(); |
||||
|
||||
List<BisRoadVO> getRoadInfo(String businessId); |
||||
|
||||
List<ImportDangerDTO> getImportDanger(); |
||||
|
||||
String saveRoad(String sectionCode, String sectionName, String upCrossingCode, String downCrossingCode); |
||||
|
||||
String saveCrossing(String crossingCode, String crossingName,Float longitude, Float latitude); |
||||
|
||||
List<ImportDangerInfoDTO> getImportDangerInfo(String sid); |
||||
|
||||
String setApproval(String businessId); |
||||
|
||||
ThtSectionInfoDTO getSectionInfo(String businessId); |
||||
|
||||
ThtSectionTrafficDTO getSectionTraffic(String businessId); |
||||
|
||||
String insertSectionInfo(ManualInvestigation sectionInfo); |
||||
|
||||
String updateSectionInfo(ManualInvestigation sectionInfo); |
||||
|
||||
String insertSectionTraffic(ManualInvestigation sectionTraffic); |
||||
|
||||
String updateSectionTraffic(ManualInvestigation sectionTraffic); |
||||
|
||||
List<ThtDangerItems> getDangerItems(); |
||||
|
||||
String updateTemporary(String temporary); |
||||
|
||||
String saveHiddenDataCollectConfig(ThtHiddenDataCollectConfig config); |
||||
|
||||
String saveDangerExtra(ManualInvestigation manualInvestigation); |
||||
|
||||
|
||||
|
||||
} |
||||
@ -1,17 +0,0 @@ |
||||
package com.hisense.hiatmp.server_api.mapper; |
||||
|
||||
import com.hisense.hiatmp.model.common.Operator; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
import java.util.List; |
||||
|
||||
@Repository |
||||
public interface OperatorMapper { |
||||
|
||||
List<Operator> getAllOperator(); |
||||
|
||||
Operator getOperatorById(@Param("cusername") String cusername); |
||||
|
||||
String updateByPrimaryKeySelective(@Param("cusername") String cusername,@Param("cuserpwd") String cuserpwd); |
||||
} |
||||
Loading…
Reference in new issue