sys_msg_todo相关

dev2.0
wj 1 year ago
parent 9e1acf487f
commit b5467f4dcf

@ -0,0 +1,15 @@
package com.glxp.api.dao.system;
import com.glxp.api.entity.system.SysMsgTodoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* sys_msg_todoMapper
*/
public interface SysMsgTodoMapper extends BaseMapper<SysMsgTodoEntity> {
}

@ -0,0 +1,98 @@
package com.glxp.api.entity.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.glxp.api.enums.PushStatusEnum;
import com.glxp.api.enums.TodoMsgTypeEnum;
import lombok.Data;
/**
*
* @TableName sys_msg_todo
*/
@TableName(value ="sys_msg_todo")
@Data
public class SysMsgTodoEntity {
/**
*
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
*
*/
@TableField(value = "code")
private String code;
/**
* 1:2:35.;67:8
*/
@TableField(value = "msgType")
private TodoMsgTypeEnum msgType;
/**
*
*/
@TableField(value = "msgContent")
private String msgContent;
/**
*
*/
@TableField(value = "dealStatus")
private Integer dealStatus;
/**
* 12:3
*/
@TableField(value = "pushStatus")
private PushStatusEnum pushStatus;
/**
*
*/
@TableField(value = "toUrl")
private String toUrl;
/**
*
*/
@TableField(value = "createTime")
private LocalDateTime createTime;
/**
*
*/
@TableField(value = "updateUser")
private String updateUser;
/**
*
*/
@TableField(value = "updateTime")
private LocalDateTime updateTime;
/**
*
*/
@TableField(value = "deptCode")
private String deptCode;
/**
*
*/
@TableField(value = "invCode")
private String invCode;
/**
*
*/
@TableField(value = "remark")
private String remark;
}

@ -0,0 +1,23 @@
package com.glxp.api.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum PushStatusEnum {
NOT_PUSHED("not_pushed", 1, "未推送"),
push_success("push_success", 2, "推送成功"),
push_fail("push_fail", 3, "推送失败"),
;
final String key;
@EnumValue
final Integer value;
final String desc;
}

@ -0,0 +1,27 @@
package com.glxp.api.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum TodoMsgTypeEnum {
PUT_IN_APPLY("put_in_apply", 1, "入院物资申请"),
ORDER_AUDIT("order_audit", 2, "单据审核"),
INVOICE_CONFIRM("invoice_confirm", 3, "单据发票确认"),
CERT_AUDIT("cert_audit", 5, "资质审核"),
USE_AUDIT("use_audit", 6, "领用单审核"),
BUY_APPLY_AUDIT("buy_audit", 7, "申购单审核"),
PROCUREMENT_AUDIT("procurement_audit", 8, "采购单审核"),
;
final String key;
@EnumValue
final Integer value;
final String desc;
}

@ -0,0 +1,11 @@
package com.glxp.api.service.system;
import com.glxp.api.entity.system.SysMsgTodoEntity;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* sys_msg_todoService
*/
public interface SysMsgTodoService extends IService<SysMsgTodoEntity> {
}

@ -0,0 +1,20 @@
package com.glxp.api.service.system.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.entity.system.SysMsgTodoEntity;
import com.glxp.api.service.system.SysMsgTodoService;
import com.glxp.api.dao.system.SysMsgTodoMapper;
import org.springframework.stereotype.Service;
/**
* sys_msg_todoService
*/
@Service
public class SysMsgTodoServiceImpl extends ServiceImpl<SysMsgTodoMapper, SysMsgTodoEntity>
implements SysMsgTodoService {
}

@ -0,0 +1,6 @@
<?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.glxp.api.dao.system.SysMsgTodoMapper">
</mapper>
Loading…
Cancel
Save