wanjing 1 год назад
Родитель
Сommit
981cef8313
2 измененных файлов: 3 добавлений и 6 удалений
  1. +3
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/update/status/UpdateInspectionStatusService.java
  2. +0
    -2
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionMapper.xml

+ 3
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/update/status/UpdateInspectionStatusService.java Просмотреть файл

@@ -56,8 +56,7 @@ public class UpdateInspectionStatusService {
*/
public JsonResult updateStatus(MissionStatusRequest missionStatusRequest) {
log.info("进入修改任务状态业务接口, missionStatusRequest:{}", missionStatusRequest);
String tenantId = CurrentUserUtil.getTenantId();
JsonResult result = this.check(tenantId, missionStatusRequest);
JsonResult result = this.check(missionStatusRequest);
if (0 != result.getCode()) {
log.info("修改任务状态业务接口:校验失败:{}", result.getMsg());
return result;
@@ -84,11 +83,11 @@ public class UpdateInspectionStatusService {

/**
* 检查参数
* @param tenantId
*
* @param missionStatusRequest
* @return
*/
private JsonResult check(String tenantId, MissionStatusRequest missionStatusRequest) {
private JsonResult check(MissionStatusRequest missionStatusRequest) {
//查询出对应的巡检任务
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>()
.eq(Inspection::getMark, MarkTypeEnum.VALID.getCode())

+ 0
- 2
tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionMapper.xml Просмотреть файл

@@ -319,8 +319,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
analyse_status = #{analyseStatus,jdbcType=TINYINT},
progressbar = #{progressbar,jdbcType=DOUBLE},
note = #{note,jdbcType=VARCHAR},
create_user = #{createUser,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_user = #{updateUser,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP},
start_longitude = #{startLongitude,jdbcType=VARCHAR},

Загрузка…
Отмена
Сохранить