Commit bbe9dc38 by zhangxingmin

push

parent a1e3b364
......@@ -49,4 +49,6 @@ public interface FnaService extends IService<Fna> {
boolean updateByBizId(Fna fna);
Boolean deleteFna(DeleteFnaRequest deleteRequest);
Fna queryOne(String fnaBizId);
}
package com.yd.csf.service.service.impl;
import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
......@@ -230,4 +231,14 @@ public class FnaServiceImpl extends ServiceImpl<FnaMapper, Fna> implements FnaSe
return result;
}
/**
* 查询单个对象
* @param fnaBizId
* @return
*/
@Override
public Fna queryOne(String fnaBizId) {
return this.getOne(new LambdaQueryWrapper<Fna>().eq(Fna::getFnaBizId,fnaBizId));
}
}
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