parent
92f56fa136
commit
56116fd0fa
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrArea;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrAreaMybatisDao extends BaseMapper<OcrArea> {
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureclass;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrPictureclassMybatisDao extends BaseMapper<OcrPictureclass> {
|
||||
}
|
||||
@ -1,30 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturejob;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrPicturejobMybatisDao extends BaseMapper<OcrPicturejob> {
|
||||
/**
|
||||
* 通过主表id删除子表数据
|
||||
*
|
||||
* @param mainId 主表id
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean deleteByMainId(@Param("mainId") String mainId);
|
||||
|
||||
/**
|
||||
* 通过主表id查询子表数据
|
||||
*
|
||||
* @param mainId 主表id
|
||||
* @return List<OcrPicturejob>
|
||||
*/
|
||||
public List<OcrPicturejob> selectByMainId(@Param("mainId") String mainId);
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturetype;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrPicturetypeMybatisDao extends BaseMapper<OcrPicturetype> {
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPlan;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrPlanMybatisDao extends BaseMapper<OcrPlan> {
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrProvince;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrProvinceMybatisDao extends BaseMapper<OcrProvince> {
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrUpuser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrUpuserMybatisDao extends BaseMapper<OcrUpuser> {
|
||||
}
|
||||
@ -1,114 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataobject;
|
||||
|
||||
import cn.jyjz.xiaoyao.admin.dataobject.Tenant;
|
||||
import cn.jyjz.xiaoyao.common.base.jsonDomain.DateNotimeSerializer;
|
||||
import cn.jyjz.xiaoyao.common.base.jsonDomain.DateSerializer;
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.dto.BaseDto;
|
||||
import cn.jyjz.xiaoyao.common.base.util.requestFormat.SearchQuery;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.AbstractMap.SimpleEntry;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(name = "图片地区管理", title = "图片地区管理")
|
||||
@TableName(value = "ocr_area")
|
||||
public class OcrArea implements BaseDto,java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 8088861709460050761L;
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "id",type = IdType.ASSIGN_ID)
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "创建人")
|
||||
@TableField(value="CREATEBY")
|
||||
private String createby;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@JsonSerialize(using = DateSerializer.class)
|
||||
@TableField(value="CREATETIME")
|
||||
private Long createtime;
|
||||
|
||||
@Schema(description = "修改人")
|
||||
@TableField(value="UPDATEBY")
|
||||
private String updateby;
|
||||
|
||||
@Schema(description = "修改时间")
|
||||
@JsonSerialize(using = DateSerializer.class)
|
||||
@TableField(value="UPDATETIME")
|
||||
private Long updatetime;
|
||||
|
||||
@Schema(description = "租户ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="TENANTID")
|
||||
private Long tenantid;
|
||||
|
||||
@Schema(description = "省份主键")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="PROVINCEID")
|
||||
private Long provinceid;
|
||||
|
||||
@Schema(description = "地区名称")
|
||||
@TableField(value="CITYNAME")
|
||||
private String cityname;
|
||||
|
||||
@Schema(description = "排序字段")
|
||||
@TableField(value="REORDER")
|
||||
private Integer reorder;
|
||||
|
||||
//租户对象
|
||||
@TableField(exist = false)
|
||||
private Tenant tenant;
|
||||
|
||||
//保存当前登录用户的数据权限范围的搜索条件
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private SearchQuery searchQueryrolesShowleave;
|
||||
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private final Map<String,String> query = Stream.of(
|
||||
new SimpleEntry<>("listdept","deptid"),
|
||||
new SimpleEntry<>("ID","id"),
|
||||
new SimpleEntry<>("create_by","createBy"),
|
||||
new SimpleEntry<>("create_time","createTime"),
|
||||
new SimpleEntry<>("update_by","updateBy"),
|
||||
new SimpleEntry<>("update_time","updateTime"),
|
||||
new SimpleEntry<>("TENANTID","tenant_id"),
|
||||
new SimpleEntry<>("PID","pid"),
|
||||
new SimpleEntry<>("HASCHILD","has_child"),
|
||||
new SimpleEntry<>("TYPENAME","typename")
|
||||
)
|
||||
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
|
||||
@Override
|
||||
public String getQueryFiled(String filedname){
|
||||
String obj = null;
|
||||
if(null != query && query.size() > 0){
|
||||
obj = query.get(filedname);
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
@ -1,71 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataobject;
|
||||
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.dto.BaseDto;
|
||||
import cn.jyjz.xiaoyao.common.base.util.requestFormat.SearchQuery;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import java.util.Map;
|
||||
import java.util.AbstractMap.SimpleEntry;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(name = "任务信息", title = "任务信息")
|
||||
@TableName(value = "ocr_picturejob")
|
||||
public class OcrPicturejob implements BaseDto,java.io.Serializable {
|
||||
private static final long serialVersionUID = -6013503038149483309L;
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "id",type = IdType.ASSIGN_ID)
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "原图片主键")
|
||||
@TableField(value="pictureid")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long pictureid;
|
||||
|
||||
@Schema(description = "任务信息")
|
||||
@TableField(value="jobnotes")
|
||||
private String jobnotes;
|
||||
|
||||
|
||||
//保存当前登录用户的数据权限范围的搜索条件
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private SearchQuery searchQueryrolesShowleave;
|
||||
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private final Map<String,String> query = Stream.of(
|
||||
new SimpleEntry<>("listdept","deptid"),
|
||||
new SimpleEntry<>("ID","id"),
|
||||
new SimpleEntry<>("pictureid","pictureid"),
|
||||
new SimpleEntry<>("jobnotes","jobnotes")
|
||||
)
|
||||
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
|
||||
@Override
|
||||
public String getQueryFiled(String filedname){
|
||||
String obj = null;
|
||||
if(null != query && query.size() > 0){
|
||||
obj = query.get(filedname);
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
@ -1,112 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataobject;
|
||||
|
||||
import cn.jyjz.xiaoyao.admin.dataobject.Tenant;
|
||||
import cn.jyjz.xiaoyao.common.base.jsonDomain.DateNotimeSerializer;
|
||||
import cn.jyjz.xiaoyao.common.base.jsonDomain.DateSerializer;
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.dto.BaseDto;
|
||||
import cn.jyjz.xiaoyao.common.base.util.requestFormat.SearchQuery;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.AbstractMap.SimpleEntry;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(name = "任务计划管理", title = "任务计划管理")
|
||||
@TableName(value = "ocr_plan")
|
||||
public class OcrPlan implements BaseDto,java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2047885576025511238L;
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "id",type = IdType.ASSIGN_ID)
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "创建人")
|
||||
@TableField(value="CREATEBY")
|
||||
private String createby;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@JsonSerialize(using = DateSerializer.class)
|
||||
@TableField(value="CREATETIME")
|
||||
private Long createtime;
|
||||
|
||||
@Schema(description = "修改人")
|
||||
@TableField(value="UPDATEBY")
|
||||
private String updateby;
|
||||
|
||||
@Schema(description = "修改时间")
|
||||
@JsonSerialize(using = DateSerializer.class)
|
||||
@TableField(value="UPDATETIME")
|
||||
private Long updatetime;
|
||||
|
||||
@Schema(description = "租户ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="TENANTID")
|
||||
private Long tenantid;
|
||||
|
||||
@Schema(description = "源系统主键")
|
||||
@TableField(value="SOURCEPLANID")
|
||||
private String sourceplanid;
|
||||
|
||||
@Schema(description = "计划名称")
|
||||
@TableField(value="PLANNAME")
|
||||
private String planname;
|
||||
|
||||
@Schema(description = "排序字段")
|
||||
@TableField(value="REORDER")
|
||||
private Integer reorder;
|
||||
|
||||
//租户对象
|
||||
@TableField(exist = false)
|
||||
private Tenant tenant;
|
||||
|
||||
//保存当前登录用户的数据权限范围的搜索条件
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private SearchQuery searchQueryrolesShowleave;
|
||||
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private final Map<String,String> query = Stream.of(
|
||||
new SimpleEntry<>("ID","id"),
|
||||
new SimpleEntry<>("CREATEBY","createby"),
|
||||
new SimpleEntry<>("CREATETIME","createtime"),
|
||||
new SimpleEntry<>("UPDATEBY","updateby"),
|
||||
new SimpleEntry<>("UPDATETIME","updatetime"),
|
||||
new SimpleEntry<>("TENANTID","tenantid"),
|
||||
new SimpleEntry<>("SOURCEPLANID","sourceplanid"),
|
||||
new SimpleEntry<>("PLANNAME","planname"),
|
||||
new SimpleEntry<>("REORDER","reorder")
|
||||
)
|
||||
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
|
||||
@Override
|
||||
public String getQueryFiled(String filedname){
|
||||
String obj = null;
|
||||
if(null != query && query.size() > 0){
|
||||
obj = query.get(filedname);
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
@ -1,91 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataobject;
|
||||
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.dto.BaseDto;
|
||||
import cn.jyjz.xiaoyao.common.base.util.requestFormat.SearchQuery;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import java.util.Map;
|
||||
import java.util.AbstractMap.SimpleEntry;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(name = "拜访省份/直辖市", title = "拜访省份/直辖市")
|
||||
@TableName(value = "ocr_province")
|
||||
public class OcrProvince implements BaseDto,java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 5578479019938662516L;
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "id",type = IdType.ASSIGN_ID)
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "创建人")
|
||||
@TableField(value="CREATEBY")
|
||||
private String createby;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@TableField(value="CREATETIME")
|
||||
private Long createtime;
|
||||
|
||||
@Schema(description = "修改人")
|
||||
@TableField(value="UPDATEBY")
|
||||
private String updateby;
|
||||
|
||||
@Schema(description = "修改时间")
|
||||
@TableField(value="UPDATETIME")
|
||||
private Long updatetime;
|
||||
|
||||
@Schema(description = "租户ID")
|
||||
@TableField(value="TENANTID")
|
||||
private Long tenantid;
|
||||
|
||||
@Schema(description = "省份名称")
|
||||
@TableField(value="PRONAME")
|
||||
private String proname;
|
||||
|
||||
@Schema(description = "排序字段")
|
||||
@TableField(value="REORDER")
|
||||
private Integer reorder;
|
||||
|
||||
|
||||
//保存当前登录用户的数据权限范围的搜索条件
|
||||
@TableField(exist = false)
|
||||
private SearchQuery searchQueryrolesShowleave;
|
||||
|
||||
@TableField(exist = false)
|
||||
private final Map<String,String> query = Stream.of(
|
||||
new SimpleEntry<>("listdept","deptid"),
|
||||
new SimpleEntry<>("ID","id"),
|
||||
new SimpleEntry<>("CREATEBY","createby"),
|
||||
new SimpleEntry<>("CREATETIME","createtime"),
|
||||
new SimpleEntry<>("UPDATEBY","updateby"),
|
||||
new SimpleEntry<>("UPDATETIME","updatetime"),
|
||||
new SimpleEntry<>("TENANTID","tenantid"),
|
||||
new SimpleEntry<>("PRONAME","proname"),
|
||||
new SimpleEntry<>("REORDER","reorder")
|
||||
)
|
||||
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
|
||||
@Override
|
||||
public String getQueryFiled(String filedname){
|
||||
String obj = null;
|
||||
if(null != query && query.size() > 0){
|
||||
obj = query.get(filedname);
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
@ -1,103 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataobject;
|
||||
|
||||
import cn.jyjz.xiaoyao.common.base.jsonDomain.DateNotimeSerializer;
|
||||
import cn.jyjz.xiaoyao.common.base.jsonDomain.DateSerializer;
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.dto.BaseDto;
|
||||
import cn.jyjz.xiaoyao.common.base.util.requestFormat.SearchQuery;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.AbstractMap.SimpleEntry;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(name = "提报人管理", title = "提报人管理")
|
||||
@TableName(value = "ocr_upuser")
|
||||
public class OcrUpuser implements BaseDto,java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2809984041577736011L;
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "id",type = IdType.ASSIGN_ID)
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "创建人")
|
||||
@TableField(value="create_by")
|
||||
private String createBy;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@JsonSerialize(using = DateSerializer.class)
|
||||
@TableField(value="create_time")
|
||||
private Long createTime;
|
||||
|
||||
@Schema(description = "修改人")
|
||||
@TableField(value="update_by")
|
||||
private String updateBy;
|
||||
|
||||
@Schema(description = "修改时间")
|
||||
@JsonSerialize(using = DateSerializer.class)
|
||||
@TableField(value="update_time")
|
||||
private Long updateTime;
|
||||
|
||||
@Schema(description = "租户ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="tenant_id")
|
||||
private Long tenantId;
|
||||
|
||||
@Schema(description = "源系统提报人主键")
|
||||
@TableField(value="upuserid")
|
||||
private String upuserid;
|
||||
|
||||
@Schema(description = "提报人名称")
|
||||
@TableField(value="upname")
|
||||
private String upname;
|
||||
|
||||
//保存当前登录用户的数据权限范围的搜索条件
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private SearchQuery searchQueryrolesShowleave;
|
||||
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private final Map<String,String> query = Stream.of(
|
||||
new SimpleEntry<>("listdept","deptid"),
|
||||
new SimpleEntry<>("ID","id"),
|
||||
new SimpleEntry<>("create_by","createBy"),
|
||||
new SimpleEntry<>("create_time","createTime"),
|
||||
new SimpleEntry<>("update_by","updateBy"),
|
||||
new SimpleEntry<>("update_time","updateTime"),
|
||||
new SimpleEntry<>("tenant_id","tenantId"),
|
||||
new SimpleEntry<>("upuserid","upuserid"),
|
||||
new SimpleEntry<>("upname","upname")
|
||||
)
|
||||
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
|
||||
@Override
|
||||
public String getQueryFiled(String filedname){
|
||||
String obj = null;
|
||||
if(null != query && query.size() > 0){
|
||||
obj = query.get(filedname);
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.service;
|
||||
|
||||
import java.util.List;
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.base.BaseService;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturejob;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 业务层
|
||||
*/
|
||||
public interface OcrPicturejobService extends BaseService<OcrPicturejob> {
|
||||
/**
|
||||
* 通过主表id删除子表数据
|
||||
*
|
||||
* @param mainId 主表id
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean deleteByMainId(String mainId);
|
||||
|
||||
/**
|
||||
* 通过主表id查询子表数据
|
||||
*
|
||||
* @param mainId 主表id
|
||||
* @return List<OcrPicturejob>
|
||||
*/
|
||||
public List<OcrPicturejob> selectByMainId(String mainId);
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.service;
|
||||
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.base.BaseService;
|
||||
import cn.jyjz.xiaoyao.oa.from.dataobject.Category;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrProvince;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 业务层
|
||||
*/
|
||||
public interface OcrProvinceService extends BaseService<OcrProvince> {
|
||||
|
||||
public List<OcrProvince> getProvinceAll(QueryWrapper<OcrProvince> queryWrapper);
|
||||
}
|
||||
@ -1,43 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.service.impl;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataDao.OcrPictureclassMybatisDao;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicture;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureclass;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrUsersearch;
|
||||
import cn.jyjz.xiaoyao.ocr.service.OcrPictureclassService;
|
||||
import cn.jyjz.xiaoyao.ocr.service.OcrUsersearchService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.base.BaseServiceImpl;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* 业务层实现
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class OcrPictureclassServiceImpl extends BaseServiceImpl<OcrPictureclassMybatisDao, OcrPictureclass> implements OcrPictureclassService {
|
||||
@Autowired
|
||||
private OcrPictureclassMybatisDao ocrpictureclassmybatisdao;
|
||||
|
||||
|
||||
@Override
|
||||
public List<OcrPictureclass> queryListNoPage(QueryWrapper<OcrPictureclass> queryWrapper) {
|
||||
|
||||
Long count = ocrpictureclassmybatisdao.selectCount(queryWrapper);
|
||||
|
||||
Page<OcrPictureclass> page = new Page(1,count);
|
||||
page.setMaxLimit(count);
|
||||
|
||||
IPage<OcrPictureclass> iPage = this.page(page,queryWrapper);
|
||||
return iPage.getRecords();
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,40 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.service.impl;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataDao.OcrPicturejobMybatisDao;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturejob;
|
||||
import cn.jyjz.xiaoyao.ocr.service.OcrPicturejobService;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.base.BaseServiceImpl;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import java.util.List;
|
||||
/**
|
||||
* 业务层实现
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class OcrPicturejobServiceImpl extends BaseServiceImpl<OcrPicturejobMybatisDao, OcrPicturejob> implements OcrPicturejobService {
|
||||
@Autowired
|
||||
private OcrPicturejobMybatisDao ocrpicturejobmybatisdao;
|
||||
|
||||
/**
|
||||
* 通过主表id删除子表数据
|
||||
*
|
||||
* @param mainId 主表id
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean deleteByMainId(String mainId){
|
||||
return ocrpicturejobmybatisdao.deleteByMainId(mainId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主表id查询子表数据
|
||||
*
|
||||
* @param mainId 主表id
|
||||
* @return List<OcrPicturejob>
|
||||
*/
|
||||
public List<OcrPicturejob> selectByMainId(String mainId){
|
||||
return ocrpicturejobmybatisdao.selectByMainId(mainId);
|
||||
}
|
||||
}
|
||||
@ -1,32 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.service.impl;
|
||||
|
||||
import cn.jyjz.xiaoyao.oa.from.dataobject.Category;
|
||||
import cn.jyjz.xiaoyao.ocr.dataDao.OcrProvinceMybatisDao;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrProvince;
|
||||
import cn.jyjz.xiaoyao.ocr.service.OcrProvinceService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.base.BaseServiceImpl;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import java.util.List;
|
||||
/**
|
||||
* 业务层实现
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class OcrProvinceServiceImpl extends BaseServiceImpl<OcrProvinceMybatisDao, OcrProvince> implements OcrProvinceService {
|
||||
@Autowired
|
||||
private OcrProvinceMybatisDao ocrprovincemybatisdao;
|
||||
|
||||
public List<OcrProvince> getProvinceAll(QueryWrapper<OcrProvince> queryWrapper){
|
||||
Long count = this.count(queryWrapper);
|
||||
|
||||
Page<OcrProvince> page = new Page<>(0, count);
|
||||
|
||||
IPage<OcrProvince> iPage = this.ocrprovincemybatisdao.selectPage(page,queryWrapper);
|
||||
return iPage.getRecords();
|
||||
}
|
||||
}
|
||||
@ -1,47 +0,0 @@
|
||||
<?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="cn.jyjz.xiaoyao.ocr.dataDao.OcrAreaMybatisDao">
|
||||
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrArea">
|
||||
<id column="ID" property="id" jdbcType="BIGINT"/>
|
||||
<result column="CREATEBY" property="createby" jdbcType="VARCHAR"/>
|
||||
<result column="CREATETIME" property="createtime" jdbcType="BIGINT"/>
|
||||
<result column="UPDATEBY" property="updateby" jdbcType="VARCHAR"/>
|
||||
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
|
||||
<result column="TENANTID" property="tenantid" jdbcType="BIGINT"/>
|
||||
<result column="PROVINCEID" property="provinceid" jdbcType="BIGINT"/>
|
||||
<result column="CITYNAME" property="cityname" jdbcType="VARCHAR"/>
|
||||
<result column="REORDER" property="reorder" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
ID AS id,
|
||||
CREATEBY AS createby,
|
||||
CREATETIME AS createtime,
|
||||
UPDATEBY AS updateby,
|
||||
UPDATETIME AS updatetime,
|
||||
TENANTID AS tenantid,
|
||||
PROVINCEID AS provinceid,
|
||||
CITYNAME AS cityname,
|
||||
REORDER AS reorder
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Where">
|
||||
<where>
|
||||
<trim prefixOverrides="and|or">
|
||||
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
||||
<if test="createby != null"> and CREATEBY ${createby.dataOp} ${createby.likestar}#{createby.value}${createby.likeend}</if>
|
||||
<if test="createtime != null"> and CREATETIME ${createtime.dataOp} ${createtime.likestar}#{createtime.value}${createtime.likeend}</if>
|
||||
<if test="updateby != null"> and UPDATEBY ${updateby.dataOp} ${updateby.likestar}#{updateby.value}${updateby.likeend}</if>
|
||||
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
||||
<if test="tenantid != null"> and TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}</if>
|
||||
<if test="provinceid != null"> and PROVINCEID ${provinceid.dataOp} ${provinceid.likestar}#{provinceid.value}${provinceid.likeend}</if>
|
||||
<if test="cityname != null"> and CITYNAME ${cityname.dataOp} ${cityname.likestar}#{cityname.value}${cityname.likeend}</if>
|
||||
<if test="reorder != null"> and REORDER ${reorder.dataOp} ${reorder.likestar}#{reorder.value}${reorder.likeend}</if>
|
||||
</trim>
|
||||
</where>
|
||||
<if test="page != null">
|
||||
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
||||
limit ${page.start}, ${page.Pagesize}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
@ -1,50 +0,0 @@
|
||||
<?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="cn.jyjz.xiaoyao.ocr.dataDao.OcrPictureclassMybatisDao">
|
||||
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureclass">
|
||||
<id column="ID" property="id" jdbcType="BIGINT"/>
|
||||
<result column="CREATEBY" property="createby" jdbcType="VARCHAR"/>
|
||||
<result column="CREATETIME" property="createtime" jdbcType="BIGINT"/>
|
||||
<result column="UPDATEBY" property="updateby" jdbcType="VARCHAR"/>
|
||||
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
|
||||
<result column="TENANTID" property="tenantid" jdbcType="BIGINT"/>
|
||||
<result column="PID" property="pid" jdbcType="BIGINT"/>
|
||||
<result column="HASCHILD" property="haschild" jdbcType="VARCHAR"/>
|
||||
<result column="CLASSNAME" property="classname" jdbcType="VARCHAR"/>
|
||||
<result column="REORDER" property="reorder" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
ID AS id,
|
||||
CREATEBY AS createby,
|
||||
CREATETIME AS createtime,
|
||||
UPDATEBY AS updateby,
|
||||
UPDATETIME AS updatetime,
|
||||
TENANTID AS tenantid,
|
||||
PID AS pid,
|
||||
HASCHILD AS haschild,
|
||||
CLASSNAME AS classname,
|
||||
REORDER AS reorder
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Where">
|
||||
<where>
|
||||
<trim prefixOverrides="and|or">
|
||||
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
||||
<if test="createby != null"> and CREATEBY ${createby.dataOp} ${createby.likestar}#{createby.value}${createby.likeend}</if>
|
||||
<if test="createtime != null"> and CREATETIME ${createtime.dataOp} ${createtime.likestar}#{createtime.value}${createtime.likeend}</if>
|
||||
<if test="updateby != null"> and UPDATEBY ${updateby.dataOp} ${updateby.likestar}#{updateby.value}${updateby.likeend}</if>
|
||||
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
||||
<if test="tenantid != null"> and TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}</if>
|
||||
<if test="pid != null"> and PID ${pid.dataOp} ${pid.likestar}#{pid.value}${pid.likeend}</if>
|
||||
<if test="haschild != null"> and HASCHILD ${haschild.dataOp} ${haschild.likestar}#{haschild.value}${haschild.likeend}</if>
|
||||
<if test="classname != null"> and CLASSNAME ${classname.dataOp} ${classname.likestar}#{classname.value}${classname.likeend}</if>
|
||||
<if test="reorder != null"> and REORDER ${reorder.dataOp} ${reorder.likestar}#{reorder.value}${reorder.likeend}</if>
|
||||
</trim>
|
||||
</where>
|
||||
<if test="page != null">
|
||||
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
||||
limit ${page.start}, ${page.Pagesize}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
@ -1,46 +0,0 @@
|
||||
<?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="cn.jyjz.xiaoyao.ocr.dataDao.OcrPicturejobMybatisDao">
|
||||
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturejob">
|
||||
<id column="ID" property="id" jdbcType="BIGINT"/>
|
||||
<result column="pictureid" property="pictureid" jdbcType="BIGINT"/>
|
||||
<result column="jobnotes" property="jobnotes" jdbcType="LONGVARCHAR"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
ID AS id,
|
||||
pictureid AS pictureid,
|
||||
jobnotes AS jobnotes
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Where">
|
||||
<where>
|
||||
<trim prefixOverrides="and|or">
|
||||
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
||||
<if test="pictureid != null"> and pictureid ${pictureid.dataOp} ${pictureid.likestar}#{pictureid.value}${pictureid.likeend}</if>
|
||||
<if test="jobnotes != null"> and jobnotes ${jobnotes.dataOp} ${jobnotes.likestar}#{jobnotes.value}${jobnotes.likeend}</if>
|
||||
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
||||
<if test="listdept != null">
|
||||
and DEPARTID in
|
||||
<foreach collection="listdept.value" item="item" index="index" open="(" separator="," close=")" >
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</trim>
|
||||
</where>
|
||||
<if test="page != null">
|
||||
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
||||
limit ${page.start}, ${page.Pagesize}
|
||||
</if>
|
||||
</sql>
|
||||
<delete id="deleteByMainId" parameterType="java.lang.String">
|
||||
DELETE
|
||||
FROM ocr_picturejob
|
||||
WHERE
|
||||
pictureid = #{mainId} </delete>
|
||||
|
||||
<select id="selectByMainId" parameterType="java.lang.String" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturejob">
|
||||
SELECT *
|
||||
FROM ocr_picturejob
|
||||
WHERE
|
||||
pictureid = #{mainId} </select>
|
||||
</mapper>
|
||||
@ -1,50 +0,0 @@
|
||||
<?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="cn.jyjz.xiaoyao.ocr.dataDao.OcrPicturetypeMybatisDao">
|
||||
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturetype">
|
||||
<id column="ID" property="id" jdbcType="BIGINT"/>
|
||||
<result column="CREATEBY" property="createby" jdbcType="VARCHAR"/>
|
||||
<result column="CREATETIME" property="createtime" jdbcType="BIGINT"/>
|
||||
<result column="UPDATEBY" property="updateby" jdbcType="VARCHAR"/>
|
||||
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
|
||||
<result column="TENANTID" property="tenantid" jdbcType="BIGINT"/>
|
||||
<result column="PID" property="pid" jdbcType="BIGINT"/>
|
||||
<result column="HASCHILD" property="haschild" jdbcType="VARCHAR"/>
|
||||
<result column="TYPENAME" property="typename" jdbcType="VARCHAR"/>
|
||||
<result column="REORDER" property="reorder" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
ID AS id,
|
||||
CREATEBY AS createby,
|
||||
CREATETIME AS createtime,
|
||||
UPDATEBY AS updateby,
|
||||
UPDATETIME AS updatetime,
|
||||
TENANTID AS tenantid,
|
||||
PID AS pid,
|
||||
HASCHILD AS haschild,
|
||||
TYPENAME AS typename,
|
||||
REORDER AS reorder
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Where">
|
||||
<where>
|
||||
<trim prefixOverrides="and|or">
|
||||
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
||||
<if test="createby != null"> and CREATEBY ${createby.dataOp} ${createby.likestar}#{createby.value}${createby.likeend}</if>
|
||||
<if test="createtime != null"> and CREATETIME ${createtime.dataOp} ${createtime.likestar}#{createtime.value}${createtime.likeend}</if>
|
||||
<if test="updateby != null"> and UPDATEBY ${updateby.dataOp} ${updateby.likestar}#{updateby.value}${updateby.likeend}</if>
|
||||
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
||||
<if test="tenantid != null"> and TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}</if>
|
||||
<if test="pid != null"> and PID ${pid.dataOp} ${pid.likestar}#{pid.value}${pid.likeend}</if>
|
||||
<if test="haschild != null"> and HASCHILD ${haschild.dataOp} ${haschild.likestar}#{haschild.value}${haschild.likeend}</if>
|
||||
<if test="typename != null"> and TYPENAME ${typename.dataOp} ${typename.likestar}#{typename.value}${typename.likeend}</if>
|
||||
<if test="reorder != null"> and REORDER ${reorder.dataOp} ${reorder.likestar}#{reorder.value}${reorder.likeend}</if>
|
||||
</trim>
|
||||
</where>
|
||||
<if test="page != null">
|
||||
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
||||
limit ${page.start}, ${page.Pagesize}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
@ -1,47 +0,0 @@
|
||||
<?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="cn.jyjz.xiaoyao.ocr.dataDao.OcrPlanMybatisDao">
|
||||
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrPlan">
|
||||
<id column="ID" property="id" jdbcType="BIGINT"/>
|
||||
<result column="CREATEBY" property="createby" jdbcType="VARCHAR"/>
|
||||
<result column="CREATETIME" property="createtime" jdbcType="BIGINT"/>
|
||||
<result column="UPDATEBY" property="updateby" jdbcType="VARCHAR"/>
|
||||
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
|
||||
<result column="TENANTID" property="tenantid" jdbcType="BIGINT"/>
|
||||
<result column="SOURCEPLANID" property="sourceplanid" jdbcType="VARCHAR"/>
|
||||
<result column="PLANNAME" property="planname" jdbcType="VARCHAR"/>
|
||||
<result column="REORDER" property="reorder" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
ID AS id,
|
||||
CREATEBY AS createby,
|
||||
CREATETIME AS createtime,
|
||||
UPDATEBY AS updateby,
|
||||
UPDATETIME AS updatetime,
|
||||
TENANTID AS tenantid,
|
||||
SOURCEPLANID AS sourceplanid,
|
||||
PLANNAME AS planname,
|
||||
REORDER AS reorder
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Where">
|
||||
<where>
|
||||
<trim prefixOverrides="and|or">
|
||||
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
||||
<if test="createby != null"> and CREATEBY ${createby.dataOp} ${createby.likestar}#{createby.value}${createby.likeend}</if>
|
||||
<if test="createtime != null"> and CREATETIME ${createtime.dataOp} ${createtime.likestar}#{createtime.value}${createtime.likeend}</if>
|
||||
<if test="updateby != null"> and UPDATEBY ${updateby.dataOp} ${updateby.likestar}#{updateby.value}${updateby.likeend}</if>
|
||||
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
||||
<if test="tenantid != null"> and TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}</if>
|
||||
<if test="sourceplanid != null"> and SOURCEPLANID ${sourceplanid.dataOp} ${sourceplanid.likestar}#{sourceplanid.value}${sourceplanid.likeend}</if>
|
||||
<if test="planname != null"> and PLANNAME ${planname.dataOp} ${planname.likestar}#{planname.value}${planname.likeend}</if>
|
||||
<if test="reorder != null"> and REORDER ${reorder.dataOp} ${reorder.likestar}#{reorder.value}${reorder.likeend}</if>
|
||||
</trim>
|
||||
</where>
|
||||
<if test="page != null">
|
||||
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
||||
limit ${page.start}, ${page.Pagesize}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
@ -1,51 +0,0 @@
|
||||
<?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="cn.jyjz.xiaoyao.ocr.dataDao.OcrProvinceMybatisDao">
|
||||
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrProvince">
|
||||
<id column="ID" property="id" jdbcType="BIGINT"/>
|
||||
<result column="CREATEBY" property="createby" jdbcType="VARCHAR"/>
|
||||
<result column="CREATETIME" property="createtime" jdbcType="BIGINT"/>
|
||||
<result column="UPDATEBY" property="updateby" jdbcType="VARCHAR"/>
|
||||
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
|
||||
<result column="TENANTID" property="tenantid" jdbcType="BIGINT"/>
|
||||
<result column="PRONAME" property="proname" jdbcType="VARCHAR"/>
|
||||
<result column="REORDER" property="reorder" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
ID AS id,
|
||||
CREATEBY AS createby,
|
||||
CREATETIME AS createtime,
|
||||
UPDATEBY AS updateby,
|
||||
UPDATETIME AS updatetime,
|
||||
TENANTID AS tenantid,
|
||||
PRONAME AS proname,
|
||||
REORDER AS reorder
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Where">
|
||||
<where>
|
||||
<trim prefixOverrides="and|or">
|
||||
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
||||
<if test="createby != null"> and CREATEBY ${createby.dataOp} ${createby.likestar}#{createby.value}${createby.likeend}</if>
|
||||
<if test="createtime != null"> and CREATETIME ${createtime.dataOp} ${createtime.likestar}#{createtime.value}${createtime.likeend}</if>
|
||||
<if test="updateby != null"> and UPDATEBY ${updateby.dataOp} ${updateby.likestar}#{updateby.value}${updateby.likeend}</if>
|
||||
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
||||
<if test="tenantid != null"> and TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}</if>
|
||||
<if test="proname != null"> and PRONAME ${proname.dataOp} ${proname.likestar}#{proname.value}${proname.likeend}</if>
|
||||
<if test="reorder != null"> and REORDER ${reorder.dataOp} ${reorder.likestar}#{reorder.value}${reorder.likeend}</if>
|
||||
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
||||
<if test="listdept != null">
|
||||
and DEPARTID in
|
||||
<foreach collection="listdept.value" item="item" index="index" open="(" separator="," close=")" >
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</trim>
|
||||
</where>
|
||||
<if test="page != null">
|
||||
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
||||
limit ${page.start}, ${page.Pagesize}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
@ -1,51 +0,0 @@
|
||||
<?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="cn.jyjz.xiaoyao.ocr.dataDao.OcrUpuserMybatisDao">
|
||||
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrUpuser">
|
||||
<id column="ID" property="id" jdbcType="BIGINT"/>
|
||||
<result column="create_by" property="createBy" jdbcType="VARCHAR"/>
|
||||
<result column="create_time" property="createTime" jdbcType="BIGINT"/>
|
||||
<result column="update_by" property="updateBy" jdbcType="VARCHAR"/>
|
||||
<result column="update_time" property="updateTime" jdbcType="BIGINT"/>
|
||||
<result column="tenant_id" property="tenantId" jdbcType="BIGINT"/>
|
||||
<result column="upuserid" property="upuserid" jdbcType="VARCHAR"/>
|
||||
<result column="upname" property="upname" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
ID AS id,
|
||||
create_by AS createBy,
|
||||
create_time AS createTime,
|
||||
update_by AS updateBy,
|
||||
update_time AS updateTime,
|
||||
tenant_id AS tenantId,
|
||||
upuserid AS upuserid,
|
||||
upname AS upname
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Where">
|
||||
<where>
|
||||
<trim prefixOverrides="and|or">
|
||||
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
||||
<if test="createBy != null"> and create_by ${createBy.dataOp} ${createBy.likestar}#{createBy.value}${createBy.likeend}</if>
|
||||
<if test="createTime != null"> and create_time ${createTime.dataOp} ${createTime.likestar}#{createTime.value}${createTime.likeend}</if>
|
||||
<if test="updateBy != null"> and update_by ${updateBy.dataOp} ${updateBy.likestar}#{updateBy.value}${updateBy.likeend}</if>
|
||||
<if test="updateTime != null"> and update_time ${updateTime.dataOp} ${updateTime.likestar}#{updateTime.value}${updateTime.likeend}</if>
|
||||
<if test="tenantId != null"> and tenant_id ${tenantId.dataOp} ${tenantId.likestar}#{tenantId.value}${tenantId.likeend}</if>
|
||||
<if test="upuserid != null"> and upuserid ${upuserid.dataOp} ${upuserid.likestar}#{upuserid.value}${upuserid.likeend}</if>
|
||||
<if test="upname != null"> and upname ${upname.dataOp} ${upname.likestar}#{upname.value}${upname.likeend}</if>
|
||||
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
||||
<if test="listdept != null">
|
||||
and DEPARTID in
|
||||
<foreach collection="listdept.value" item="item" index="index" open="(" separator="," close=")" >
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</trim>
|
||||
</where>
|
||||
<if test="page != null">
|
||||
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
||||
limit ${page.start}, ${page.Pagesize}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in new issue