| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | |
| | | public ComponentDepartment(String componentId, String departId){ |
| | | this.componentId = componentId; |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
| | | private Date updateTime; |
| | | @TableField(value = "create_user",fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "create_by",fill = FieldFill.INSERT) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String createBy; |
| | | @TableField(value = "update_by", fill = FieldFill.UPDATE) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | |
| | | public ComponentPermission(String componentId, String userId){ |
| | | this.componentId = componentId; |
| | |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
| | | private Date updateTime; |
| | | @TableField(value = "create_user",fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "create_by",fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @TableField(value = "update_by", fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
| | | private Date updateTime; |
| | | @TableField(value = "create_user",fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "create_by",fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @TableField(value = "update_by", fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | } |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | } |
| | |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
| | | private Date updateTime; |
| | | @TableField(value = "create_user",fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "create_by",fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @TableField(value = "update_by", fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | } |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
| | | private Date updateTime; |
| | | @TableField(value = "create_user",fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "create_by",fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @TableField(value = "update_by", fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
| | | private Date updateTime; |
| | | @TableField(value = "create_user",fill = FieldFill.INSERT) |
| | | @Dict(dictTable = "sys_user", dicCode = "id", dicText = "realname") |
| | | private String createUser; |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | @Dict(dictTable = "sys_user", dicCode = "id", dicText = "realname") |
| | | private String updateUser; |
| | | @TableField(value = "create_by",fill = FieldFill.INSERT) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String createBy; |
| | | @TableField(value = "update_by", fill = FieldFill.UPDATE) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | } |
| | |
| | | private Date createTime; |
| | | |
| | | @Excel(name = "æä½äºº",width = 15) |
| | | @TableField(value = "create_user",fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by",fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | |
| | | |
| | | } |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | } |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | } |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | |
| | | public PartsDepartment(String partsId, String departId){ |
| | | this.partsId = partsId; |
| | |
| | | import com.fasterxml.jackson.annotation.JsonIgnore; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
| | | private Date updateTime; |
| | | @TableField(value = "create_user",fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "create_by",fill = FieldFill.INSERT) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String createBy; |
| | | @TableField(value = "update_by", fill = FieldFill.UPDATE) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | |
| | | public PartsPermission(String partsId, String userId){ |
| | | this.partsId = partsId; |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | import io.swagger.annotations.Api; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | } |
| | |
| | | import com.fasterxml.jackson.annotation.JsonIgnore; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | |
| | | import java.util.Date; |
| | | /** |
| | |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
| | | private Date updateTime; |
| | | @TableField(value = "create_user",fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "create_by",fill = FieldFill.INSERT) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String createBy; |
| | | @TableField(value = "update_by", fill = FieldFill.UPDATE) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | @TableField(value = "create_time", select = false, fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | } |
| | |
| | | import io.swagger.annotations.Api; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |
| | |
| | | , comp.description |
| | | , comp.create_time |
| | | , comp.update_time |
| | | , comp.update_user |
| | | , comp.create_user |
| | | , comp.update_by |
| | | , comp.create_by |
| | | from nc_component_info comp |
| | | inner join |
| | | (select distinct component_id from nc_permission_stream where delete_flag = 0 and user_id=#{userId}) s |
| | |
| | | , comp.description |
| | | , comp.CREATE_TIME |
| | | , comp.UPDATE_TIME |
| | | , comp.CREATE_USER |
| | | , comp.UPDATE_USER |
| | | , comp.create_by |
| | | , comp.update_by |
| | | from nc_device_group comp |
| | | inner join |
| | | (select distinct group_id from nc_device_permission_stream where delete_flag = 0 and user_id=#{userId}) s |
| | |
| | | , d.depart_id |
| | | , d.CREATE_TIME |
| | | , d.UPDATE_TIME |
| | | , d.CREATE_USER |
| | | , d.UPDATE_USER |
| | | , d.create_by |
| | | , d.update_by |
| | | from nc_device_info d |
| | | inner join (select device_id from nc_device_permission where user_id=#{userId}) dp |
| | | on d.device_id=dp.device_id |
| | |
| | | ,u.publish_version |
| | | ,u.description |
| | | ,u.CREATE_TIME |
| | | ,u.CREATE_USER |
| | | ,u.create_by |
| | | ,u.UPDATE_TIME |
| | | ,u.UPDATE_USER |
| | | ,u.update_by |
| | | ,(case when o.doc_id is null then 1 else 2 end) as pullStatus |
| | | ,s.realname as pullUser |
| | | from (select classification_id, doc_id,attribution_type,attribution_id from nc_doc_relative where delete_flag=0) r |
| | | inner join |
| | | (select * from nc_doc_info where delete_flag=0) u |
| | | on r.doc_id = u.doc_id |
| | | left join (select doc_id, create_user from nc_file_operate where delete_flag=0) o |
| | | left join (select doc_id, create_by from nc_file_operate where delete_flag=0) o |
| | | on u.doc_id=o.doc_id |
| | | left join sys_user s |
| | | on o.create_user=s.id |
| | | on o.create_by=s.id |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | |
| | | ,u.publish_version |
| | | ,u.description |
| | | ,u.CREATE_TIME |
| | | ,u.CREATE_USER |
| | | ,u.create_by |
| | | ,u.UPDATE_TIME |
| | | ,u.UPDATE_USER |
| | | ,u.update_by |
| | | ,(case when o.doc_id is null then 1 else 2 end) as pullStatus |
| | | ,s.realname as pullUser |
| | | ,(case when t.sync_flag is null then 2 else t.sync_flag end) as syncStatus |
| | |
| | | inner join |
| | | (select * from nc_doc_info where delete_flag=0) u |
| | | on r.doc_id = u.doc_id |
| | | left join (select doc_id, create_user from nc_file_operate where delete_flag=0) o |
| | | left join (select doc_id, create_by from nc_file_operate where delete_flag=0) o |
| | | on u.doc_id=o.doc_id |
| | | left join sys_user s |
| | | on o.create_user=s.id |
| | | on o.create_by=s.id |
| | | left join (select distinct file_id, doc_id, device_id, sync_flag from nc_to_equipment_lists where delete_flag = 0) t |
| | | on u.doc_id=t.doc_id and u.publish_file_id=t.file_id and r.attribution_id=t.device_id |
| | | ${ew.customSqlSegment} |
| | |
| | | , p.parts_status |
| | | , p.description |
| | | , p.CREATE_TIME |
| | | , p.CREATE_USER |
| | | , p.create_by |
| | | , p.UPDATE_TIME |
| | | , p.UPDATE_USER |
| | | , p.update_by |
| | | from nc_parts_info p |
| | | inner join |
| | | (select distinct parts_id from nc_permission_stream where delete_flag = 0 and user_id=#{userId}) s |
| | |
| | | , p.ASSEMBLE_NAME |
| | | , p.DESCRIPTION |
| | | , p.CREATE_TIME |
| | | , p.CREATE_USER |
| | | , p.create_by |
| | | , p.UPDATE_TIME |
| | | , p.UPDATE_USER |
| | | , p.update_by |
| | | from nc_process_stream p |
| | | inner join |
| | | (select distinct PROCESS_ID from nc_permission_stream where delete_flag = 0 and user_id=#{userId}) s |
| | |
| | | , p.product_status |
| | | , p.CREATE_TIME |
| | | , p.UPDATE_TIME |
| | | , p.create_user |
| | | , p.update_user |
| | | , p.create_by |
| | | , p.update_by |
| | | from nc_product_info p |
| | | inner join |
| | | (select distinct product_id from nc_permission_stream where delete_flag = 0 and user_id=#{userId}) s |
| | |
| | | , p.craft_version |
| | | , p.step_type |
| | | , p.CREATE_TIME |
| | | , p.create_user |
| | | , p.create_by |
| | | , p.UPDATE_TIME |
| | | , p.update_user |
| | | , p.update_by |
| | | , p.description |
| | | , p.device_no |
| | | , p.assemble_no |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.dnc.response; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import org.jeecg.common.api.vo.ScopedSlots; |
| | | import org.jeecg.modules.dnc.ucenter.Department; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * <p> |
| | | * DNCé¨é¨è¡¨ å卿 ç»ææ°æ®çå®ä½ç±» |
| | | * <p> |
| | | * |
| | | * @Author Steve |
| | | * @Since 2019-01-22 |
| | | */ |
| | | |
| | | public class DepartmentTreeModel implements Serializable{ |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 对åºSysDepartä¸çidåæ®µ,åç«¯æ°æ®æ ä¸çkey*/ |
| | | private String key; |
| | | |
| | | /** 对åºSysDepartä¸çidåæ®µ,åç«¯æ°æ®æ ä¸çvalue*/ |
| | | private String value; |
| | | |
| | | /** 对åºdepart_nameåæ®µ,åç«¯æ°æ®æ ä¸çtitle*/ |
| | | private String title; |
| | | |
| | | |
| | | private boolean isLeaf; |
| | | // 以䏿æå段åä¸SysDepartç¸å |
| | | |
| | | private String departId; |
| | | private String departName; |
| | | |
| | | public String getDepartCode() { |
| | | return departCode; |
| | | } |
| | | |
| | | public void setDepartCode(String departCode) { |
| | | this.departCode = departCode; |
| | | } |
| | | |
| | | public String getKey() { |
| | | return key; |
| | | } |
| | | |
| | | public void setKey(String key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | public String getTitle() { |
| | | return title; |
| | | } |
| | | |
| | | public void setTitle(String title) { |
| | | this.title = title; |
| | | } |
| | | |
| | | public boolean isLeaf() { |
| | | return isLeaf; |
| | | } |
| | | |
| | | public void setLeaf(boolean leaf) { |
| | | isLeaf = leaf; |
| | | } |
| | | |
| | | public String getDepartId() { |
| | | return departId; |
| | | } |
| | | |
| | | public void setDepartId(String departId) { |
| | | this.departId = departId; |
| | | } |
| | | |
| | | public String getDepartName() { |
| | | return departName; |
| | | } |
| | | |
| | | public void setDepartName(String departName) { |
| | | this.departName = departName; |
| | | } |
| | | |
| | | public String getParentId() { |
| | | return parentId; |
| | | } |
| | | |
| | | public void setParentId(String parentId) { |
| | | this.parentId = parentId; |
| | | } |
| | | |
| | | public Integer getPriority() { |
| | | return priority; |
| | | } |
| | | |
| | | public void setPriority(Integer priority) { |
| | | this.priority = priority; |
| | | } |
| | | |
| | | public Integer getRankLevel() { |
| | | return rankLevel; |
| | | } |
| | | |
| | | public void setRankLevel(Integer rankLevel) { |
| | | this.rankLevel = rankLevel; |
| | | } |
| | | |
| | | public String getMgrMan() { |
| | | return mgrMan; |
| | | } |
| | | |
| | | public void setMgrMan(String mgrMan) { |
| | | this.mgrMan = mgrMan; |
| | | } |
| | | |
| | | public String getDescription() { |
| | | return description; |
| | | } |
| | | |
| | | public void setDescription(String description) { |
| | | this.description = description; |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |
| | | public String getcreateBy() { |
| | | return createBy; |
| | | } |
| | | |
| | | public void setcreateBy(String createBy) { |
| | | this.createBy = createBy; |
| | | } |
| | | |
| | | public String getupdateBy() { |
| | | return updateBy; |
| | | } |
| | | |
| | | public void setupdateBy(String updateBy) { |
| | | this.updateBy = updateBy; |
| | | } |
| | | |
| | | public Integer getDeleteFlag() { |
| | | return deleteFlag; |
| | | } |
| | | |
| | | public void setDeleteFlag(Integer deleteFlag) { |
| | | this.deleteFlag = deleteFlag; |
| | | } |
| | | |
| | | public Integer getPositionType() { |
| | | return positionType; |
| | | } |
| | | |
| | | public void setPositionType(Integer positionType) { |
| | | this.positionType = positionType; |
| | | } |
| | | |
| | | public String getDirectorUserIds() { |
| | | return directorUserIds; |
| | | } |
| | | |
| | | public void setDirectorUserIds(String directorUserIds) { |
| | | this.directorUserIds = directorUserIds; |
| | | } |
| | | |
| | | public void setChildren(List<DepartmentTreeModel> children) { |
| | | this.children = children; |
| | | } |
| | | |
| | | private String departCode; |
| | | private String parentId; |
| | | private Integer priority; |
| | | private Integer rankLevel; |
| | | private String mgrMan; |
| | | private String description; |
| | | private Date createTime; |
| | | private Date updateTime; |
| | | private String createBy; |
| | | private String updateBy; |
| | | private Integer deleteFlag = 0; |
| | | @TableField(exist = false) |
| | | private Integer positionType; |
| | | |
| | | //update-begin---author:wangshuai ---date:20200308 forï¼[JTC-119]å¨é¨é¨ç®¡çèåä¸è®¾ç½®é¨é¨è´è´£äººï¼æ°å¢å段é¨é¨è´è´£äººids |
| | | /**é¨é¨è´è´£äººids*/ |
| | | private String directorUserIds; |
| | | //update-end---author:wangshuai ---date:20200308 forï¼[JTC-119]å¨é¨é¨ç®¡çèåä¸è®¾ç½®é¨é¨è´è´£äººï¼æ°å¢å段é¨é¨è´è´£äººids |
| | | |
| | | private List<DepartmentTreeModel> children = new ArrayList<>(); |
| | | |
| | | private ScopedSlots scopedSlots = new ScopedSlots(); |
| | | private Department entity; |
| | | /** |
| | | * å°SysDepartå¯¹è±¡è½¬æ¢æSysDepartTreeModel对象 |
| | | * @param Department |
| | | */ |
| | | public DepartmentTreeModel(Department Department) { |
| | | this.key = Department.getDepartId(); |
| | | this.value = Department.getDepartId(); |
| | | this.title = Department.getDepartName(); |
| | | this.departId = Department.getDepartId(); |
| | | this.departCode= Department.getDepartCode(); |
| | | this.priority=Department.getPriority(); |
| | | this.rankLevel=Department.getRankLevel(); |
| | | this.mgrMan=Department.getMgrMan(); |
| | | this.parentId = Department.getParentId(); |
| | | this.departName = Department.getDepartName(); |
| | | this.description = Department.getDescription(); |
| | | this.createBy = Department.getCreateBy(); |
| | | this.createTime = Department.getCreateTime(); |
| | | this.updateBy = Department.getUpdateBy(); |
| | | this.updateTime = Department.getUpdateTime(); |
| | | this.deleteFlag=Department.getDeleteFlag(); |
| | | this.entity = Department; |
| | | } |
| | | |
| | | public DepartmentTreeModel() { } |
| | | |
| | | |
| | | public List<DepartmentTreeModel> getChildren() { |
| | | return children; |
| | | } |
| | | |
| | | public ScopedSlots getScopedSlots(){return scopedSlots;} |
| | | |
| | | public void setScopedSlots(ScopedSlots scopedSlots){this.scopedSlots = scopedSlots;} |
| | | |
| | | public Department getEntity(){return entity;} |
| | | |
| | | public void setEntity(Department entity){this.entity = entity;} |
| | | |
| | | |
| | | |
| | | /** |
| | | * éåequalsæ¹æ³ |
| | | */ |
| | | @Override |
| | | public boolean equals(Object o) { |
| | | if (this == o) { |
| | | return true; |
| | | } |
| | | if (o == null || getClass() != o.getClass()) { |
| | | return false; |
| | | } |
| | | DepartmentTreeModel model = (DepartmentTreeModel) o; |
| | | return Objects.equals(departId, model.departId) && |
| | | Objects.equals(parentId, model.parentId) && |
| | | Objects.equals(departName, model.departName) && |
| | | Objects.equals(departCode, model.departCode) && |
| | | Objects.equals(priority, model.priority) && |
| | | Objects.equals(rankLevel, model.rankLevel) && |
| | | Objects.equals(description, model.description) && |
| | | Objects.equals(mgrMan, model.mgrMan) && |
| | | Objects.equals(deleteFlag, model.deleteFlag) && |
| | | Objects.equals(createBy, model.createBy) && |
| | | Objects.equals(createTime, model.createTime) && |
| | | Objects.equals(updateBy, model.updateBy) && |
| | | Objects.equals(updateTime, model.updateTime) && |
| | | Objects.equals(directorUserIds, model.directorUserIds) && |
| | | Objects.equals(children, model.children); |
| | | } |
| | | |
| | | /** |
| | | * éåhashCodeæ¹æ³ |
| | | */ |
| | | @Override |
| | | public int hashCode() { |
| | | |
| | | return Objects.hash(departId, parentId, departName, departCode, priority, |
| | | rankLevel, description, mgrMan, deleteFlag, createBy, createTime, updateBy, updateTime, |
| | | children,directorUserIds); |
| | | } |
| | | |
| | | } |
| | |
| | | if(file == null || file.isEmpty() || !ValidateUtil.validateString(id)) |
| | | ExceptionCast.cast(CommonCode.INVALID_PARAM); |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | if(!ValidateUtil.validateString(userId)) |
| | | if(!ValidateUtil.validateString(user.getUsername())) |
| | | ExceptionCast.cast(UcenterCode.UCENTER_ACCOUNT_NOT_EXIST); |
| | | FileOperate operate = fileOperateService.getByDocId(id); |
| | | if(operate == null || !userId.equals(operate.getCreateUser())) |
| | | if(operate == null || !user.getUsername().equals(operate.getCreateBy())) |
| | | ExceptionCast.cast(DocumentCode.DOC_OPERATE_PUSH_FAIL); |
| | | DocInfo en = super.getById(id); |
| | | if(en == null) |
| | |
| | | if(!ValidateUtil.validateString(id)) |
| | | ExceptionCast.cast(CommonCode.INVALID_PARAM); |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | if(!ValidateUtil.validateString(userId)) |
| | | if(!ValidateUtil.validateString(user.getUsername())) |
| | | ExceptionCast.cast(UcenterCode.UCENTER_ACCOUNT_NOT_EXIST); |
| | | FileOperate operate = fileOperateService.getByDocId(id); |
| | | if(operate == null || !userId.equals(operate.getCreateUser())) |
| | | if(operate == null || !user.getUsername().equals(operate.getCreateBy())) |
| | | ExceptionCast.cast(DocumentCode.DOC_CANCEL_PULL_ERROR); |
| | | DocInfo en = super.getById(id); |
| | | if(en == null) |
| | |
| | | IPage<NcLogInfo> userIPage = this.page(pageData, queryWrapper); |
| | | /*if (userIPage != null && userIPage.getRecords() != null && !userIPage.getRecords().isEmpty()) { |
| | | for (NcLogInfo nc : userIPage.getRecords()) { |
| | | User user = userService.getById(nc.getCreateUser()); |
| | | User user = userService.getById(nc.getCreateBy()); |
| | | if (user != null) { |
| | | nc.setNickname(user.getNickname()); |
| | | nc.setUsername(user.getUsername()); |
| | |
| | | //设置IPå°å |
| | | logInfo.setIp(IpUtils.getIpAddr(request)); |
| | | super.save(logInfo); |
| | | SysUser user = userService.getById(logInfo.getCreateUser()); |
| | | SysUser user = userService.getById(logInfo.getCreateBy()); |
| | | if (user != null) { |
| | | logInfo.setNickName(user.getRealname()); |
| | | logInfo.setUserName(user.getUsername()); |
| | |
| | | //设置IPå°å |
| | | logInfo.setIp(IpUtils.getIpAddr(request)); |
| | | super.save(logInfo); |
| | | SysUser user = userService.getById(logInfo.getCreateUser()); |
| | | SysUser user = userService.getById(logInfo.getCreateBy()); |
| | | if (user != null) { |
| | | logInfo.setNickName(user.getRealname()); |
| | | logInfo.setUserName(user.getUsername()); |
| | |
| | | ncLogInfoList.forEach(item->{ |
| | | //ç¿»è¯ç¨æ·åãæä½ç±»å |
| | | item.setOperateTypeStr(iSysDictService.queryDictTextByKey("OPERATE_TYPE",item.getOperateType().toString())); |
| | | item.setCreateUser(userService.getById(item.getCreateUser()).getRealname()); |
| | | item.setCreateBy(userService.getById(item.getCreateBy()).getRealname()); |
| | | }); |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | |
| | | @TableField(value = "update_time", select = false, fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | @JsonIgnore |
| | | @TableField(value = "create_user", select = false, fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | @TableField(value = "create_by", select = false, fill = FieldFill.INSERT) |
| | | private String createBy; |
| | | @JsonIgnore |
| | | @TableField(value = "update_user", select = false, fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE) |
| | | private String updateBy; |
| | | @JsonIgnore |
| | | @TableLogic |
| | | @TableField(value = "delete_flag", select = false) |