Commit 62f74969 by 徐高华

企微托管

parent 624c4a5b
...@@ -120,10 +120,35 @@ public class OpenStaffDTO implements Serializable { ...@@ -120,10 +120,35 @@ public class OpenStaffDTO implements Serializable {
private String qrcodeData ; private String qrcodeData ;
/** /**
* 下一次加好友间隔时间分钟
*/
private int addStopTime ;
/**
* 下一次删除好友间隔时间分钟
*/
private int delStopTime ;
/**
* tab_haoban_open_staff * tab_haoban_open_staff
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public int getAddStopTime() {
return addStopTime;
}
public void setAddStopTime(int addStopTime) {
this.addStopTime = addStopTime;
}
public int getDelStopTime() {
return delStopTime;
}
public void setDelStopTime(int delStopTime) {
this.delStopTime = delStopTime;
}
public String getQrcodeData() { public String getQrcodeData() {
return qrcodeData; return qrcodeData;
} }
......
...@@ -116,4 +116,12 @@ public interface OpenStaffApiService { ...@@ -116,4 +116,12 @@ public interface OpenStaffApiService {
* @return * @return
*/ */
List<String> listOpenStoreId(String wxEnterpriseId , String enterpriseId) ; List<String> listOpenStoreId(String wxEnterpriseId , String enterpriseId) ;
/**
* 更新下一次间隔时间
* @param openStaffId
* @param type
* @param time
*/
public void updateStopTime(Long openStaffId , int type , int time) ;
} }
...@@ -51,4 +51,6 @@ public interface OpenStaffMapper { ...@@ -51,4 +51,6 @@ public interface OpenStaffMapper {
List<String> listAll() ; List<String> listAll() ;
List<String> listOpenStoreId(@Param("wxEnterpriseId")String wxEnterpriseId, @Param("enterpriseId")String enterpriseId); List<String> listOpenStoreId(@Param("wxEnterpriseId")String wxEnterpriseId, @Param("enterpriseId")String enterpriseId);
void updateStopTime(@Param("id") Long openStaffId, @Param("type") int type, @Param("time") int time);
} }
\ No newline at end of file
...@@ -103,6 +103,31 @@ public class TabOpenStaff implements Serializable { ...@@ -103,6 +103,31 @@ public class TabOpenStaff implements Serializable {
private String loginRemark ; private String loginRemark ;
/**
* 下一次加好友间隔时间分钟
*/
private int addStopTime ;
/**
* 下一次删除好友间隔时间分钟
*/
private int delStopTime ;
public int getAddStopTime() {
return addStopTime;
}
public void setAddStopTime(int addStopTime) {
this.addStopTime = addStopTime;
}
public int getDelStopTime() {
return delStopTime;
}
public void setDelStopTime(int delStopTime) {
this.delStopTime = delStopTime;
}
public String getLoginRemark() { public String getLoginRemark() {
return loginRemark; return loginRemark;
} }
......
...@@ -276,4 +276,9 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService { ...@@ -276,4 +276,9 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
public List<String> listOpenStoreId(String wxEnterpriseId, String enterpriseId) { public List<String> listOpenStoreId(String wxEnterpriseId, String enterpriseId) {
return this.openStaffMapper.listOpenStoreId(wxEnterpriseId,enterpriseId); return this.openStaffMapper.listOpenStoreId(wxEnterpriseId,enterpriseId);
} }
@Override
public void updateStopTime(Long openStaffId, int type, int time) {
this.openStaffMapper.updateStopTime(openStaffId,type,time) ;
}
} }
...@@ -23,12 +23,14 @@ ...@@ -23,12 +23,14 @@
<result column="first_auth_time" javaType="java.util.Date" jdbcType="TIMESTAMP" property="firstAuthTime"/> <result column="first_auth_time" javaType="java.util.Date" jdbcType="TIMESTAMP" property="firstAuthTime"/>
<result column="valid_qrcode_flag" property="validQrcodeFlag"/> <result column="valid_qrcode_flag" property="validQrcodeFlag"/>
<result column="login_remark" property="loginRemark" /> <result column="login_remark" property="loginRemark" />
<result column="add_stop_time" property="addStopTime" />
<result column="del_stop_time" property="delStopTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
open_staff_id open_staff_id
, wx_enterprise_id,enterprise_id, staff_id, create_time, update_time, uuid, delete_flag,status_flag, step, qw_user_id, wx_corp_id, qr_code_1, key_1, , wx_enterprise_id,enterprise_id, staff_id, create_time, update_time, uuid, delete_flag,status_flag, step, qw_user_id, wx_corp_id, qr_code_1, key_1,
qr_code_2, key_2, valid_flag, auth_time,first_auth_time , valid_qrcode_flag , login_remark qr_code_2, key_2, valid_flag, auth_time,first_auth_time , valid_qrcode_flag , login_remark , add_stop_time , del_stop_time
</sql> </sql>
<insert id="insert" parameterType="com.gic.haoban.manage.service.dao.mapper.OpenStaffMapper"> <insert id="insert" parameterType="com.gic.haoban.manage.service.dao.mapper.OpenStaffMapper">
...@@ -98,6 +100,17 @@ ...@@ -98,6 +100,17 @@
where open_staff_id = #{id} where open_staff_id = #{id}
</update> </update>
<update id="updateStopTime">
update tab_haoban_open_staff
<if test="type==1">
add_stop_time = add_stop_time + #{time}
</if>
<if test="type==2">
del_stop_time = del_stop_time + #{time}
</if>
where open_staff_id = #{id}
</update>
<delete id="deleteByPrimaryKey"> <delete id="deleteByPrimaryKey">
update tab_haoban_open_staff update tab_haoban_open_staff
set delete_flag = 1, set delete_flag = 1,
......
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