Authored by mali

删除不用的代码逻辑

... ... @@ -31,5 +31,5 @@ public interface StoredSellerMapper {
int clearUserData(@Param("uid") Integer uid);
int insertBak(StoredSeller storedSeller);
//int insertBak(StoredSeller storedSeller);
}
... ...
... ... @@ -219,13 +219,5 @@
where uid = #{uid}
</update>
<insert id="insertBak" parameterType="com.yohoufo.dal.order.model.StoredSeller" >
insert into stored_seller_bak (uid, valid_status,cert_no,cert_name,operator_uid,operator_name,
enter_time,quit_time, create_time, update_time,break_zhi_ma_cert,entry_type,level_func_id, level_func_list)
values (#{uid},#{validStatus},
#{certNo},#{certName},#{operatorUid},#{operatorName},
#{enterTime},#{quitTime},
#{createTime},#{updateTime},#{breakZhiMaCert},#{entryType},
#{levelFuncId,jdbcType=INTEGER}, #{levelFuncList,jdbcType=VARCHAR})
</insert>
</mapper>
\ No newline at end of file
... ...
... ... @@ -176,16 +176,16 @@ public class StoreSellerServiceImpl implements IStoredSellerService {
@Override
public int removeStoredSeller(Integer uid) {
StoredSeller storedSeller = storedSellerMapper.selectByUid(uid);
//StoredSeller storedSeller = storedSellerMapper.selectByUid(uid);
int rows = storedSellerMapper.clearUserData(uid);
storedSellerCacheService.removeStoredSeller(uid);
try {
storedSellerMapper.insertBak(storedSeller);
} catch (Exception e) {
logger.error("storedSellerMapper.insertBak find error storedSeller : " + storedSeller, e);
}
//try {
// storedSellerMapper.insertBak(storedSeller);
//} catch (Exception e) {
// logger.error("storedSellerMapper.insertBak find error storedSeller : " + storedSeller, e);
//}
return rows;
}
... ...