Commit f43df269 by qwmqiuwenmin

fix

parent 283fb54b
package com.gic.haoban.manage.api.dto;
import java.io.Serializable;
import java.util.Date;
public class MaidianLogDTO implements Serializable{
private Integer maidianId;
private String staffId;
private String wxEnterpriseId;
private String phoneNumber;
private Date deviceDate;
private String options;
private String event;
private String url;
private String context;
private String scene;
private String platform;
private String model;
private String brand;
private String hbversion;
private String system;
private String sdkVersion;
private String version;
private String systemInfo;
private Integer stayTime;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Integer getMaidianId() {
return maidianId;
}
public void setMaidianId(Integer maidianId) {
this.maidianId = maidianId;
}
public String getStaffId() {
return staffId;
}
public void setStaffId(String staffId) {
this.staffId = staffId == null ? null : staffId.trim();
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId == null ? null : wxEnterpriseId.trim();
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim();
}
public Date getDeviceDate() {
return deviceDate;
}
public void setDeviceDate(Date deviceDate) {
this.deviceDate = deviceDate;
}
public String getOptions() {
return options;
}
public void setOptions(String options) {
this.options = options == null ? null : options.trim();
}
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event == null ? null : event.trim();
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url == null ? null : url.trim();
}
public String getContext() {
return context;
}
public void setContext(String context) {
this.context = context == null ? null : context.trim();
}
public String getScene() {
return scene;
}
public void setScene(String scene) {
this.scene = scene == null ? null : scene.trim();
}
public String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
this.platform = platform == null ? null : platform.trim();
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model == null ? null : model.trim();
}
public String getBrand() {
return brand;
}
public void setBrand(String brand) {
this.brand = brand == null ? null : brand.trim();
}
public String getHbversion() {
return hbversion;
}
public void setHbversion(String hbversion) {
this.hbversion = hbversion == null ? null : hbversion.trim();
}
public String getSystem() {
return system;
}
public void setSystem(String system) {
this.system = system == null ? null : system.trim();
}
public String getSdkVersion() {
return sdkVersion;
}
public void setSdkVersion(String sdkVersion) {
this.sdkVersion = sdkVersion == null ? null : sdkVersion.trim();
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version == null ? null : version.trim();
}
public String getSystemInfo() {
return systemInfo;
}
public void setSystemInfo(String systemInfo) {
this.systemInfo = systemInfo == null ? null : systemInfo.trim();
}
public Integer getStayTime() {
return stayTime;
}
public void setStayTime(Integer stayTime) {
this.stayTime = stayTime;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
package com.gic.haoban.manage.api.service;
import com.gic.haoban.manage.api.dto.MaidianLogDTO;
public interface MaidianLogApiService {
void insert(MaidianLogDTO maidianLogDTO);
}
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHaobanMaidianLog;
public interface TabHaobanMaidianLogMapper {
int deleteByPrimaryKey(Integer maidianId);
int insert(TabHaobanMaidianLog record);
int insertSelective(TabHaobanMaidianLog record);
TabHaobanMaidianLog selectByPrimaryKey(Integer maidianId);
int updateByPrimaryKeySelective(TabHaobanMaidianLog record);
int updateByPrimaryKey(TabHaobanMaidianLog record);
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
import java.util.Date;
public class TabHaobanMaidianLog implements Serializable {
private Integer maidianId;
private String staffId;
private String wxEnterpriseId;
private String phoneNumber;
private Date deviceDate;
private String options;
private String event;
private String url;
private String context;
private String scene;
private String platform;
private String model;
private String brand;
private String hbversion;
private String system;
private String sdkVersion;
private String version;
private String systemInfo;
private Integer stayTime;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Integer getMaidianId() {
return maidianId;
}
public void setMaidianId(Integer maidianId) {
this.maidianId = maidianId;
}
public String getStaffId() {
return staffId;
}
public void setStaffId(String staffId) {
this.staffId = staffId == null ? null : staffId.trim();
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId == null ? null : wxEnterpriseId.trim();
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim();
}
public Date getDeviceDate() {
return deviceDate;
}
public void setDeviceDate(Date deviceDate) {
this.deviceDate = deviceDate;
}
public String getOptions() {
return options;
}
public void setOptions(String options) {
this.options = options == null ? null : options.trim();
}
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event == null ? null : event.trim();
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url == null ? null : url.trim();
}
public String getContext() {
return context;
}
public void setContext(String context) {
this.context = context == null ? null : context.trim();
}
public String getScene() {
return scene;
}
public void setScene(String scene) {
this.scene = scene == null ? null : scene.trim();
}
public String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
this.platform = platform == null ? null : platform.trim();
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model == null ? null : model.trim();
}
public String getBrand() {
return brand;
}
public void setBrand(String brand) {
this.brand = brand == null ? null : brand.trim();
}
public String getHbversion() {
return hbversion;
}
public void setHbversion(String hbversion) {
this.hbversion = hbversion == null ? null : hbversion.trim();
}
public String getSystem() {
return system;
}
public void setSystem(String system) {
this.system = system == null ? null : system.trim();
}
public String getSdkVersion() {
return sdkVersion;
}
public void setSdkVersion(String sdkVersion) {
this.sdkVersion = sdkVersion == null ? null : sdkVersion.trim();
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version == null ? null : version.trim();
}
public String getSystemInfo() {
return systemInfo;
}
public void setSystemInfo(String systemInfo) {
this.systemInfo = systemInfo == null ? null : systemInfo.trim();
}
public Integer getStayTime() {
return stayTime;
}
public void setStayTime(Integer stayTime) {
this.stayTime = stayTime;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.service;
import com.gic.haoban.manage.api.dto.MaidianLogDTO;
public interface MaidianLogService {
void insert(MaidianLogDTO maidianLogDTO);
}
package com.gic.haoban.manage.service.service.impl;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gic.commons.util.EntityUtil;
import com.gic.haoban.manage.api.dto.MaidianLogDTO;
import com.gic.haoban.manage.service.dao.mapper.TabHaobanMaidianLogMapper;
import com.gic.haoban.manage.service.entity.TabHaobanMaidianLog;
import com.gic.haoban.manage.service.service.MaidianLogService;
@Service
public class MaidianLogServiceImpl implements MaidianLogService{
@Autowired
private TabHaobanMaidianLogMapper mapper;
@Override
public void insert(MaidianLogDTO maidianLogDTO) {
TabHaobanMaidianLog tab = EntityUtil.changeEntityByJSON(TabHaobanMaidianLog.class, maidianLogDTO);
tab.setCreateTime(new Date());
tab.setUpdateTime(tab.getCreateTime());
mapper.insert(tab);
}
}
package com.gic.haoban.manage.service.service.out.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gic.haoban.manage.api.dto.MaidianLogDTO;
import com.gic.haoban.manage.api.service.MaidianLogApiService;
import com.gic.haoban.manage.service.service.MaidianLogService;
@Service
public class MaidianLogApiServiceImpl implements MaidianLogApiService {
@Autowired
private MaidianLogService maidianLogService;
@Override
public void insert(MaidianLogDTO maidianLogDTO) {
maidianLogService.insert(maidianLogDTO);
}
}
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
<dubbo:service interface="com.gic.haoban.manage.api.service.HelpApiService" ref="helpApiServiceImpl" timeout="10000"/> <dubbo:service interface="com.gic.haoban.manage.api.service.HelpApiService" ref="helpApiServiceImpl" timeout="10000"/>
<dubbo:service interface="com.gic.haoban.manage.api.service.AuditApiService" ref="auditApiServiceImpl" timeout="10000"/> <dubbo:service interface="com.gic.haoban.manage.api.service.AuditApiService" ref="auditApiServiceImpl" timeout="10000"/>
<dubbo:service interface="com.gic.haoban.manage.api.service.ClerkMainStoreRelatedApiService" ref="clerkMainStoreRelatedApiServiceImpl" timeout="10000"/> <dubbo:service interface="com.gic.haoban.manage.api.service.ClerkMainStoreRelatedApiService" ref="clerkMainStoreRelatedApiServiceImpl" timeout="10000"/>
<dubbo:service interface="com.gic.haoban.manage.api.service.MaidianLogApiService" ref="maidianLogApiServiceImpl" timeout="10000"/>
<dubbo:service interface="com.gic.haoban.manage.api.service.DealSyncOperationApiService" <dubbo:service interface="com.gic.haoban.manage.api.service.DealSyncOperationApiService"
ref="dealSyncOperationApiServiceImpl" timeout="10000"/> ref="dealSyncOperationApiServiceImpl" timeout="10000"/>
......
<?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.TabHaobanMaidianLogMapper" >
<resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabHaobanMaidianLog" >
<id column="maidian_id" property="maidianId" jdbcType="INTEGER" />
<result column="staff_id" property="staffId" jdbcType="VARCHAR" />
<result column="wx_enterprise_id" property="wxEnterpriseId" jdbcType="VARCHAR" />
<result column="phone_number" property="phoneNumber" jdbcType="VARCHAR" />
<result column="device_date" property="deviceDate" jdbcType="TIMESTAMP" />
<result column="options" property="options" jdbcType="VARCHAR" />
<result column="event" property="event" jdbcType="VARCHAR" />
<result column="url" property="url" jdbcType="VARCHAR" />
<result column="context" property="context" jdbcType="VARCHAR" />
<result column="scene" property="scene" jdbcType="VARCHAR" />
<result column="platform" property="platform" jdbcType="VARCHAR" />
<result column="model" property="model" jdbcType="VARCHAR" />
<result column="brand" property="brand" jdbcType="VARCHAR" />
<result column="hbversion" property="hbversion" jdbcType="VARCHAR" />
<result column="system" property="system" jdbcType="VARCHAR" />
<result column="sdk_version" property="sdkVersion" jdbcType="VARCHAR" />
<result column="version" property="version" jdbcType="VARCHAR" />
<result column="system_info" property="systemInfo" jdbcType="VARCHAR" />
<result column="stay_time" property="stayTime" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
maidian_id, staff_id, wx_enterprise_id, phone_number, device_date, options, event,
url, context, scene, platform, model, brand, hbversion, system, sdk_version, version,
system_info, stay_time, create_time, update_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from tab_haoban_maidian_log
where maidian_id = #{maidianId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tab_haoban_maidian_log
where maidian_id = #{maidianId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanMaidianLog" >
insert into tab_haoban_maidian_log (maidian_id, staff_id, wx_enterprise_id,
phone_number, device_date, options,
event, url, context,
scene, platform, model,
brand, hbversion, system,
sdk_version, version, system_info,
stay_time, create_time, update_time
)
values (#{maidianId,jdbcType=INTEGER}, #{staffId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR},
#{phoneNumber,jdbcType=VARCHAR}, #{deviceDate,jdbcType=TIMESTAMP}, #{options,jdbcType=VARCHAR},
#{event,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{context,jdbcType=VARCHAR},
#{scene,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR},
#{brand,jdbcType=VARCHAR}, #{hbversion,jdbcType=VARCHAR}, #{system,jdbcType=VARCHAR},
#{sdkVersion,jdbcType=VARCHAR}, #{version,jdbcType=VARCHAR}, #{systemInfo,jdbcType=VARCHAR},
#{stayTime,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanMaidianLog" >
insert into tab_haoban_maidian_log
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="maidianId != null" >
maidian_id,
</if>
<if test="staffId != null" >
staff_id,
</if>
<if test="wxEnterpriseId != null" >
wx_enterprise_id,
</if>
<if test="phoneNumber != null" >
phone_number,
</if>
<if test="deviceDate != null" >
device_date,
</if>
<if test="options != null" >
options,
</if>
<if test="event != null" >
event,
</if>
<if test="url != null" >
url,
</if>
<if test="context != null" >
context,
</if>
<if test="scene != null" >
scene,
</if>
<if test="platform != null" >
platform,
</if>
<if test="model != null" >
model,
</if>
<if test="brand != null" >
brand,
</if>
<if test="hbversion != null" >
hbversion,
</if>
<if test="system != null" >
system,
</if>
<if test="sdkVersion != null" >
sdk_version,
</if>
<if test="version != null" >
version,
</if>
<if test="systemInfo != null" >
system_info,
</if>
<if test="stayTime != null" >
stay_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="maidianId != null" >
#{maidianId,jdbcType=INTEGER},
</if>
<if test="staffId != null" >
#{staffId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null" >
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if test="phoneNumber != null" >
#{phoneNumber,jdbcType=VARCHAR},
</if>
<if test="deviceDate != null" >
#{deviceDate,jdbcType=TIMESTAMP},
</if>
<if test="options != null" >
#{options,jdbcType=VARCHAR},
</if>
<if test="event != null" >
#{event,jdbcType=VARCHAR},
</if>
<if test="url != null" >
#{url,jdbcType=VARCHAR},
</if>
<if test="context != null" >
#{context,jdbcType=VARCHAR},
</if>
<if test="scene != null" >
#{scene,jdbcType=VARCHAR},
</if>
<if test="platform != null" >
#{platform,jdbcType=VARCHAR},
</if>
<if test="model != null" >
#{model,jdbcType=VARCHAR},
</if>
<if test="brand != null" >
#{brand,jdbcType=VARCHAR},
</if>
<if test="hbversion != null" >
#{hbversion,jdbcType=VARCHAR},
</if>
<if test="system != null" >
#{system,jdbcType=VARCHAR},
</if>
<if test="sdkVersion != null" >
#{sdkVersion,jdbcType=VARCHAR},
</if>
<if test="version != null" >
#{version,jdbcType=VARCHAR},
</if>
<if test="systemInfo != null" >
#{systemInfo,jdbcType=VARCHAR},
</if>
<if test="stayTime != null" >
#{stayTime,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanMaidianLog" >
update tab_haoban_maidian_log
<set >
<if test="staffId != null" >
staff_id = #{staffId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null" >
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if test="phoneNumber != null" >
phone_number = #{phoneNumber,jdbcType=VARCHAR},
</if>
<if test="deviceDate != null" >
device_date = #{deviceDate,jdbcType=TIMESTAMP},
</if>
<if test="options != null" >
options = #{options,jdbcType=VARCHAR},
</if>
<if test="event != null" >
event = #{event,jdbcType=VARCHAR},
</if>
<if test="url != null" >
url = #{url,jdbcType=VARCHAR},
</if>
<if test="context != null" >
context = #{context,jdbcType=VARCHAR},
</if>
<if test="scene != null" >
scene = #{scene,jdbcType=VARCHAR},
</if>
<if test="platform != null" >
platform = #{platform,jdbcType=VARCHAR},
</if>
<if test="model != null" >
model = #{model,jdbcType=VARCHAR},
</if>
<if test="brand != null" >
brand = #{brand,jdbcType=VARCHAR},
</if>
<if test="hbversion != null" >
hbversion = #{hbversion,jdbcType=VARCHAR},
</if>
<if test="system != null" >
system = #{system,jdbcType=VARCHAR},
</if>
<if test="sdkVersion != null" >
sdk_version = #{sdkVersion,jdbcType=VARCHAR},
</if>
<if test="version != null" >
version = #{version,jdbcType=VARCHAR},
</if>
<if test="systemInfo != null" >
system_info = #{systemInfo,jdbcType=VARCHAR},
</if>
<if test="stayTime != null" >
stay_time = #{stayTime,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where maidian_id = #{maidianId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.haoban.manage.service.entity.TabHaobanMaidianLog" >
update tab_haoban_maidian_log
set staff_id = #{staffId,jdbcType=VARCHAR},
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=VARCHAR},
device_date = #{deviceDate,jdbcType=TIMESTAMP},
options = #{options,jdbcType=VARCHAR},
event = #{event,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
context = #{context,jdbcType=VARCHAR},
scene = #{scene,jdbcType=VARCHAR},
platform = #{platform,jdbcType=VARCHAR},
model = #{model,jdbcType=VARCHAR},
brand = #{brand,jdbcType=VARCHAR},
hbversion = #{hbversion,jdbcType=VARCHAR},
system = #{system,jdbcType=VARCHAR},
sdk_version = #{sdkVersion,jdbcType=VARCHAR},
version = #{version,jdbcType=VARCHAR},
system_info = #{systemInfo,jdbcType=VARCHAR},
stay_time = #{stayTime,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where maidian_id = #{maidianId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
package com.gic.haoban.manage.web.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.manage.api.dto.MaidianLogDTO;
import com.gic.haoban.manage.api.service.MaidianLogApiService;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
@RestController
public class MaidianLogController extends WebBaseController{
@Autowired
private MaidianLogApiService maidianLogApiService;
@RequestMapping("save-maidian-log")
public HaobanResponse saveUserLoginLog(List<MaidianLogDTO> maidianLogDTOList) {
for (MaidianLogDTO maidianLogDTO : maidianLogDTOList) {
maidianLogApiService.insert(maidianLogDTO);
}
return resultResponse(HaoBanErrCode.ERR_1);
}
}
...@@ -48,5 +48,7 @@ ...@@ -48,5 +48,7 @@
<dubbo:reference interface="com.gic.thirdparty.api.service.QQCloudPicService" id="qqCloudPicServiceImpl"/> <dubbo:reference interface="com.gic.thirdparty.api.service.QQCloudPicService" id="qqCloudPicServiceImpl"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.DictApiService" id="dictApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.DictApiService" id="dictApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.MaidianLogApiService" id="maidianLogApiService"/>
</beans> </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