test
wj 1 year ago
parent 006ada7ca6
commit 9fd6e1a41b

@ -1,5 +1,6 @@
package com.glxp.api.dao.thrsys;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.req.thrsys.FilterBasicThirdSysRequest;
import org.apache.ibatis.annotations.Mapper;
@ -8,7 +9,7 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface ThrSystemDao {
public interface ThrSystemDao extends BaseMapper<ThrSystemEntity> {
boolean updateBasicThiSys(ThrSystemEntity thrSystemEntity);

@ -1,8 +1,11 @@
package com.glxp.api.entity.thrsys;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("thr_system")
public class ThrSystemEntity {
private String id;
private String thirdId;
@ -25,8 +28,10 @@ public class ThrSystemEntity {
//业务字段
//本系统授权码
@TableField(exist = false)
private String licenseApikey;
//本系统秘钥
@TableField(exist = false)
private String licenseSecretkey;
}

@ -1,13 +1,14 @@
package com.glxp.api.service.thrsys;
import com.baomidou.mybatisplus.extension.service.IService;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.req.thrsys.FilterBasicThirdSysRequest;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ThrSystemService {
public interface ThrSystemService extends IService<ThrSystemEntity> {
boolean updateBasicThiSys(ThrSystemEntity thrSystemEntity);

@ -1,7 +1,7 @@
package com.glxp.api.service.thrsys.impl;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.dao.auth.AuthLicenseDao;
import com.glxp.api.dao.thrsys.ThrSystemDao;
import com.glxp.api.entity.auth.AuthLicense;
@ -19,7 +19,7 @@ import java.util.List;
@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class ThrSystemServiceImpl implements ThrSystemService {
public class ThrSystemServiceImpl extends ServiceImpl<ThrSystemDao,ThrSystemEntity> implements ThrSystemService {
@Resource
private ThrSystemDao thrSystemDao;
@ -53,7 +53,7 @@ public class ThrSystemServiceImpl implements ThrSystemService {
if (filterBasicThirdSysRequest.getPage() != null) {
int offset = (filterBasicThirdSysRequest.getPage() - 1) * filterBasicThirdSysRequest.getLimit();
PageHelper.offsetPage(offset, filterBasicThirdSysRequest.getLimit());
// PageHelper.offsetPage(offset, filterBasicThirdSysRequest.getLimit());
}
List<ThrSystemEntity> data = thrSystemDao.filterBasicThiSys(filterBasicThirdSysRequest);
//查询本系统的授权码

Loading…
Cancel
Save