forked from rongchao/epmet-cloud-rizhao
6 changed files with 171 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.service.StaffLoginLogService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
|
|||
/** |
|||
* 工作人员登录日志表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2023-04-04 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("staffLoginLog") |
|||
public class StaffLoginLogController { |
|||
|
|||
@Autowired |
|||
private StaffLoginLogService staffLoginLogService; |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.epmet.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.entity.StaffLoginLogEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 工作人员登录日志表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2023-04-04 |
|||
*/ |
|||
@Mapper |
|||
public interface StaffLoginLogDao extends BaseDao<StaffLoginLogEntity> { |
|||
|
|||
} |
@ -0,0 +1,73 @@ |
|||
package com.epmet.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 工作人员登录日志表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2023-04-04 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("staff_login_log") |
|||
public class StaffLoginLogEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 工作端用户id |
|||
*/ |
|||
private String staffId; |
|||
|
|||
/** |
|||
* 工作人员姓名 |
|||
*/ |
|||
private String staffName; |
|||
|
|||
/** |
|||
* 工作人员手机号 |
|||
*/ |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 工作人员所属组织id;组织名称在customer_agency |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 组织级别(社区级:community, |
|||
乡(镇、街道)级:street, |
|||
区县级: district, |
|||
市级: city |
|||
省级:province) |
|||
*/ |
|||
private String agencyLevel; |
|||
|
|||
/** |
|||
* agency_id的直属上级;如果是根组织的用户登录,pid=0或者pid='' |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* AGENCY_ID全路径,包含agency_id自身 |
|||
*/ |
|||
private String orgIdPath; |
|||
|
|||
/** |
|||
* 登录时间 |
|||
*/ |
|||
private Date loginTime; |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.epmet.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.entity.StaffLoginLogEntity; |
|||
|
|||
/** |
|||
* 工作人员登录日志表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2023-04-04 |
|||
*/ |
|||
public interface StaffLoginLogService extends BaseService<StaffLoginLogEntity> { |
|||
|
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.service.impl; |
|||
|
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.dao.StaffLoginLogDao; |
|||
import com.epmet.entity.StaffLoginLogEntity; |
|||
import com.epmet.service.StaffLoginLogService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 工作人员登录日志表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2023-04-04 |
|||
*/ |
|||
@Service |
|||
public class StaffLoginLogServiceImpl extends BaseServiceImpl<StaffLoginLogDao, StaffLoginLogEntity> implements StaffLoginLogService { |
|||
|
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
<?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.epmet.dao.StaffLoginLogDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.StaffLoginLogEntity" id="staffLoginLogMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="staffId" column="STAFF_ID"/> |
|||
<result property="staffName" column="STAFF_NAME"/> |
|||
<result property="mobile" column="MOBILE"/> |
|||
<result property="agencyId" column="AGENCY_ID"/> |
|||
<result property="agencyLevel" column="AGENCY_LEVEL"/> |
|||
<result property="pid" column="PID"/> |
|||
<result property="orgIdPath" column="ORG_ID_PATH"/> |
|||
<result property="loginTime" column="LOGIN_TIME"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
Loading…
Reference in new issue