应用账户

This commit is contained in:
xiang2lin 2025-05-12 13:44:58 +08:00
parent 97840df6a1
commit 3796a24b94
6 changed files with 666 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package com.hzya.frame.sysnew.application.appAcount.dao;
import com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 应用账户表(sys_application_account: table)表数据库访问层
*
* @author xiang2lin
* @since 2025-05-10 15:52:21
*/
public interface ISysApplicationAccountDao extends IBaseDao<SysApplicationAccountEntity, String> {
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.sysnew.application.appAcount.dao.impl;
import com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity;
import com.hzya.frame.sysnew.application.appAcount.dao.ISysApplicationAccountDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 应用账户表(SysApplicationAccount)表数据库访问层
*
* @author xiang2lin
* @since 2025-05-10 15:52:23
*/
@Repository(value = "SysApplicationAccountDaoImpl")
public class SysApplicationAccountDaoImpl extends MybatisGenericDao<SysApplicationAccountEntity, String> implements ISysApplicationAccountDao{
}

View File

@ -0,0 +1,137 @@
package com.hzya.frame.sysnew.application.appAcount.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 应用账户表(SysApplicationAccount)实体类
*
* @author xiang2lin
* @since 2025-05-10 15:52:24
*/
public class SysApplicationAccountEntity extends BaseEntity {
/**
* 应用id
*/
private String appId;
/** 账户名称 */
private String name;
/** ip地址 */
private String ipAddress;
/** 端口 */
private String port;
/** 数据库名称 */
private String dbName;
/** 用户名 */
private String userName;
/** 密码 */
private String password;
/** 数据库类型 */
private String dbType;
/** 应用key */
private String appKey;
/** 应用密钥 */
private String appSecret;
/** 企业id */
private String corpid;
/** 应用id */
private String agentid;
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public String getPort() {
return port;
}
public void setPort(String port) {
this.port = port;
}
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getDbType() {
return dbType;
}
public void setDbType(String dbType) {
this.dbType = dbType;
}
public String getAppKey() {
return appKey;
}
public void setAppKey(String appKey) {
this.appKey = appKey;
}
public String getAppSecret() {
return appSecret;
}
public void setAppSecret(String appSecret) {
this.appSecret = appSecret;
}
public String getCorpid() {
return corpid;
}
public void setCorpid(String corpid) {
this.corpid = corpid;
}
public String getAgentid() {
return agentid;
}
public void setAgentid(String agentid) {
this.agentid = agentid;
}
}

View File

@ -0,0 +1,333 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.sysnew.application.appAcount.dao.impl.SysApplicationAccountDaoImpl">
<resultMap id="get-SysApplicationAccountEntity-result"
type="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
<result property="sts" column="sts" jdbcType="VARCHAR"/>
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
<result property="appId" column="app_id" jdbcType="VARCHAR"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="ipAddress" column="ip_address" jdbcType="VARCHAR"/>
<result property="port" column="port" jdbcType="VARCHAR"/>
<result property="dbName" column="db_name" jdbcType="VARCHAR"/>
<result property="userName" column="user_name" jdbcType="VARCHAR"/>
<result property="password" column="password" jdbcType="VARCHAR"/>
<result property="dbType" column="db_type" jdbcType="VARCHAR"/>
<result property="appKey" column="app_key" jdbcType="VARCHAR"/>
<result property="appSecret" column="app_secret" jdbcType="VARCHAR"/>
<result property="corpid" column="corpId" jdbcType="VARCHAR"/>
<result property="agentid" column="agentId" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id="SysApplicationAccountEntity_Base_Column_List">
id
,create_user_id
,create_time
,modify_user_id
,modify_time
,sts
,sorts
,appId
,name
,ip_address
,port
,db_name
,user_name
,password
,db_type
,app_key
,app_secret
,corpId
,agentId
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-SysApplicationAccountEntity-result"
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
select
<include refid="SysApplicationAccountEntity_Base_Column_List"/>
from sys_application_account
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id = #{id}</if>
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
<if test="create_time != null">and create_time = #{create_time}</if>
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
<if test="modify_time != null">and modify_time = #{modify_time}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
<if test="sorts != null">and sorts = #{sorts}</if>
<if test="appId != null and appId != ''">and app_id = #{appId}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<if test="ipAddress != null and ipAddress != ''">and ip_address = #{ipAddress}</if>
<if test="port != null and port != ''">and port = #{port}</if>
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
<if test="userName != null and userName != ''">and user_name = #{userName}</if>
<if test="password != null and password != ''">and password = #{password}</if>
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
<if test="appKey != null and appKey != ''">and app_key = #{appKey}</if>
<if test="appSecret != null and appSecret != ''">and app_secret = #{appSecret}</if>
<if test="corpid != null and corpid != ''">and corpId = #{corpid}</if>
<if test="agentid != null and agentid != ''">and agentId = #{agentid}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer"
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
select count(1) from sys_application_account
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id = #{id}</if>
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
<if test="create_time != null">and create_time = #{create_time}</if>
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
<if test="modify_time != null">and modify_time = #{modify_time}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
<if test="sorts != null">and sorts = #{sorts}</if>
<if test="appId != null and appId != ''">and app_id = #{appId}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<if test="ipAddress != null and ipAddress != ''">and ip_address = #{ipAddress}</if>
<if test="port != null and port != ''">and port = #{port}</if>
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
<if test="userName != null and userName != ''">and user_name = #{userName}</if>
<if test="password != null and password != ''">and password = #{password}</if>
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
<if test="appKey != null and appKey != ''">and app_key = #{appKey}</if>
<if test="appSecret != null and appSecret != ''">and app_secret = #{appSecret}</if>
<if test="corpid != null and corpid != ''">and corpId = #{corpid}</if>
<if test="agentid != null and agentid != ''">and agentId = #{agentid}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-SysApplicationAccountEntity-result"
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
select
<include refid="SysApplicationAccountEntity_Base_Column_List"/>
from sys_application_account
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
concat('%',#{create_user_id},'%')
</if>
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
concat('%',#{modify_user_id},'%')
</if>
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
<if test="name != null and name != ''">and name like concat('%',#{name},'%')</if>
<if test="appId != null and appId != ''">and app_id like concat('%',#{appId},'%')</if>
<if test="ipAddress != null and ipAddress != ''">and ip_address like concat('%',#{ipAddress},'%')</if>
<if test="port != null and port != ''">and port like concat('%',#{port},'%')</if>
<if test="dbName != null and dbName != ''">and db_name like concat('%',#{dbName},'%')</if>
<if test="userName != null and userName != ''">and user_name like concat('%',#{userName},'%')</if>
<if test="password != null and password != ''">and password like concat('%',#{password},'%')</if>
<if test="dbType != null and dbType != ''">and db_type like concat('%',#{dbType},'%')</if>
<if test="appKey != null and appKey != ''">and app_key like concat('%',#{appKey},'%')</if>
<if test="appSecret != null and appSecret != ''">and app_secret like concat('%',#{appSecret},'%')</if>
<if test="corpid != null and corpid != ''">and corpId like concat('%',#{corpid},'%')</if>
<if test="agentid != null and agentid != ''">and agentId like concat('%',#{agentid},'%')</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="SysApplicationAccountentity_list_or" resultMap="get-SysApplicationAccountEntity-result"
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
select
<include refid="SysApplicationAccountEntity_Base_Column_List"/>
from sys_application_account
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">or id = #{id}</if>
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
<if test="create_time != null">or create_time = #{create_time}</if>
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
<if test="modify_time != null">or modify_time = #{modify_time}</if>
<if test="sts != null and sts != ''">or sts = #{sts}</if>
<if test="sorts != null">or sorts = #{sorts}</if>
<if test="name != null and name != ''">or name = #{name}</if>
<if test="ipAddress != null and ipAddress != ''">or ip_address = #{ipAddress}</if>
<if test="port != null and port != ''">or port = #{port}</if>
<if test="dbName != null and dbName != ''">or db_name = #{dbName}</if>
<if test="userName != null and userName != ''">or user_name = #{userName}</if>
<if test="password != null and password != ''">or password = #{password}</if>
<if test="dbType != null and dbType != ''">or db_type = #{dbType}</if>
<if test="appKey != null and appKey != ''">or app_key = #{appKey}</if>
<if test="appSecret != null and appSecret != ''">or app_secret = #{appSecret}</if>
<if test="corpid != null and corpid != ''">or corpId = #{corpid}</if>
<if test="agentid != null and agentid != ''">or agentId = #{agentid}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert"
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity"
keyProperty="id" useGeneratedKeys="true">
insert into sys_application_account(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''">id ,</if>
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
<if test="create_time != null">create_time ,</if>
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
<if test="modify_time != null">modify_time ,</if>
<if test="sts != null and sts != ''">sts ,</if>
<if test="sorts != null">sorts ,</if>
<if test="name != null and name != ''">name ,</if>
<if test="ipAddress != null and ipAddress != ''">ip_address ,</if>
<if test="port != null and port != ''">port ,</if>
<if test="dbName != null and dbName != ''">db_name ,</if>
<if test="userName != null and userName != ''">user_name ,</if>
<if test="password != null and password != ''">password ,</if>
<if test="dbType != null and dbType != ''">db_type ,</if>
<if test="appKey != null and appKey != ''">app_key ,</if>
<if test="appSecret != null and appSecret != ''">app_secret ,</if>
<if test="corpid != null and corpid != ''">corpId ,</if>
<if test="agentid != null and agentid != ''">agentId ,</if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''">#{id} ,</if>
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
<if test="create_time != null">#{create_time} ,</if>
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
<if test="modify_time != null">#{modify_time} ,</if>
<if test="sts != null and sts != ''">#{sts} ,</if>
<if test="sorts != null">#{sorts} ,</if>
<if test="name != null and name != ''">#{name} ,</if>
<if test="ipAddress != null and ipAddress != ''">#{ipAddress} ,</if>
<if test="port != null and port != ''">#{port} ,</if>
<if test="dbName != null and dbName != ''">#{dbName} ,</if>
<if test="userName != null and userName != ''">#{userName} ,</if>
<if test="password != null and password != ''">#{password} ,</if>
<if test="dbType != null and dbType != ''">#{dbType} ,</if>
<if test="appKey != null and appKey != ''">#{appKey} ,</if>
<if test="appSecret != null and appSecret != ''">#{appSecret} ,</if>
<if test="corpid != null and corpid != ''">#{corpid} ,</if>
<if test="agentid != null and agentid != ''">#{agentid} ,</if>
<if test="sorts == null ">COALESCE((select (max(IFNULL( a.sorts, 0 )) + 1) as sort from sys_application_account a
WHERE a.sts = 'Y' )1),
</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into sys_application_account(create_user_id, create_time, modify_user_id, modify_time, sts, sorts, name,
ip_address, port, db_name, user_name, password, db_type, app_key, app_secret, corpId, agentId, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.sorts},#{entity.name},#{entity.ipAddress},#{entity.port},#{entity.dbName},#{entity.userName},#{entity.password},#{entity.dbType},#{entity.appKey},#{entity.appSecret},#{entity.corpid},#{entity.agentid},
'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into sys_application_account(create_user_id, create_time, modify_user_id, modify_time, sts, sorts, name,
ip_address, port, db_name, user_name, password, db_type, app_key, app_secret, corpId, agentId)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.sorts},#{entity.name},#{entity.ipAddress},#{entity.port},#{entity.dbName},#{entity.userName},#{entity.password},#{entity.dbType},#{entity.appKey},#{entity.appSecret},#{entity.corpid},#{entity.agentid})
</foreach>
on duplicate key update
create_user_id = values(create_user_id),
create_time = values(create_time),
modify_user_id = values(modify_user_id),
modify_time = values(modify_time),
sts = values(sts),
sorts = values(sorts),
name = values(name),
ip_address = values(ip_address),
port = values(port),
db_name = values(db_name),
user_name = values(user_name),
password = values(password),
db_type = values(db_type),
app_key = values(app_key),
app_secret = values(app_secret),
corpId = values(corpId),
agentId = values(agentId)
</insert>
<!--通过主键修改方法-->
<update id="entity_update"
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
update sys_application_account set
<trim suffix="" suffixOverrides=",">
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
<if test="create_time != null">create_time = #{create_time},</if>
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
<if test="modify_time != null">modify_time = #{modify_time},</if>
<if test="sts != null and sts != ''">sts = #{sts},</if>
<if test="sorts != null">sorts = #{sorts},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="ipAddress != null and ipAddress != ''">ip_address = #{ipAddress},</if>
<if test="port != null and port != ''">port = #{port},</if>
<if test="dbName != null and dbName != ''">db_name = #{dbName},</if>
<if test="userName != null and userName != ''">user_name = #{userName},</if>
<if test="password != null and password != ''">password = #{password},</if>
<if test="dbType != null and dbType != ''">db_type = #{dbType},</if>
<if test="appKey != null and appKey != ''">app_key = #{appKey},</if>
<if test="appSecret != null and appSecret != ''">app_secret = #{appSecret},</if>
<if test="corpid != null and corpid != ''">corpId = #{corpid},</if>
<if test="agentid != null and agentid != ''">agentId = #{agentid},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete"
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
update sys_application_account
set sts= 'N',
modify_time = #{modify_time},
modify_user_id = #{modify_user_id}
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition"
parameterType="com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity">
update sys_application_account set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id = #{id}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
<if test="sorts != null">and sorts = #{sorts}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<if test="ipAddress != null and ipAddress != ''">and ip_address = #{ipAddress}</if>
<if test="port != null and port != ''">and port = #{port}</if>
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
<if test="userName != null and userName != ''">and user_name = #{userName}</if>
<if test="password != null and password != ''">and password = #{password}</if>
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
<if test="appKey != null and appKey != ''">and app_key = #{appKey}</if>
<if test="appSecret != null and appSecret != ''">and app_secret = #{appSecret}</if>
<if test="corpid != null and corpid != ''">and corpId = #{corpid}</if>
<if test="agentid != null and agentid != ''">and agentId = #{agentid}</if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete
from sys_application_account
where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,57 @@
package com.hzya.frame.sysnew.application.appAcount.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.web.entity.JsonResultEntity;
/**
* 应用账户表(SysApplicationAccount)表服务接口
*
* @author xiang2lin
* @since 2025-05-10 15:52:25
*/
public interface ISysApplicationAccountService extends IBaseService<SysApplicationAccountEntity, String>{
/**
* 保存账户信息
* @param object
* @return
*/
JsonResultEntity saveAccount(JSONObject object);
/**
* 更新账户信息
* @param object
* @return
*/
JsonResultEntity updateAccount(JSONObject object);
/**
* 删除账户信息
* @param object
* @return
*/
JsonResultEntity deleteAccount(JSONObject object);
/**
* 查询账户详情
* @param object
* @return
*/
JsonResultEntity getAccount(JSONObject object);
/**
* 查询账户列表数据
* @param object
* @return
*/
JsonResultEntity queryAccountList(JSONObject object);
/**
* 查询账户分页数据
* @param object
* @return
*/
JsonResultEntity queryAccountPaged(JSONObject object);
}

View File

@ -0,0 +1,107 @@
package com.hzya.frame.sysnew.application.appAcount.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.sysnew.application.appAcount.entity.SysApplicationAccountEntity;
import com.hzya.frame.sysnew.application.appAcount.dao.ISysApplicationAccountDao;
import com.hzya.frame.sysnew.application.appAcount.service.ISysApplicationAccountService;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* 应用账户表(SysApplicationAccount)表服务实现类
*
* @author xiang2lin
* @since 2025-05-10 15:52:26
*/
@Service(value = "sysApplicationAccountService")
public class SysApplicationAccountServiceImpl extends BaseService<SysApplicationAccountEntity, String> implements ISysApplicationAccountService {
private ISysApplicationAccountDao sysApplicationAccountDao;
@Autowired
public void setSysApplicationAccountDao(ISysApplicationAccountDao dao) {
this.sysApplicationAccountDao = dao;
this.dao = dao;
}
/**
* 保存账户信息
*
* @param object
* @return
*/
@Override
public JsonResultEntity saveAccount(JSONObject object) {
SysApplicationAccountEntity entity = getData("jsonStr", object, SysApplicationAccountEntity.class);
try {
checkParam(entity,"save");
}catch (Exception e){
return BaseResult.getFailureMessageEntity(e.getMessage());
}
sysApplicationAccountDao.save(entity);
return BaseResult.getSuccessMessageEntity("新增成功");
}
/**
* 更新账户信息
*
* @param object
* @return
*/
@Override
public JsonResultEntity updateAccount(JSONObject object) {
return null;
}
/**
* 删除账户信息
*
* @param object
* @return
*/
@Override
public JsonResultEntity deleteAccount(JSONObject object) {
return null;
}
/**
* 查询账户详情
*
* @param object
* @return
*/
@Override
public JsonResultEntity getAccount(JSONObject object) {
return null;
}
/**
* 查询账户列表数据
*
* @param object
* @return
*/
@Override
public JsonResultEntity queryAccountList(JSONObject object) {
return null;
}
/**
* 查询账户分页数据
*
* @param object
* @return
*/
@Override
public JsonResultEntity queryAccountPaged(JSONObject object) {
return null;
}
//数据检查
private void checkParam(SysApplicationAccountEntity entity,String type){
}
}