Commit 7c3fb9a0 by 徐高华

删除无效代码

parent cd9a7450
...@@ -16,14 +16,6 @@ import java.util.List; ...@@ -16,14 +16,6 @@ import java.util.List;
public interface TabHaobanQywxFeeAccountStaffMapper { public interface TabHaobanQywxFeeAccountStaffMapper {
/** /**
* 通过ID查询单条数据
*
* @param feeAccountId 主键
* @return 实例对象
*/
TabHaobanQywxFeeAccountStaff selectByActiveCode(@Param("wxEnterpriseId")String wxEnterpriseId , @Param("activeCode")String activeCode);
/**
* 新增数据 * 新增数据
* *
* @param tabHaobanQywxFeeAccountStaff 实例对象 * @param tabHaobanQywxFeeAccountStaff 实例对象
......
...@@ -15,14 +15,6 @@ import java.util.List; ...@@ -15,14 +15,6 @@ import java.util.List;
public interface TabHaobanQywxFeeMapper { public interface TabHaobanQywxFeeMapper {
/** /**
* 通过ID查询单条数据
*
* @param qwFeeId 主键
* @return 实例对象
*/
TabHaobanQywxFee queryById(Long qwFeeId);
/**
* 查询指定行数据 * 查询指定行数据
* *
* @param qywxFeeListQDTO qywx qdto费用列表 * @param qywxFeeListQDTO qywx qdto费用列表
...@@ -41,30 +33,6 @@ public interface TabHaobanQywxFeeMapper { ...@@ -41,30 +33,6 @@ public interface TabHaobanQywxFeeMapper {
int insert(TabHaobanQywxFee tabHaobanQywxFee); int insert(TabHaobanQywxFee tabHaobanQywxFee);
/** /**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanQywxFee> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TabHaobanQywxFee> entities);
/**
* 修改数据
*
* @param tabHaobanQywxFee 实例对象
* @return 影响行数
*/
int update(TabHaobanQywxFee tabHaobanQywxFee);
/**
* 通过主键删除数据
*
* @param qwFeeId 主键
* @return 影响行数
*/
int deleteById(Long qwFeeId);
/**
* 最新一条将要被拦截记录 * 最新一条将要被拦截记录
* *
* @param wxEnterpriseId wx企业标识 * @param wxEnterpriseId wx企业标识
......
...@@ -16,14 +16,6 @@ import java.util.List; ...@@ -16,14 +16,6 @@ import java.util.List;
public interface HaobanQywxFeeService { public interface HaobanQywxFeeService {
/** /**
* 通过ID查询单条数据
*
* @param qwFeeId 主键
* @return 实例对象
*/
HaobanQywxFeeBO queryById(Long qwFeeId);
/**
* 新增数据 * 新增数据
* *
* @param tabHaobanQywxFee 实例对象 * @param tabHaobanQywxFee 实例对象
...@@ -32,23 +24,6 @@ public interface HaobanQywxFeeService { ...@@ -32,23 +24,6 @@ public interface HaobanQywxFeeService {
int insert(TabHaobanQywxFee tabHaobanQywxFee); int insert(TabHaobanQywxFee tabHaobanQywxFee);
/** /**
* 修改数据
*
* @param tabHaobanQywxFee 实例对象
* @return 实例对象
*/
int update(TabHaobanQywxFee tabHaobanQywxFee);
/**
* 通过主键删除数据
*
* @param qwFeeId 主键
* @return 是否成功
*/
boolean deleteById(Long qwFeeId);
/**
* 列表页面 * 列表页面
* *
* @param qywxFeeListQDTO qywx qdto费用列表 * @param qywxFeeListQDTO qywx qdto费用列表
......
...@@ -27,50 +27,13 @@ public class HaobanQywxFeeServiceImpl implements HaobanQywxFeeService { ...@@ -27,50 +27,13 @@ public class HaobanQywxFeeServiceImpl implements HaobanQywxFeeService {
private TabHaobanQywxFeeMapper tabHaobanQywxFeeMapper; private TabHaobanQywxFeeMapper tabHaobanQywxFeeMapper;
/** /**
* 通过ID查询单条数据
*
* @param qwFeeId 主键
* @return 实例对象
*/
@Override
public HaobanQywxFeeBO queryById(Long qwFeeId) {
return EntityUtil.changeEntityNew(HaobanQywxFeeBO.class,this.tabHaobanQywxFeeMapper.queryById(qwFeeId));
}
/**
* 新增数据 * 新增数据
*
* @param tabHaobanQywxFee 实例对象
* @return 实例对象
*/ */
@Override @Override
public int insert(TabHaobanQywxFee tabHaobanQywxFee) { public int insert(TabHaobanQywxFee tabHaobanQywxFee) {
return this.tabHaobanQywxFeeMapper.insert(tabHaobanQywxFee); return this.tabHaobanQywxFeeMapper.insert(tabHaobanQywxFee);
} }
/**
* 修改数据
*
* @param tabHaobanQywxFee 实例对象
* @return 实例对象
*/
@Override
public int update(TabHaobanQywxFee tabHaobanQywxFee) {
return this.tabHaobanQywxFeeMapper.update(tabHaobanQywxFee);
}
/**
* 通过主键删除数据
*
* @param qwFeeId 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long qwFeeId) {
return this.tabHaobanQywxFeeMapper.deleteById(qwFeeId) > 0;
}
@Override @Override
public Page<HaobanQywxFeeBO> listPage(QywxFeeListQDTO qywxFeeListQDTO) { public Page<HaobanQywxFeeBO> listPage(QywxFeeListQDTO qywxFeeListQDTO) {
PageHelper.startPage(qywxFeeListQDTO.getPageNum(),qywxFeeListQDTO.getPageSize()); PageHelper.startPage(qywxFeeListQDTO.getPageNum(),qywxFeeListQDTO.getPageSize());
......
...@@ -18,14 +18,6 @@ ...@@ -18,14 +18,6 @@
, corp_id, wx_enterprise_id, wx_user_id, active_code, account_type, expire_time, active_time , corp_id, wx_enterprise_id, wx_user_id, active_code, account_type, expire_time, active_time
</sql> </sql>
<!--查询单个-->
<select id="selectByActiveCode" resultMap="TabHaobanQywxFeeAccountStaffMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_account_staff
where wx_enterprise_id = #{wxEnterpriseId} and active_code = #{activeCode}
</select>
<!--新增所有列--> <!--新增所有列-->
<insert id="insert"> <insert id="insert">
insert into tab_haoban_qywx_fee_account_staff(fee_account_staff_id, corp_id, wx_enterprise_id, insert into tab_haoban_qywx_fee_account_staff(fee_account_staff_id, corp_id, wx_enterprise_id,
......
...@@ -28,14 +28,6 @@ ...@@ -28,14 +28,6 @@
transfer_user_num transfer_user_num
</sql> </sql>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanQywxFeeMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee
where qw_fee_id = #{qwFeeId}
</select>
<!--查询指定行数据--> <!--查询指定行数据-->
<select id="listPage" resultMap="TabHaobanQywxFeeMap"> <select id="listPage" resultMap="TabHaobanQywxFeeMap">
<if test="interceptFlag != null and interceptFlag == 0"> <if test="interceptFlag != null and interceptFlag == 0">
...@@ -83,61 +75,6 @@ ...@@ -83,61 +75,6 @@
#{permissionUserNum}, #{buyPermissionUserNum}, #{interceptFlag},#{transferUserNum}) #{permissionUserNum}, #{buyPermissionUserNum}, #{interceptFlag},#{transferUserNum})
</insert> </insert>
<insert id="insertBatch" keyProperty="qwFeeId" useGeneratedKeys="true">
insert into tab_haoban_qywx_fee(qw_fee_id, corp_name, corp_id, wx_enterprise_id, intercept_time,
intercept_user_num, permission_user_num, buy_permission_user_num, intercept_flag,transfer_user_num)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.qwFeeId}, #{entity.corpName}, #{entity.corpId}, #{entity.wxEnterpriseId}, #{entity.interceptTime},
#{entity.interceptUserNum}, #{entity.permissionUserNum}, #{entity.buyPermissionUserNum},
#{entity.interceptFlag},#{entity.transferUserNum})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_qywx_fee
<set>
<if test="corpName != null and corpName != ''">
corp_name = #{corpName},
</if>
<if test="corpId != null and corpId != ''">
corp_id = #{corpId},
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if test="interceptTime != null">
intercept_time = #{interceptTime},
</if>
<if test="interceptUserNum != null">
intercept_user_num = #{interceptUserNum},
</if>
<if test="permissionUserNum != null">
permission_user_num = #{permissionUserNum},
</if>
<if test="buyPermissionUserNum != null">
buy_permission_user_num = #{buyPermissionUserNum},
</if>
<if test="interceptFlag != null">
intercept_flag = #{interceptFlag},
</if>
<if test="transferUserNum != null">
transfer_user_num = #{transferUserNum},
</if>
</set>
where qw_fee_id = #{qwFeeId}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tab_haoban_qywx_fee
where qw_fee_id = #{qwFeeId}
</delete>
<select id="queryByWxEnterpriseId" resultMap="TabHaobanQywxFeeMap"> <select id="queryByWxEnterpriseId" resultMap="TabHaobanQywxFeeMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
......
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