新增ISV修复

This commit is contained in:
tanghc
2019-06-28 15:09:11 +08:00
parent 952d41f143
commit 36133adf62
2 changed files with 5 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import com.gitee.easyopen.doc.annotation.ApiDocMethod;
import com.gitee.easyopen.util.CopyUtil;
import com.gitee.fastmybatis.core.PageInfo;
import com.gitee.fastmybatis.core.query.Query;
import com.gitee.fastmybatis.core.query.Sort;
import com.gitee.fastmybatis.core.util.MapperUtil;
import com.gitee.sop.adminserver.api.IdParam;
import com.gitee.sop.adminserver.api.isv.param.IsvInfoFormAdd;
@@ -82,6 +83,7 @@ public class IsvApi {
})
PageInfo<IsvInfoVO> pageIsv(IsvPageParam param) {
Query query = Query.build(param);
query.orderby("id", Sort.DESC);
PageInfo<IsvInfo> pageInfo = MapperUtil.query(isvInfoMapper, query);
List<IsvInfo> list = pageInfo.getList();
@@ -165,6 +167,7 @@ public class IsvApi {
}
IsvKeysGenVO isvKeysGenVO = this.createIsvKeys();
IsvKeys isvKeys = new IsvKeys();
isvKeys.setAppKey(appKey);
CopyUtil.copyPropertiesIgnoreNull(isvKeysGenVO, isvKeys);
isvKeysMapper.saveIgnoreNull(isvKeys);

View File

@@ -28,6 +28,8 @@ public class IsvInfo {
/** appKey, 数据库字段app_key */
private String appKey;
private String secret = "";
/** 1启用2禁用, 数据库字段status */
private Byte status;