Commit 211cb85d by jinxin

无效代码删除

parent d0f67e51
package com.gic.haoban.manage.api.dto;
import java.io.Serializable;
import java.util.Date;
/**
* (TabHaobanAppLog)实体类
*
* @author makejava
* @since 2023-05-11 20:42:00
*/
public class TabHaobanAppLogDTO implements Serializable {
private static final long serialVersionUID = 539168776962271773L;
/**
* 主键
*/
private Long id;
/**
* 手机号
*/
private String phone;
/**
* 小程序memberId
*/
private String memberId;
/**
* 用户信息
*/
private String userInfo;
/**
* 设备时间
*/
private Date deviceTime;
/**
* 当前Url(页面url)
*/
private String locationUrl;
/**
* 错误信息json
*/
private String errMsg;
/**
* 创建时间
*/
private Date createTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getUserInfo() {
return userInfo;
}
public void setUserInfo(String userInfo) {
this.userInfo = userInfo;
}
public Date getDeviceTime() {
return deviceTime;
}
public void setDeviceTime(Date deviceTime) {
this.deviceTime = deviceTime;
}
public String getLocationUrl() {
return locationUrl;
}
public void setLocationUrl(String locationUrl) {
this.locationUrl = locationUrl;
}
public String getErrMsg() {
return errMsg;
}
public void setErrMsg(String errMsg) {
this.errMsg = errMsg;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
package com.gic.haoban.manage.api.service;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.haoban.manage.api.dto.TabHaobanAppLogDTO;
/**
* (TabHaobanAppLog)表服务接口
*
* @author makejava
* @since 2023-05-11 20:42:00
*/
public interface TabHaobanAppLogApiService {
/**
* 新增数据
*
* @param tabHaobanAppLogDTO 实例对象
* @return 实例对象
*/
ServiceResponse<Boolean> insert(TabHaobanAppLogDTO tabHaobanAppLogDTO);
}
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHaobanAppLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* (TabHaobanAppLog)表数据库访问层
*
* @author makejava
* @since 2023-05-11 20:42:00
*/
public interface TabHaobanAppLogDao {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
TabHaobanAppLog queryById(Long id);
/**
* 查询指定行数据
*
* @param tabHaobanAppLog 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List<TabHaobanAppLog> queryAllByLimit(TabHaobanAppLog tabHaobanAppLog, @Param("pageable") Pageable pageable);
/**
* 统计总行数
*
* @param tabHaobanAppLog 查询条件
* @return 总行数
*/
long count(TabHaobanAppLog tabHaobanAppLog);
/**
* 新增数据
*
* @param tabHaobanAppLog 实例对象
* @return 影响行数
*/
int insert(TabHaobanAppLog tabHaobanAppLog);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanAppLog> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TabHaobanAppLog> entities);
/**
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanAppLog> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
*/
int insertOrUpdateBatch(@Param("entities") List<TabHaobanAppLog> entities);
/**
* 修改数据
*
* @param tabHaobanAppLog 实例对象
* @return 影响行数
*/
int update(TabHaobanAppLog tabHaobanAppLog);
}
package com.gic.haoban.manage.service.entity;
import java.util.Date;
import java.io.Serializable;
/**
* (TabHaobanAppLog)实体类
*
* @author makejava
* @since 2023-05-11 20:42:00
*/
public class TabHaobanAppLog implements Serializable {
private static final long serialVersionUID = 539168776962271773L;
/**
* 主键
*/
private Long id;
/**
* 手机号
*/
private String phone;
/**
* 小程序memberId
*/
private String memberId;
/**
* 用户信息
*/
private String userInfo;
/**
* 设备时间
*/
private Date deviceTime;
/**
* 当前Url(页面url)
*/
private String locationUrl;
/**
* 错误信息json
*/
private String errMsg;
/**
* 创建时间
*/
private Date createTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getUserInfo() {
return userInfo;
}
public void setUserInfo(String userInfo) {
this.userInfo = userInfo;
}
public Date getDeviceTime() {
return deviceTime;
}
public void setDeviceTime(Date deviceTime) {
this.deviceTime = deviceTime;
}
public String getLocationUrl() {
return locationUrl;
}
public void setLocationUrl(String locationUrl) {
this.locationUrl = locationUrl;
}
public String getErrMsg() {
return errMsg;
}
public void setErrMsg(String errMsg) {
this.errMsg = errMsg;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
package com.gic.haoban.manage.service.service;
import com.gic.api.base.commons.Page;
import com.gic.haoban.manage.service.entity.TabHaobanAppLog;
import org.springframework.data.domain.PageRequest;
/**
* (TabHaobanAppLog)表服务接口
*
* @author makejava
* @since 2023-05-11 20:42:00
*/
public interface TabHaobanAppLogService {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
TabHaobanAppLog queryById(Long id);
/**
* 分页查询
*
* @param tabHaobanAppLog 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
Page<TabHaobanAppLog> queryByPage(TabHaobanAppLog tabHaobanAppLog, PageRequest pageRequest);
/**
* 新增数据
*
* @param tabHaobanAppLog 实例对象
* @return 实例对象
*/
Integer insert(TabHaobanAppLog tabHaobanAppLog);
/**
* 修改数据
*
* @param tabHaobanAppLog 实例对象
* @return 实例对象
*/
TabHaobanAppLog update(TabHaobanAppLog tabHaobanAppLog);
}
package com.gic.haoban.manage.service.service.impl;
import com.gic.api.base.commons.Page;
import com.gic.haoban.manage.service.dao.mapper.TabHaobanAppLogDao;
import com.gic.haoban.manage.service.entity.TabHaobanAppLog;
import com.gic.haoban.manage.service.service.TabHaobanAppLogService;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
/**
* (TabHaobanAppLog)表服务实现类
*
* @author makejava
* @since 2023-05-11 20:42:00
*/
@Service("tabHaobanAppLogService")
public class TabHaobanAppLogServiceImpl implements TabHaobanAppLogService {
@Resource
private TabHaobanAppLogDao tabHaobanAppLogDao;
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
@Override
public TabHaobanAppLog queryById(Long id) {
return this.tabHaobanAppLogDao.queryById(id);
}
/**
* 分页查询
*
* @param tabHaobanAppLog 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
@Override
public Page<TabHaobanAppLog> queryByPage(TabHaobanAppLog tabHaobanAppLog, PageRequest pageRequest) {
return null;
}
/**
* 新增数据
*
* @param tabHaobanAppLog 实例对象
* @return 实例对象
*/
@Override
public Integer insert(TabHaobanAppLog tabHaobanAppLog) {
tabHaobanAppLog.setCreateTime(new Date());
return this.tabHaobanAppLogDao.insert(tabHaobanAppLog);
}
/**
* 修改数据
*
* @param tabHaobanAppLog 实例对象
* @return 实例对象
*/
@Override
public TabHaobanAppLog update(TabHaobanAppLog tabHaobanAppLog) {
this.tabHaobanAppLogDao.update(tabHaobanAppLog);
return this.queryById(tabHaobanAppLog.getId());
}
}
package com.gic.haoban.manage.service.service.out.impl;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.haoban.common.utils.EntityUtil;
import com.gic.haoban.manage.api.dto.TabHaobanAppLogDTO;
import com.gic.haoban.manage.api.service.TabHaobanAppLogApiService;
import com.gic.haoban.manage.service.entity.TabHaobanAppLog;
import com.gic.haoban.manage.service.service.TabHaobanAppLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @description:
* @Author: wenhua
* @Date: 2023/5/11 21:41
*/
@Service
public class TabHaobanAppLogApiServiceImpl implements TabHaobanAppLogApiService {
@Autowired
private TabHaobanAppLogService tabHaobanAppLogService;
@Override
public ServiceResponse<Boolean> insert(TabHaobanAppLogDTO tabHaobanAppLogDTO) {
tabHaobanAppLogService.insert(EntityUtil.changeEntityByJSON(TabHaobanAppLog.class, tabHaobanAppLogDTO));
return ServiceResponse.success();
}
}
......@@ -137,7 +137,6 @@
<dubbo:reference interface="com.gic.enterprise.api.service.EnterpriseUseForbidService" id="enterpriseUseForbidService"/>
<dubbo:service interface="com.gic.haoban.manage.api.service.role.HaobanMenuApiService" ref="haobanMenuApiServiceImpl"/>
<dubbo:service interface="com.gic.haoban.manage.api.service.role.HaobanRoleApiService" ref="haobanRoleApiServiceImpl"/>
<dubbo:service interface="com.gic.haoban.manage.api.service.TabHaobanAppLogApiService" ref="tabHaobanAppLogApiServiceImpl"/>
<dubbo:reference interface="com.gic.enterprise.api.service.DepartmentService" id="gicDepartmentService"/>
<dubbo:reference interface="com.gic.wechat.api.service.qywx.QywxDepartmentApiService"
......
<?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.gic.haoban.manage.service.dao.mapper.TabHaobanAppLogDao">
<resultMap type="com.gic.haoban.manage.service.entity.TabHaobanAppLog" id="TabHaobanAppLogMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="phone" column="phone" jdbcType="VARCHAR"/>
<result property="memberId" column="member_id" jdbcType="VARCHAR"/>
<result property="userInfo" column="user_info" jdbcType="VARCHAR"/>
<result property="deviceTime" column="device_time" jdbcType="TIMESTAMP"/>
<result property="locationUrl" column="location_url" jdbcType="VARCHAR"/>
<result property="errMsg" column="err_msg" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
</resultMap>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanAppLogMap">
select
id, phone, member_id, user_info, device_time, location_url, err_msg, create_time
from tab_haoban_app_log
where id = #{id}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="TabHaobanAppLogMap">
select
id, phone, member_id, user_info, device_time, location_url, err_msg, create_time
from tab_haoban_app_log
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="phone != null and phone != ''">
and phone = #{phone}
</if>
<if test="memberId != null and memberId != ''">
and member_id = #{memberId}
</if>
<if test="userInfo != null and userInfo != ''">
and user_info = #{userInfo}
</if>
<if test="deviceTime != null">
and device_time = #{deviceTime}
</if>
<if test="locationUrl != null and locationUrl != ''">
and location_url = #{locationUrl}
</if>
<if test="errMsg != null and errMsg != ''">
and err_msg = #{errMsg}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--统计总行数-->
<select id="count" resultType="java.lang.Long">
select count(1)
from tab_haoban_app_log
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="phone != null and phone != ''">
and phone = #{phone}
</if>
<if test="memberId != null and memberId != ''">
and member_id = #{memberId}
</if>
<if test="userInfo != null and userInfo != ''">
and user_info = #{userInfo}
</if>
<if test="deviceTime != null">
and device_time = #{deviceTime}
</if>
<if test="locationUrl != null and locationUrl != ''">
and location_url = #{locationUrl}
</if>
<if test="errMsg != null and errMsg != ''">
and err_msg = #{errMsg}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into tab_haoban_app_log(phone, member_id, user_info, device_time, location_url, err_msg, create_time)
values (#{phone}, #{memberId}, #{userInfo}, #{deviceTime}, #{locationUrl}, #{errMsg}, #{createTime})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into tab_haoban_app_log(phone, member_id, user_info, device_time, location_url, err_msg, create_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.phone}, #{entity.memberId}, #{entity.userInfo}, #{entity.deviceTime}, #{entity.locationUrl}, #{entity.errMsg}, #{entity.createTime})
</foreach>
</insert>
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into tab_haoban_app_log(phone, member_id, user_info, device_time, location_url, err_msg, create_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.phone}, #{entity.memberId}, #{entity.userInfo}, #{entity.deviceTime}, #{entity.locationUrl}, #{entity.errMsg}, #{entity.createTime})
</foreach>
on duplicate key update
phone = values(phone),
member_id = values(member_id),
user_info = values(user_info),
device_time = values(device_time),
location_url = values(location_url),
err_msg = values(err_msg),
create_time = values(create_time)
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_app_log
<set>
<if test="phone != null and phone != ''">
phone = #{phone},
</if>
<if test="memberId != null and memberId != ''">
member_id = #{memberId},
</if>
<if test="userInfo != null and userInfo != ''">
user_info = #{userInfo},
</if>
<if test="deviceTime != null">
device_time = #{deviceTime},
</if>
<if test="locationUrl != null and locationUrl != ''">
location_url = #{locationUrl},
</if>
<if test="errMsg != null and errMsg != ''">
err_msg = #{errMsg},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
</set>
where id = #{id}
</update>
</mapper>
package com.gic.haoban.manage.web.qo;
import java.io.Serializable;
import java.util.Date;
/**
* (TabHaobanAppLog)实体类
*
* @author makejava
* @since 2023-05-11 20:42:00
*/
public class TabHaobanAppLogQO implements Serializable {
private static final long serialVersionUID = 539168776962271773L;
/**
* 主键
*/
private Long id;
/**
* 手机号
*/
private String phone;
/**
* 小程序memberId
*/
private String memberId;
/**
* 用户信息
*/
private String userInfo;
/**
* 设备时间
*/
private Date deviceTime;
/**
* 当前Url(页面url)
*/
private String locationUrl;
/**
* 错误信息json
*/
private String errMsg;
/**
* 创建时间
*/
private Date createTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getUserInfo() {
return userInfo;
}
public void setUserInfo(String userInfo) {
this.userInfo = userInfo;
}
public Date getDeviceTime() {
return deviceTime;
}
public void setDeviceTime(Date deviceTime) {
this.deviceTime = deviceTime;
}
public String getLocationUrl() {
return locationUrl;
}
public void setLocationUrl(String locationUrl) {
this.locationUrl = locationUrl;
}
public String getErrMsg() {
return errMsg;
}
public void setErrMsg(String errMsg) {
this.errMsg = errMsg;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
......@@ -134,6 +134,5 @@
<dubbo:reference interface="com.gic.marketing.api.service.MemberTagMarketingApiService" id="memberTagMarketingApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.licence.LicenceOrderApiService" id="licenceOrderApiService"/>
<dubbo:reference id="pay4WXService" interface="com.gic.thirdparty.api.service.Pay4WXService" timeout="10000" retries="0" check="false"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.TabHaobanAppLogApiService" id="tabHaobanAppLogApiService"/>
</beans>
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