|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.hnac.hzinfo.inspect.plan.service.impl; |
|
|
|
package com.hnac.hzinfo.inspect.plan.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.hnac.hzinfo.inspect.plan.vo.PlanOfflineVO; |
|
|
|
import com.hnac.hzinfo.inspect.plan.vo.PlanOfflineVO; |
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
@ -123,6 +124,18 @@ public class PlanServiceImpl extends BaseServiceImpl<PlanMapper, PlanEntity> imp |
|
|
|
return re; |
|
|
|
return re; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public boolean checkName(String name) { |
|
|
|
|
|
|
|
LambdaQueryWrapper<PlanEntity> uw = new LambdaQueryWrapper<>(); |
|
|
|
|
|
|
|
uw.eq(PlanEntity::getName,name); |
|
|
|
|
|
|
|
uw.eq(PlanEntity::getIsDeleted,0); |
|
|
|
|
|
|
|
List<PlanEntity> list=this.list(uw); |
|
|
|
|
|
|
|
if(list!=null && !list.isEmpty()){ |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 保存巡检计划 |
|
|
|
* 保存巡检计划 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|