Commit 6eceee3e authored by liboyang's avatar liboyang

Merge remote-tracking branch 'origin/dev' into dev

parents e6d7f62a d9592854
......@@ -91,6 +91,24 @@
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.8</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
</dependencies>
......
package com.yxproject.start.SqlProvider;
import com.alibaba.druid.sql.ast.statement.SQLForeignKeyImpl;
import com.alibaba.druid.sql.visitor.functions.If;
import javafx.beans.binding.When;
import org.apache.ibatis.jdbc.SQL;
/**
* Created by zhangyusheng on 2018/10/23 13:52
*/
public class SqlProvider {
public String findCardInfoByCardIDOrAcceptNoAtPRODSql(String card) {
return new SQL() {
{
SELECT("*") ;
FROM("PROD_card_t@PROD_LINK");
if (card.length()==18){
WHERE("id_No=#{idNo}");
}
if (card.length()==10){
WHERE("PROD_card_t.accept_No=#{acceptNo}");
}
}
}.toString();
}
}
package com.yxproject.start.api;
import com.yxproject.start.entity.SysPermission;
import com.yxproject.start.entity.SysRole;
import com.yxproject.start.entity.UserInfo;
import com.yxproject.start.entity.*;
import com.yxproject.start.service.ProductionTaskListService;
import com.yxproject.start.service.SysPermissionService;
import com.yxproject.start.service.SysRoleService;
import com.yxproject.start.service.UserInfoService;
import com.yxproject.start.utils.YXJSONResponse;
import net.sf.json.JSONObject;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.IncorrectCredentialsException;
......@@ -15,16 +16,25 @@ import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.core.Context;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Administrator
*/
@Controller
public class ShiroApi {
@Autowired
private ProductionTaskListService productionTaskListService;
@Autowired
private UserInfoService userInfoService;
......@@ -178,6 +188,96 @@ public class ShiroApi {
return "updateRoleInfo";
}
/**
* 查询任务单;
* @return
*/
@RequestMapping(value = "/getProductionTaskListByID",method = RequestMethod.GET)
@RequiresPermissions("userInfo.del")//权限管理;
@ResponseBody
public String getProductionTaskListByID(@RequestParam("id") String id,@Context HttpServletResponse resp){
List<ProductionTaskListEntity> productionTaskListEntity = productionTaskListService.findProductionTaskListEntityByID(id);
YXJSONResponse yxjsonResponse = new YXJSONResponse();
resp.setCharacterEncoding("UTF-8");
yxjsonResponse.outPutSuccess(productionTaskListEntity);
Map map = new HashMap();
// map.put("MakeType",productionTaskListEntity);
return yxjsonResponse.toJSONString();
}
/**
* 更新任务单;
* @return
*/
@RequestMapping(value = "/updateProductionTask",method = RequestMethod.GET)
@RequiresPermissions("userInfo.add")//权限管理;
@ResponseBody
public String updateProductionTask(@RequestParam("id") String id,@Context HttpServletResponse resp){
String map ="{\"productionTaskListId\":\"20181016001\",\"makeType\":4,\"oldMakeType\":7}";
JSONObject jsonObject = JSONObject.fromObject(map);
ProductionTaskListEntity productionTaskListEntity = (ProductionTaskListEntity)jsonObject.toBean(jsonObject, ProductionTaskListEntity.class);
YXJSONResponse yxjsonResponse = new YXJSONResponse();
resp.setCharacterEncoding("UTF-8");
int i = productionTaskListService.updateProductionTask(productionTaskListEntity);
yxjsonResponse.outPutSuccess(i+"更新成功");
return yxjsonResponse.toJSONString();
}
/**
* 生成任务单;
* @return
*/
@RequestMapping(value = "/addProductionTaskList",method = RequestMethod.GET)
@RequiresPermissions("userInfo.add")//权限管理;
@ResponseBody
public String addProductionTaskList(@RequestParam("id") String id,@Context HttpServletResponse resp){
String map ="{\"productionTaskListId\":\"20181016001\",\"makeType\":4,\"oldMakeType\":7}";
JSONObject jsonObject = JSONObject.fromObject(map);
Object productionTaskList = jsonObject.get("productionTaskList");
Object groupInfoList = jsonObject.get("groupInfoList");
List<GroupinfoEntity> groupinfoEntities = (List<GroupinfoEntity>)groupInfoList;
ProductionTaskListEntity productionTaskListEntity = (ProductionTaskListEntity)productionTaskList;
YXJSONResponse yxjsonResponse = new YXJSONResponse();
resp.setCharacterEncoding("UTF-8");
int i = productionTaskListService.addProductionTaskListEntity(productionTaskListEntity,groupinfoEntities);
yxjsonResponse.outPutSuccess(i+"添加成功");
return yxjsonResponse.toJSONString();
}
/**
* 查询证件信息;
* @return
*/
@RequestMapping(value = "/findCardInfoByCardIDOrAcceptNo",method = RequestMethod.GET)
@RequiresPermissions("userInfo.add")//权限管理;
@ResponseBody
public String findCardInfoByCardIDOrAcceptNo(@RequestParam("id") String id,@Context HttpServletResponse resp){
YXJSONResponse yxjsonResponse = new YXJSONResponse();
resp.setCharacterEncoding("UTF-8");
List<Object> cardInfoByCardIDOrAcceptNo = productionTaskListService.findCardInfoByCardIDOrAcceptNo(id);
yxjsonResponse.outPutSuccess(cardInfoByCardIDOrAcceptNo);
return yxjsonResponse.toJSONString();
}
/**
* 添加快证任务单;
* @return
*/
@RequestMapping(value = "/addQuickCyclesheetInfo",method = RequestMethod.GET)
@RequiresPermissions("userInfo.add")//权限管理;
@ResponseBody
public String addQuickCyclesheetInfo(@RequestParam("id") String id,@Context HttpServletResponse resp){
YXJSONResponse yxjsonResponse = new YXJSONResponse();
resp.setCharacterEncoding("UTF-8");
int i = productionTaskListService.addQuickCyclesheetInfo(id);
yxjsonResponse.outPutSuccess(i+"添加成功");
return yxjsonResponse.toJSONString();
}
/**
* 修改权限
* @return
......
package com.yxproject.start.api;
import com.yxproject.start.entity.SysPermission;
import com.yxproject.start.entity.SysRole;
import com.yxproject.start.entity.UserInfo;
import com.yxproject.start.entity.*;
import com.yxproject.start.service.ProductionTaskListService;
import com.yxproject.start.service.SysPermissionService;
import com.yxproject.start.service.SysRoleService;
import com.yxproject.start.service.UserInfoService;
import com.yxproject.start.service.impl.UserInfoServiceImpl;
import com.yxproject.start.utils.Md5Utils;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.apache.shiro.authc.UnknownAccountException;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.authz.Permission;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
......@@ -31,7 +27,7 @@ import java.util.*;
/**
* @author Administrator
*/
@Path("user")
@Controller
public class UserInfoApi {
@Autowired
......@@ -43,9 +39,12 @@ public class UserInfoApi {
@Autowired
private SysRoleService sysRoleService;
@POST
@Path("login")
public Map<String, Object> submitLogin(@FormParam("username") String username, @FormParam("password") String password) {
@Autowired
private ProductionTaskListService productionTaskListService;
@RequestMapping("login")
@Produces(MediaType.APPLICATION_JSON)
public Map<String, Object> submitLogin(@QueryParam("username") String username, @QueryParam("password") String password) {
Map<String, Object> resultMap = new LinkedHashMap<String, Object>();
Subject currentUser = SecurityUtils.getSubject();
......@@ -359,7 +358,7 @@ public class UserInfoApi {
@GET
@RequestMapping("selectAllUser")
@Produces(MediaType.APPLICATION_JSON)
public List<UserInfo> selectAllUser() {
public List<UserInfo> selectAllUser() {
List<UserInfo> list = userInfoService.getAllUserInfo();
return list;
......
package com.yxproject.start.config;
import com.yxproject.start.entity.ProductionTaskListEntity;
import com.yxproject.start.entity.SysPermission;
import com.yxproject.start.entity.SysRole;
import com.yxproject.start.entity.UserInfo;
import com.yxproject.start.service.ProductionTaskListService;
import com.yxproject.start.service.LoginService;
import com.yxproject.start.service.UserInfoService;
import org.apache.shiro.authc.AuthenticationException;
......@@ -22,6 +24,11 @@ import org.springframework.beans.factory.annotation.Autowired;
*/
public class MyShiroRealm extends AuthorizingRealm {
@Autowired
private UserInfoService userInfoService;
@Autowired
private ProductionTaskListService productionTaskListService;
@Autowired
private LoginService loginService;
@Override
......
package com.yxproject.start.config;
import at.pollux.thymeleaf.shiro.dialect.ShiroDialect;
import com.alibaba.druid.pool.DruidDataSourceFactory;
import com.yxproject.start.utils.DatabaseType;
import com.yxproject.start.utils.DynamicDataSource;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.mgt.SecurityManager;
import org.apache.shiro.realm.Realm;
import org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor;
import org.apache.shiro.spring.web.ShiroFilterFactoryBean;
import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.core.env.Environment;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.web.servlet.handler.SimpleMappingExceptionResolver;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Properties;
import javax.sql.DataSource;
import java.util.*;
/**
* @author Administrator
......@@ -84,13 +95,18 @@ public class ShiroConfig {
@Bean
public SecurityManager securityManager(){
DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
securityManager.setRealm(myShiroRealm());
List<Realm> realms = new ArrayList<>();
realms.add(myShiroRealm());
securityManager.setRealms(realms);
return securityManager;
}
/**
* 开启shiro aop注解支持.
* 使用代理方式;所以需要开启代码支持;
......@@ -121,4 +137,74 @@ public class ShiroConfig {
public ShiroDialect shiroDialect(){
return new ShiroDialect();
}
// @Autowired
// private Environment env;
//
// /**
// * 创建数据源(数据源的名称:方法名可以取为XXXDataSource(),XXX为数据库名称,该名称也就是数据源的名称)
// */
// @Bean
// public DataSource prodDataSource() throws Exception {
// Properties props = new Properties();
// props.put("driverClassName", env.getProperty("jdbc.driverClassName"));
// props.put("url", env.getProperty("jdbc.url"));
// props.put("username", env.getProperty("jdbc.username"));
// props.put("password", env.getProperty("jdbc.password"));
// return DruidDataSourceFactory.createDataSource(props);
// }
//
// @Bean
// public DataSource accuDataSource() throws Exception {
// Properties props = new Properties();
// props.put("driverClassName", env.getProperty("jdbc2.driverClassName"));
// props.put("url", env.getProperty("jdbc2.url"));
// props.put("username", env.getProperty("jdbc2.username"));
// props.put("password", env.getProperty("jdbc2.password"));
// return DruidDataSourceFactory.createDataSource(props);
// }
//
// /**
// * @Primary 该注解表示在同一个接口有多个实现类可以注入的时候,默认选择哪一个,而不是让@autowire注解报错
// * @Qualifier 根据名称进行注入,通常是在具有相同的多个类型的实例的一个注入(例如有多个DataSource类型的实例)
// */
// @Bean
// @Primary
// public DynamicDataSource dataSource(@Qualifier("prodDataSource") DataSource myTestDbDataSource,
// @Qualifier("accuDataSource") DataSource myTestDb2DataSource) {
// Map<Object, Object> targetDataSources = new HashMap<>();
// targetDataSources.put(DatabaseType.mytestdb, myTestDbDataSource);
// targetDataSources.put(DatabaseType.mytestdb2, myTestDb2DataSource);
//
// DynamicDataSource dataSource = new DynamicDataSource();
// dataSource.setTargetDataSources(targetDataSources);// 该方法是AbstractRoutingDataSource的方法
// dataSource.setDefaultTargetDataSource(myTestDbDataSource);// 默认的datasource设置为myTestDbDataSource
//
// return dataSource;
// }
//
// /**
// * 根据数据源创建SqlSessionFactory
// */
// @Bean
// public SqlSessionFactory sqlSessionFactory(DynamicDataSource ds) throws Exception {
// SqlSessionFactoryBean fb = new SqlSessionFactoryBean();
// fb.setDataSource(ds);// 指定数据源(这个必须有,否则报错)
// // 下边两句仅仅用于*.xml文件,如果整个持久层操作不需要使用到xml文件的话(只用注解就可以搞定),则不加
// fb.setTypeAliasesPackage(env.getProperty("mybatis.typeAliasesPackage"));// 指定基包
// fb.setMapperLocations(
// new PathMatchingResourcePatternResolver().getResources(env.getProperty("mybatis.mapperLocations")));//
//
// return fb.getObject();
// }
//
// /**
// * 配置事务管理器
// */
// @Bean
// public DataSourceTransactionManager transactionManager(DynamicDataSource dataSource) throws Exception {
// return new DataSourceTransactionManager(dataSource);
// }
}
\ No newline at end of file
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "GROUPINFO", schema = "DAHAI", catalog = "")
public class GroupinfoEntity {
private String groupid;
private String groupno;
private String cyclesheetid;
private Long grouptype;
private Long valid_Count;
private Long invalid_Count;
@Id
@Column(name = "GROUPID", nullable = false, length = 20)
public String getGroupid() {
return groupid;
}
public void setGroupid(String groupid) {
this.groupid = groupid;
}
@Basic
@Column(name = "GROUPNO", nullable = true, length = 20)
public String getGroupno() {
return groupno;
}
public void setGroupno(String groupno) {
this.groupno = groupno;
}
@Basic
@Column(name = "CYCLESHEETID", nullable = true, length = 20)
public String getCyclesheetid() {
return cyclesheetid;
}
public void setCyclesheetid(String cyclesheetid) {
this.cyclesheetid = cyclesheetid;
}
@Basic
@Column(name = "GROUPTYPE", nullable = true, precision = 0)
public Long getGrouptype() {
return grouptype;
}
public void setGrouptype(Long grouptype) {
this.grouptype = grouptype;
}
@Basic
@Column(name = "VAILD_COUNT", nullable = true, precision = 0)
public Long getValid_Count() {
return valid_Count;
}
public void setValid_Count(Long valid_Count) {
this.valid_Count = valid_Count;
}
@Basic
@Column(name = "INVALID_COUNT", nullable = true, precision = 0)
public Long getInvalid_Count() {
return invalid_Count;
}
public void setInvalid_Count(Long invalid_Count) {
this.invalid_Count = invalid_Count;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GroupinfoEntity that = (GroupinfoEntity) o;
return Objects.equals(groupid, that.groupid) &&
Objects.equals(groupno, that.groupno) &&
Objects.equals(cyclesheetid, that.cyclesheetid) &&
Objects.equals(grouptype, that.grouptype) &&
Objects.equals(valid_Count, that.valid_Count) &&
Objects.equals(invalid_Count, that.invalid_Count);
}
@Override
public int hashCode() {
return Objects.hash(groupid, groupno,cyclesheetid, grouptype, valid_Count, invalid_Count);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "PRODUCTION_TASK_LIST", schema = "DAHAI", catalog = "")
public class ProductionTaskListEntity {
private String production_TaskList_Id;
private long make_Type;
private Long old_Make_Type;
private String workshop;
private String citycode;
private String submit_Date;
private String handout_Date;
private Long is_Print;
private String download_Date;
private String print_Out;
private String permanent_Position_Date;
private String roll_Out_Workshop_Date;
private String qualityinspection_Name;
private String qualityinspection_Date;
private String exception_Information;
private String outbound_Date;
private String putinstorage_Date;
@Id
@Column(name = "PRODUCTION_TASK_LIST_ID", nullable = false, length = 20)
public String getProduction_TaskList_Id() {
return production_TaskList_Id;
}
public void setProduction_TaskList_Id(String production_TaskList_Id) {
this.production_TaskList_Id = production_TaskList_Id;
}
@Basic
@Column(name = "MAKE_TYPE", nullable = false, precision = 0)
public long getMake_Type() {
return make_Type;
}
public void setMake_Type(long make_Type) {
this.make_Type = make_Type;
}
@Basic
@Column(name = "OLD_MAKE_TYPE", nullable = true, precision = 0)
public Long getOld_Make_Type() {
return old_Make_Type;
}
public void setOld_Make_Type(Long old_Make_Type) {
this.old_Make_Type = old_Make_Type;
}
@Basic
@Column(name = "CITYCODE",nullable = true, length = 8)
public String getCitycode() {
return citycode;
}
public void setCitycode(String citycode) {
this.citycode = citycode;
}
@Basic
@Column(name = "WORKSHOP", nullable = true, length = 2)
public String getWorkshop() {
return workshop;
}
public void setWorkshop(String workshop) {
this.workshop = workshop;
}
@Basic
@Column(name = "SUBMIT_DATE", nullable = true, length = 8)
public String getSubmit_Date() {
return submit_Date;
}
public void setSubmit_Date(String submit_Date) {
this.submit_Date = submit_Date;
}
@Basic
@Column(name = "HANDOUT_DATE", nullable = true, length = 8)
public String getHandout_Date() {
return handout_Date;
}
public void setHandout_Date(String handout_Date) {
this.handout_Date = handout_Date;
}
@Basic
@Column(name = "IS_PRINT", nullable = true, precision = 0)
public Long getIs_Print() {
return is_Print;
}
public void setIs_Print(Long is_Print) {
this.is_Print = is_Print;
}
@Basic
@Column(name = "DOWNLOAD_DATE", nullable = true, length = 8)
public String getDownload_Date() {
return download_Date;
}
public void setDownload_Date(String download_Date) {
this.download_Date = download_Date;
}
@Basic
@Column(name = "PRINT_OUT", nullable = true, length = 8)
public String getPrint_Out() {
return print_Out;
}
public void setPrint_Out(String print_Out) {
this.print_Out = print_Out;
}
@Basic
@Column(name = "PERMANENT_POSITION_DATE", nullable = true, length = 8)
public String getPermanent_Position_Date() {
return permanent_Position_Date;
}
public void setPermanent_Position_Date(String permanent_Position_Date) {
this.permanent_Position_Date = permanent_Position_Date;
}
@Basic
@Column(name = "ROLL_OUT_WORKSHOP_DATE", nullable = true, length = 8)
public String getRoll_Out_Workshop_Date() {
return roll_Out_Workshop_Date;
}
public void setRoll_Out_Workshop_Date(String roll_Out_Workshop_Date) {
this.roll_Out_Workshop_Date = roll_Out_Workshop_Date;
}
@Basic
@Column(name = "QUALITYINSPECTION_NAME", nullable = true, length = 20)
public String getQualityinspection_Name() {
return qualityinspection_Name;
}
public void setQualityinspection_Name(String qualityinspection_Name) {
this.qualityinspection_Name = qualityinspection_Name;
}
@Basic
@Column(name = "QUALITYINSPECTION_DATE", nullable = true, length = 8)
public String getQualityinspection_Date() {
return qualityinspection_Date;
}
public void setQualityinspection_Date(String qualityinspection_Date) {
this.qualityinspection_Date = qualityinspection_Date;
}
@Basic
@Column(name = "EXCEPTION_INFORMATION", nullable = true, length = 120)
public String getException_Information() {
return exception_Information;
}
public void setException_Information(String exception_Information) {
this.exception_Information = exception_Information;
}
@Basic
@Column(name = "OUTBOUND_DATE", nullable = true, length = 8)
public String getOutbound_Date() {
return outbound_Date;
}
public void setOutbound_Date(String outbound_Date) {
this.outbound_Date = outbound_Date;
}
@Basic
@Column(name = "PUTINSTORAGE_DATE", nullable = true, length = 8)
public String getPutinstorage_Date() {
return putinstorage_Date;
}
public void setPutinstorage_Date(String putinstorage_Date) {
this.putinstorage_Date = putinstorage_Date;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ProductionTaskListEntity that = (ProductionTaskListEntity) o;
return make_Type == that.make_Type &&
Objects.equals(production_TaskList_Id, that.production_TaskList_Id) &&
Objects.equals(old_Make_Type, that.old_Make_Type) &&
Objects.equals(citycode, that.citycode) &&
Objects.equals(workshop, that.workshop) &&
Objects.equals(submit_Date, that.submit_Date) &&
Objects.equals(handout_Date, that.handout_Date) &&
Objects.equals(is_Print, that.is_Print) &&
Objects.equals(download_Date, that.download_Date) &&
Objects.equals(print_Out, that.print_Out) &&
Objects.equals(permanent_Position_Date, that.permanent_Position_Date) &&
Objects.equals(roll_Out_Workshop_Date, that.roll_Out_Workshop_Date) &&
Objects.equals(qualityinspection_Name, that.qualityinspection_Name) &&
Objects.equals(qualityinspection_Date, that.qualityinspection_Date) &&
Objects.equals(exception_Information, that.exception_Information) &&
Objects.equals(outbound_Date, that.outbound_Date) &&
Objects.equals(putinstorage_Date, that.putinstorage_Date);
}
@Override
public int hashCode() {
return Objects.hash(production_TaskList_Id, make_Type, old_Make_Type, citycode,workshop, submit_Date, handout_Date, is_Print, download_Date, print_Out, permanent_Position_Date, roll_Out_Workshop_Date, qualityinspection_Name, qualityinspection_Date, exception_Information, outbound_Date, putinstorage_Date);
}
}
package com.yxproject.start.entity.accu;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "ACC_CARD_T", schema = "ACC_DBA", catalog = "")
public class AccCardTEntity {
private String upload_No;
private String accept_No;
private String photo_No;
private String name;
private String sex_No;
private String nation_No;
private String birthday;
private String id_No;
private String addr1;
private String addr2;
private String addr3;
private String address1;
private String sign_Govt;
private String expire_Date;
private String begin_Date;
private String apply_Reason;
private String status_No;
@Basic
@Column(name = "UPLOAD_NO", nullable = false, length = 22)
public String getUpload_No() {
return upload_No;
}
public void setUpload_No(String upload_No) {
this.upload_No = upload_No;
}
@Id
@Column(name = "ACCEPT_NO", nullable = false, length = 12)
public String getAccept_No() {
return accept_No;
}
public void setAccept_No(String accept_No) {
this.accept_No = accept_No;
}
@Basic
@Column(name = "PHOTO_NO", nullable = true, length = 12)
public String getPhoto_No() {
return photo_No;
}
public void setPhoto_No(String photo_No) {
this.photo_No = photo_No;
}
@Basic
@Column(name = "NAME", nullable = false, length = 45)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "SEX_NO", nullable = false, length = 1)
public String getSex_No() {
return sex_No;
}
public void setSex_No(String sex_No) {
this.sex_No = sex_No;
}
@Basic
@Column(name = "NATION_NO", nullable = false, length = 2)
public String getNation_No() {
return nation_No;
}
public void setNation_No(String nation_No) {
this.nation_No = nation_No;
}
@Basic
@Column(name = "BIRTHDAY", nullable = false, length = 8)
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
@Basic
@Column(name = "ID_NO", nullable = false, length = 18)
public String getId_No() {
return id_No;
}
public void setId_No(String id_No) {
this.id_No = id_No;
}
@Basic
@Column(name = "ADDR1", nullable = false, length = 36)
public String getAddr1() {
return addr1;
}
public void setAddr1(String addr1) {
this.addr1 = addr1;
}
@Basic
@Column(name = "ADDR2", nullable = true, length = 36)
public String getAddr2() {
return addr2;
}
public void setAddr2(String addr2) {
this.addr2 = addr2;
}
@Basic
@Column(name = "ADDR3", nullable = true, length = 36)
public String getAddr3() {
return addr3;
}
public void setAddr3(String addr3) {
this.addr3 = addr3;
}
@Basic
@Column(name = "ADDRESS1", nullable = true, length = 105)
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
this.address1 = address1;
}
@Basic
@Column(name = "SIGN_GOVT", nullable = false, length = 45)
public String getSign_Govt() {
return sign_Govt;
}
public void setSign_Govt(String sign_Govt) {
this.sign_Govt = sign_Govt;
}
@Basic
@Column(name = "EXPIRE_DATE", nullable = false, length = 8)
public String getExpire_Date() {
return expire_Date;
}
public void setExpire_Date(String expire_Date) {
this.expire_Date = expire_Date;
}
@Basic
@Column(name = "BEGIN_DATE", nullable = false, length = 8)
public String getBegin_Date() {
return begin_Date;
}
public void setBegin_Date(String begin_Date) {
this.begin_Date = begin_Date;
}
@Basic
@Column(name = "APPLY_REASON", nullable = false, length = 2)
public String getApply_Reason() {
return apply_Reason;
}
public void setApply_Reason(String apply_Reason) {
this.apply_Reason = apply_Reason;
}
@Basic
@Column(name = "STATUS_NO", nullable = true, length = 1)
public String getStatus_No() {
return status_No;
}
public void setStatus_No(String status_No) {
this.status_No = status_No;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AccCardTEntity that = (AccCardTEntity) o;
return Objects.equals(upload_No, that.upload_No) &&
Objects.equals(accept_No, that.accept_No) &&
Objects.equals(photo_No, that.photo_No) &&
Objects.equals(name, that.name) &&
Objects.equals(sex_No, that.sex_No) &&
Objects.equals(nation_No, that.nation_No) &&
Objects.equals(birthday, that.birthday) &&
Objects.equals(id_No, that.id_No) &&
Objects.equals(addr1, that.addr1) &&
Objects.equals(addr2, that.addr2) &&
Objects.equals(addr3, that.addr3) &&
Objects.equals(address1, that.address1) &&
Objects.equals(sign_Govt, that.sign_Govt) &&
Objects.equals(expire_Date, that.expire_Date) &&
Objects.equals(begin_Date, that.begin_Date) &&
Objects.equals(apply_Reason, that.apply_Reason) &&
Objects.equals(status_No, that.status_No);
}
@Override
public int hashCode() {
return Objects.hash(upload_No, accept_No, photo_No, name, sex_No, nation_No, birthday, id_No, addr1, addr2, addr3, address1, sign_Govt, expire_Date, begin_Date, apply_Reason, status_No);
}
}
package com.yxproject.start.entity.accu;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "ACC_GROUP_RELATION_T", schema = "ACC_DBA", catalog = "")
public class AccGroupRelationTEntity {
private String group_No;
private String original_No;
private String deal_Status;
private String deal_Date;
private String upload_Unit_No;
@Id
@Column(name = "GROUP_NO", nullable = false, length = 10)
public String getGroup_No() {
return group_No;
}
public void setGroup_No(String group_No) {
this.group_No = group_No;
}
@Basic
@Column(name = "ORIGINAL_NO", nullable = false, length = 25)
public String getOriginal_No() {
return original_No;
}
public void setOriginal_No(String original_No) {
this.original_No = original_No;
}
@Basic
@Column(name = "DEAL_STATUS", nullable = true, length = 1)
public String getDeal_Status() {
return deal_Status;
}
public void setDeal_Status(String deal_Status) {
this.deal_Status = deal_Status;
}
@Basic
@Column(name = "DEAL_DATE", nullable = false, length = 8)
public String getDeal_Date() {
return deal_Date;
}
public void setDeal_Date(String deal_Date) {
this.deal_Date = deal_Date;
}
@Basic
@Column(name = "UPLOAD_UNIT_NO", nullable = false, length = 12)
public String getUpload_Unit_No() {
return upload_Unit_No;
}
public void setUpload_Unit_No(String upload_Unit_No) {
this.upload_Unit_No = upload_Unit_No;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AccGroupRelationTEntity that = (AccGroupRelationTEntity) o;
return Objects.equals(group_No, that.group_No) &&
Objects.equals(original_No, that.original_No) &&
Objects.equals(deal_Status, that.deal_Status) &&
Objects.equals(deal_Date, that.deal_Date) &&
Objects.equals(upload_Unit_No, that.upload_Unit_No);
}
@Override
public int hashCode() {
return Objects.hash(group_No, original_No, deal_Status, deal_Date, upload_Unit_No);
}
}
package com.yxproject.start.entity.accu;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "ACC_GROUP_T", schema = "ACC_DBA", catalog = "")
public class AccGroupTEntity {
private String group_No;
private String user_Code;
private Time import_Time;
private String deal_Flag;
private Byte valid_Count;
private Byte invalid_Count;
private Time submit_Date;
private String submit_Code;
@Id
@Column(name = "GROUP_NO", nullable = false, length = 10)
public String getGroup_No() {
return group_No;
}
public void setGroup_No(String group_No) {
this.group_No = group_No;
}
@Basic
@Column(name = "USER_CODE", nullable = true, length = 8)
public String getUser_Code() {
return user_Code;
}
public void setUser_Code(String user_Code) {
this.user_Code = user_Code;
}
@Basic
@Column(name = "IMPORT_TIME", nullable = true)
public Time getImport_Time() {
return import_Time;
}
public void setImport_Time(Time import_Time) {
this.import_Time = import_Time;
}
@Basic
@Column(name = "DEAL_FLAG", nullable = false, length = 1)
public String getDeal_Flag() {
return deal_Flag;
}
public void setDeal_Flag(String deal_Flag) {
this.deal_Flag = deal_Flag;
}
@Basic
@Column(name = "VALID_COUNT", nullable = true, precision = 0)
public Byte getValid_Count() {
return valid_Count;
}
public void setValid_Count(Byte valid_Count) {
this.valid_Count = valid_Count;
}
@Basic
@Column(name = "INVALID_COUNT", nullable = true, precision = 0)
public Byte getInvalid_Count() {
return invalid_Count;
}
public void setInvalid_Count(Byte invalid_Count) {
this.invalid_Count = invalid_Count;
}
@Basic
@Column(name = "SUBMIT_DATE", nullable = true)
public Time getSubmit_Date() {
return submit_Date;
}
public void setSubmit_Date(Time submit_Date) {
this.submit_Date = submit_Date;
}
@Basic
@Column(name = "SUBMIT_CODE", nullable = true, length = 8)
public String getSubmit_Code() {
return submit_Code;
}
public void setSubmit_Code(String submit_Code) {
this.submit_Code = submit_Code;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AccGroupTEntity that = (AccGroupTEntity) o;
return Objects.equals(group_No, that.group_No) &&
Objects.equals(user_Code, that.user_Code) &&
Objects.equals(import_Time, that.import_Time) &&
Objects.equals(deal_Flag, that.deal_Flag) &&
Objects.equals(valid_Count, that.valid_Count) &&
Objects.equals(invalid_Count, that.invalid_Count) &&
Objects.equals(submit_Date, that.submit_Date) &&
Objects.equals(submit_Code, that.submit_Code);
}
@Override
public int hashCode() {
return Objects.hash(group_No, user_Code, import_Time, deal_Flag, valid_Count, invalid_Count, submit_Date, submit_Code);
}
}
package com.yxproject.start.entity.prod;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "PROD_APPLY_INFO_T", schema = "PROD_DBA", catalog = "")
public class ProdApplyInfoTEntity {
private String upload_No;
private String accept_No;
private String make_Type;
private String apply_Name;
private String apply_Phone;
private String apply_Postcode;
private String apply_Address;
private String draw_Type;
private String province_No;
@Basic
@Column(name = "UPLOAD_NO", nullable = false, length = 22)
public String getUpload_No() {
return upload_No;
}
public void setUpload_No(String upload_No) {
this.upload_No = upload_No;
}
@Id
@Column(name = "ACCEPT_NO", nullable = false, length = 12)
public String getAccept_No() {
return accept_No;
}
public void setAccept_No(String accept_No) {
this.accept_No = accept_No;
}
@Basic
@Column(name = "MAKE_TYPE", nullable = true, length = 1)
public String getMake_Type() {
return make_Type;
}
public void setMake_Type(String make_Type) {
this.make_Type = make_Type;
}
@Basic
@Column(name = "APPLY_NAME", nullable = true, length = 45)
public String getApply_Name() {
return apply_Name;
}
public void setApply_Name(String apply_Name) {
this.apply_Name = apply_Name;
}
@Basic
@Column(name = "APPLY_PHONE", nullable = true, length = 20)
public String getApply_Phone() {
return apply_Phone;
}
public void setApply_Phone(String apply_Phone) {
this.apply_Phone = apply_Phone;
}
@Basic
@Column(name = "APPLY_POSTCODE", nullable = true, length = 6)
public String getApply_Postcode() {
return apply_Postcode;
}
public void setApply_Postcode(String apply_Postcode) {
this.apply_Postcode = apply_Postcode;
}
@Basic
@Column(name = "APPLY_ADDRESS", nullable = true, length = 105)
public String getApply_Address() {
return apply_Address;
}
public void setApply_Address(String apply_Address) {
this.apply_Address = apply_Address;
}
@Basic
@Column(name = "DRAW_TYPE", nullable = false, length = 2)
public String getDraw_Type() {
return draw_Type;
}
public void setDraw_Type(String draw_Type) {
this.draw_Type = draw_Type;
}
@Basic
@Column(name = "PROVINCE_NO", nullable = true, length = 6)
public String getProvince_No() {
return province_No;
}
public void setProvince_No(String province_No) {
this.province_No = province_No;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ProdApplyInfoTEntity that = (ProdApplyInfoTEntity) o;
return Objects.equals(upload_No, that.upload_No) &&
Objects.equals(accept_No, that.accept_No) &&
Objects.equals(make_Type, that.make_Type) &&
Objects.equals(apply_Name, that.apply_Name) &&
Objects.equals(apply_Phone, that.apply_Phone) &&
Objects.equals(apply_Postcode, that.apply_Postcode) &&
Objects.equals(apply_Address, that.apply_Address) &&
Objects.equals(draw_Type, that.draw_Type) &&
Objects.equals(province_No, that.province_No);
}
@Override
public int hashCode() {
return Objects.hash(upload_No, accept_No, make_Type, apply_Name, apply_Phone, apply_Postcode, apply_Address, draw_Type, province_No);
}
}
package com.yxproject.start.entity.prod;
import com.yxproject.start.entity.accu.AccCardTEntity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "PROD_CARD_T", schema = "PROD_DBA", catalog = "")
public class ProdCardTEntity {
private String upload_No;
private String accept_No;
private String photo_No;
private String name;
private String sex_No;
private String nation_No;
private String birthday;
private String id_No;
private String addr1;
private String addr2;
private String addr3;
private String address1;
private String sign_Govt;
private String expire_Date;
private String begin_Date;
private String apply_Reason;
private String status_No;
@Basic
@Column(name = "UPLOAD_NO", nullable = false, length = 22)
public String getUpload_No() {
return upload_No;
}
public void setUpload_No(String upload_No) {
this.upload_No = upload_No;
}
@Id
@Column(name = "ACCEPT_NO", nullable = false, length = 12)
public String getAccept_No() {
return accept_No;
}
public void setAccept_No(String accept_No) {
this.accept_No = accept_No;
}
@Basic
@Column(name = "PHOTO_NO", nullable = true, length = 12)
public String getPhoto_No() {
return photo_No;
}
public void setPhoto_No(String photo_No) {
this.photo_No = photo_No;
}
@Basic
@Column(name = "NAME", nullable = false, length = 45)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "SEX_NO", nullable = false, length = 1)
public String getSex_No() {
return sex_No;
}
public void setSex_No(String sex_No) {
this.sex_No = sex_No;
}
@Basic
@Column(name = "NATION_NO", nullable = false, length = 2)
public String getNation_No() {
return nation_No;
}
public void setNation_No(String nation_No) {
this.nation_No = nation_No;
}
@Basic
@Column(name = "BIRTHDAY", nullable = false, length = 8)
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
@Basic
@Column(name = "ID_NO", nullable = false, length = 18)
public String getId_No() {
return id_No;
}
public void setId_No(String id_No) {
this.id_No = id_No;
}
@Basic
@Column(name = "ADDR1", nullable = false, length = 36)
public String getAddr1() {
return addr1;
}
public void setAddr1(String addr1) {
this.addr1 = addr1;
}
@Basic
@Column(name = "ADDR2", nullable = true, length = 36)
public String getAddr2() {
return addr2;
}
public void setAddr2(String addr2) {
this.addr2 = addr2;
}
@Basic
@Column(name = "ADDR3", nullable = true, length = 36)
public String getAddr3() {
return addr3;
}
public void setAddr3(String addr3) {
this.addr3 = addr3;
}
@Basic
@Column(name = "ADDRESS1", nullable = true, length = 105)
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
this.address1 = address1;
}
@Basic
@Column(name = "SIGN_GOVT", nullable = false, length = 45)
public String getSign_Govt() {
return sign_Govt;
}
public void setSign_Govt(String sign_Govt) {
this.sign_Govt = sign_Govt;
}
@Basic
@Column(name = "EXPIRE_DATE", nullable = false, length = 8)
public String getExpire_Date() {
return expire_Date;
}
public void setExpire_Date(String expire_Date) {
this.expire_Date = expire_Date;
}
@Basic
@Column(name = "BEGIN_DATE", nullable = false, length = 8)
public String getBegin_Date() {
return begin_Date;
}
public void setBegin_Date(String begin_Date) {
this.begin_Date = begin_Date;
}
@Basic
@Column(name = "APPLY_REASON", nullable = false, length = 2)
public String getApply_Reason() {
return apply_Reason;
}
public void setApply_Reason(String apply_Reason) {
this.apply_Reason = apply_Reason;
}
@Basic
@Column(name = "STATUS_NO", nullable = true, length = 1)
public String getStatus_No() {
return status_No;
}
public void setStatus_No(String status_No) {
this.status_No = status_No;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AccCardTEntity that = (AccCardTEntity) o;
return Objects.equals(upload_No, this.upload_No) &&
Objects.equals(accept_No, this.accept_No) &&
Objects.equals(photo_No, this.photo_No) &&
Objects.equals(name, this.name) &&
Objects.equals(sex_No, this.sex_No) &&
Objects.equals(nation_No, this.nation_No) &&
Objects.equals(birthday, this.birthday) &&
Objects.equals(id_No, this.id_No) &&
Objects.equals(addr1, this.addr1) &&
Objects.equals(addr2, this.addr2) &&
Objects.equals(addr3, this.addr3) &&
Objects.equals(address1, this.address1) &&
Objects.equals(sign_Govt, this.sign_Govt) &&
Objects.equals(expire_Date, this.expire_Date) &&
Objects.equals(begin_Date, this.begin_Date) &&
Objects.equals(apply_Reason, this.apply_Reason) &&
Objects.equals(status_No, this.status_No);
}
@Override
public int hashCode() {
return Objects.hash(upload_No, accept_No, photo_No, name, sex_No, nation_No, birthday, id_No, addr1, addr2, addr3, address1, sign_Govt, expire_Date, begin_Date, apply_Reason, status_No);
}
}
package com.yxproject.start.entity.prod;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "PROD_GROUP_T", schema = "PROD_DBA", catalog = "")
public class ProdGroupTEntity {
private String group_No;
private Byte valid_Count;
private Byte invalid_Count;
private Time submit_Date;
private String submit_Code;
private Time export_Date;
private String export_Code;
private String download_Flag;
private Byte download_Count;
private Time download_Date;
private String ewrite_Flag;
private Byte ewrite_Count;
private Time ewrite_Date;
private String check_Flag;
private Byte check_Count;
private Time check_Date;
private String send_Flag;
private Byte send_Count;
private Time send_Date;
private String move_Flag;
private Byte move_Count;
private Time move_Date;
@Id
@Column(name = "GROUP_NO", nullable = false, length = 10)
public String getGroup_No() {
return group_No;
}
public void setGroup_No(String group_No) {
this.group_No = group_No;
}
@Basic
@Column(name = "VALID_COUNT", nullable = true, precision = 0)
public Byte getValid_Count() {
return valid_Count;
}
public void setValid_Count(Byte valid_Count) {
this.valid_Count = valid_Count;
}
@Basic
@Column(name = "INVALID_COUNT", nullable = true, precision = 0)
public Byte getInvalid_Count() {
return invalid_Count;
}
public void setInvalid_Count(Byte invalid_Count) {
this.invalid_Count = invalid_Count;
}
@Basic
@Column(name = "SUBMIT_DATE", nullable = true)
public Time getSubmit_Date() {
return submit_Date;
}
public void setSubmit_Date(Time submit_Date) {
this.submit_Date = submit_Date;
}
@Basic
@Column(name = "SUBMIT_CODE", nullable = true, length = 8)
public String getSubmit_Code() {
return submit_Code;
}
public void setSubmit_Code(String submit_Code) {
this.submit_Code = submit_Code;
}
@Basic
@Column(name = "EXPORT_DATE", nullable = true)
public Time getExport_Date() {
return export_Date;
}
public void setExport_Date(Time export_Date) {
this.export_Date = export_Date;
}
@Basic
@Column(name = "EXPORT_CODE", nullable = true, length = 8)
public String getExport_Code() {
return export_Code;
}
public void setExport_Code(String export_Code) {
this.export_Code = export_Code;
}
@Basic
@Column(name = "DOWNLOAD_FLAG", nullable = true, length = 1)
public String getDownload_Flag() {
return download_Flag;
}
public void setDownload_Flag(String download_Flag) {
this.download_Flag = download_Flag;
}
@Basic
@Column(name = "DOWNLOAD_COUNT", nullable = true, precision = 0)
public Byte getDownload_Count() {
return download_Count;
}
public void setDownload_Count(Byte download_Count) {
this.download_Count = download_Count;
}
@Basic
@Column(name = "DOWNLOAD_DATE", nullable = true)
public Time getDownload_Date() {
return download_Date;
}
public void setDownload_Date(Time download_Date) {
this.download_Date = download_Date;
}
@Basic
@Column(name = "EWRITE_FLAG", nullable = true, length = 1)
public String getEwrite_Flag() {
return ewrite_Flag;
}
public void setEwrite_Flag(String ewrite_Flag) {
this.ewrite_Flag = ewrite_Flag;
}
@Basic
@Column(name = "EWRITE_COUNT", nullable = true, precision = 0)
public Byte getEwrite_Count() {
return ewrite_Count;
}
public void setEwrite_Count(Byte ewrite_Count) {
this.ewrite_Count = ewrite_Count;
}
@Basic
@Column(name = "EWRITE_DATE", nullable = true)
public Time getEwrite_Date() {
return ewrite_Date;
}
public void setEwrite_Date(Time ewrite_Date) {
this.ewrite_Date = ewrite_Date;
}
@Basic
@Column(name = "CHECK_FLAG", nullable = true, length = 1)
public String getCheck_Flag() {
return check_Flag;
}
public void setCheck_Flag(String check_Flag) {
this.check_Flag = check_Flag;
}
@Basic
@Column(name = "CHECK_COUNT", nullable = true, precision = 0)
public Byte getCheck_Count() {
return check_Count;
}
public void setCheck_Count(Byte check_Count) {
this.check_Count = check_Count;
}
@Basic
@Column(name = "CHECK_DATE", nullable = true)
public Time getCheck_Date() {
return check_Date;
}
public void setCheck_Date(Time check_Date) {
this.check_Date = check_Date;
}
@Basic
@Column(name = "SEND_FLAG", nullable = true, length = 1)
public String getSend_Flag() {
return send_Flag;
}
public void setSend_Flag(String send_Flag) {
this.send_Flag = send_Flag;
}
@Basic
@Column(name = "SEND_COUNT", nullable = true, precision = 0)
public Byte getSend_Count() {
return send_Count;
}
public void setSend_Count(Byte send_Count) {
this.send_Count = send_Count;
}
@Basic
@Column(name = "SEND_DATE", nullable = true)
public Time getSend_Date() {
return send_Date;
}
public void setSend_Date(Time send_Date) {
this.send_Date = send_Date;
}
@Basic
@Column(name = "MOVE_FLAG", nullable = true, length = 1)
public String getMove_Flag() {
return move_Flag;
}
public void setMove_Flag(String move_Flag) {
this.move_Flag = move_Flag;
}
@Basic
@Column(name = "MOVE_COUNT", nullable = true, precision = 0)
public Byte getMove_Count() {
return move_Count;
}
public void setMove_Count(Byte move_Count) {
this.move_Count = move_Count;
}
@Basic
@Column(name = "MOVE_DATE", nullable = true)
public Time getMove_Date() {
return move_Date;
}
public void setMove_Date(Time move_Date) {
this.move_Date = move_Date;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ProdGroupTEntity that = (ProdGroupTEntity) o;
return Objects.equals(group_No, that.group_No) &&
Objects.equals(valid_Count, that.valid_Count) &&
Objects.equals(invalid_Count, that.invalid_Count) &&
Objects.equals(submit_Date, that.submit_Date) &&
Objects.equals(submit_Code, that.submit_Code) &&
Objects.equals(export_Date, that.export_Date) &&
Objects.equals(export_Code, that.export_Code) &&
Objects.equals(download_Flag, that.download_Flag) &&
Objects.equals(download_Count, that.download_Count) &&
Objects.equals(download_Date, that.download_Date) &&
Objects.equals(ewrite_Flag, that.ewrite_Flag) &&
Objects.equals(ewrite_Count, that.ewrite_Count) &&
Objects.equals(ewrite_Date, that.ewrite_Date) &&
Objects.equals(check_Flag, that.check_Flag) &&
Objects.equals(check_Count, that.check_Count) &&
Objects.equals(check_Date, that.check_Date) &&
Objects.equals(send_Flag, that.send_Flag) &&
Objects.equals(send_Count, that.send_Count) &&
Objects.equals(send_Date, that.send_Date) &&
Objects.equals(move_Flag, that.move_Flag) &&
Objects.equals(move_Count, that.move_Count) &&
Objects.equals(move_Date, that.move_Date);
}
@Override
public int hashCode() {
return Objects.hash(group_No, valid_Count, invalid_Count, submit_Date, submit_Code, export_Date, export_Code, download_Flag, download_Count, download_Date, ewrite_Flag, ewrite_Count, ewrite_Date, check_Flag, check_Count, check_Date, send_Flag, send_Count, send_Date, move_Flag, move_Count, move_Date);
}
}
package com.yxproject.start.entity.prod;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "PROD_TRACE_T", schema = "PROD_DBA", catalog = "")
public class ProdTraceTEntity {
private String accept_No;
private String photoer_No;
private Time photo_Date;
private String export_No;
private Time export_Date;
private String download_No;
private Time download_Date;
private String electric_Writer_No;
private Time electric_Write_Date;
private String checker_No;
private Time check_Date;
private String mover_No;
private Time move_Date;
@Id
@Column(name = "ACCEPT_NO", nullable = false, length = 12)
public String getAccept_No() {
return accept_No;
}
public void setAccept_No(String accept_No) {
this.accept_No = accept_No;
}
@Basic
@Column(name = "PHOTOER_NO", nullable = true, length = 8)
public String getPhotoer_No() {
return photoer_No;
}
public void setPhotoer_No(String photoer_No) {
this.photoer_No = photoer_No;
}
@Basic
@Column(name = "PHOTO_DATE", nullable = true)
public Time getPhoto_Date() {
return photo_Date;
}
public void setPhoto_Date(Time photo_Date) {
this.photo_Date = photo_Date;
}
@Basic
@Column(name = "EXPORT_NO", nullable = true, length = 8)
public String getExport_No() {
return export_No;
}
public void setExport_No(String export_No) {
this.export_No = export_No;
}
@Basic
@Column(name = "EXPORT_DATE", nullable = true)
public Time getExport_Date() {
return export_Date;
}
public void setExport_Date(Time export_Date) {
this.export_Date = export_Date;
}
@Basic
@Column(name = "DOWNLOAD_NO", nullable = true, length = 8)
public String getDownload_No() {
return download_No;
}
public void setDownload_No(String download_No) {
this.download_No = download_No;
}
@Basic
@Column(name = "DOWNLOAD_DATE", nullable = true)
public Time getDownload_Date() {
return download_Date;
}
public void setDownload_Date(Time download_Date) {
this.download_Date = download_Date;
}
@Basic
@Column(name = "ELECTRIC_WRITER_NO", nullable = true, length = 8)
public String getElectric_Writer_No() {
return electric_Writer_No;
}
public void setElectric_Writer_No(String electric_Writer_No) {
this.electric_Writer_No = electric_Writer_No;
}
@Basic
@Column(name = "ELECTRIC_WRITE_DATE", nullable = true)
public Time getElectric_Write_Date() {
return electric_Write_Date;
}
public void setElectric_Write_Date(Time electric_Write_Date) {
this.electric_Write_Date = electric_Write_Date;
}
@Basic
@Column(name = "CHECKER_NO", nullable = true, length = 8)
public String getChecker_No() {
return checker_No;
}
public void setChecker_No(String checker_No) {
this.checker_No = checker_No;
}
@Basic
@Column(name = "CHECK_DATE", nullable = true)
public Time getCheck_Date() {
return check_Date;
}
public void setCheck_Date(Time check_Date) {
this.check_Date = check_Date;
}
@Basic
@Column(name = "MOVER_NO", nullable = true, length = 8)
public String getMover_No() {
return mover_No;
}
public void setMover_No(String mover_No) {
this.mover_No = mover_No;
}
@Basic
@Column(name = "MOVE_DATE", nullable = true)
public Time getMove_Date() {
return move_Date;
}
public void setMove_Date(Time move_Date) {
this.move_Date = move_Date;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ProdTraceTEntity that = (ProdTraceTEntity) o;
return Objects.equals(accept_No, that.accept_No) &&
Objects.equals(photoer_No, that.photoer_No) &&
Objects.equals(photo_Date, that.photo_Date) &&
Objects.equals(export_No, that.export_No) &&
Objects.equals(export_Date, that.export_Date) &&
Objects.equals(download_No, that.download_No) &&
Objects.equals(download_Date, that.download_Date) &&
Objects.equals(electric_Writer_No, that.electric_Writer_No) &&
Objects.equals(electric_Write_Date, that.electric_Write_Date) &&
Objects.equals(checker_No, that.checker_No) &&
Objects.equals(check_Date, that.check_Date) &&
Objects.equals(mover_No, that.mover_No) &&
Objects.equals(move_Date, that.move_Date);
}
@Override
public int hashCode() {
return Objects.hash(accept_No, photoer_No, photo_Date, export_No, export_Date, download_No, download_Date, electric_Writer_No, electric_Write_Date, checker_No, check_Date, mover_No, move_Date);
}
}
package com.yxproject.start.mapper;
import com.yxproject.start.entity.accu.AccCardTEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;
/**
* Created by zhangyusheng on 2018/10/23 10:34
*/
@Mapper
public interface AccCardTMapper {
public List<AccCardTEntity> findAccCardTEntityByCardIdOrAcceptNo(String acceptNo);
public List<Map<String,Object>> findAccGroupTEntityByCardIdOrAcceptNo(String acceptNo);
public List<Map<String,Object>> findAccGroupTEntityByCardIdOrDealDate(String dealDate);
}
package com.yxproject.start.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* Created by zhangyusheng on 2018/10/23 10:35
*/
@Mapper
public interface AccGroupRelationTMapper {
}
package com.yxproject.start.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* Created by zhangyusheng on 2018/10/23 10:36
*/
@Mapper
public interface AccGroupTMapper {
}
package com.yxproject.start.mapper;
import com.yxproject.start.entity.GroupinfoEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* Created by zhangyusheng on 2018/10/13 9:36
*/
@Mapper
public interface GroupinfoMapper {
public int insertGroupinfoEntity(GroupinfoEntity groupinfoEntity);
public List<GroupinfoEntity> findGroupinfoEntityByAcceptNo(String acceptNo);
public int updateGroupinfoEntity(GroupinfoEntity groupinfoEntity);
}
package com.yxproject.start.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* Created by zhangyusheng on 2018/10/23 10:42
*/
@Mapper
public interface ProdApplyInfoMapper {
}
package com.yxproject.start.mapper;
import com.yxproject.start.entity.ProductionTaskListEntity;
import com.yxproject.start.entity.prod.ProdCardTEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import java.util.List;
/**
* Created by zhangyusheng on 2018/10/23 10:43
*/
@Mapper
public interface ProdCardTMapper {
@SelectProvider(type=com.yxproject.start.SqlProvider.SqlProvider.class,method="findCardInfoByCardIDOrAcceptNoAtPRODSql")
List<ProdCardTEntity> findCardInfo(String card);
}
package com.yxproject.start.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* Created by zhangyusheng on 2018/10/23 10:43
*/
@Mapper
public interface ProdGroupTMapper {
}
package com.yxproject.start.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* Created by zhangyusheng on 2018/10/23 10:44
*/
@Mapper
public interface ProdTraceTMapper {
}
package com.yxproject.start.mapper;
import com.yxproject.start.entity.ProductionTaskListEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.UpdateProvider;
import java.util.List;
/**
* Created by zhangyusheng on 2018/10/13 9:36
*/
@Mapper
public interface ProductionTaskListMapper {
public List<ProductionTaskListEntity> findProductionTaskListEntity(String id);
public int insertProductionTaskListEntity(ProductionTaskListEntity productionTaskListEntity);
public int updateProductionTask(ProductionTaskListEntity productionTaskListEntity);
public List<ProductionTaskListEntity> findProductionTaskListEntityByAcceptNo(String acceptNo);
}
package com.yxproject.start.mapper;
import com.yxproject.start.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @author zhangyusheng
*/
@Mapper
public interface UtilMapper {
/**
* 查询任务单序列值
*/
public int findProductionTaskListSequenceNextValue();
/**
* 查询组号信息序列值
*/
public int findGroupInfoSequenceNextValue();
}
package com.yxproject.start.service;
import com.yxproject.start.entity.GroupinfoEntity;
import com.yxproject.start.entity.ProductionTaskListEntity;
import java.util.List;
public interface ProductionTaskListService {
public List<ProductionTaskListEntity> findProductionTaskListEntityByID(String id);
public int updateProductionTask(ProductionTaskListEntity map);
public int addProductionTaskListEntity(ProductionTaskListEntity productionTaskListEntity, List<GroupinfoEntity> groupinfoEntities);
public int addQuickCyclesheetInfo(String acceptNo);
public List<Object> findCardInfoByCardIDOrAcceptNo(String cardInfo);
public List<Object> findAccuProductionInfo(String importDate);
}
package com.yxproject.start.service;
public interface UtilService {
public int findProductionTaskListSequenceNextValue();
public int findGroupInfoSequenceNextValue();
}
package com.yxproject.start.service.impl;
import com.yxproject.start.mapper.UtilMapper;
import com.yxproject.start.service.UtilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @author Administrator
*/
@Service
public class UtilServiceImpl implements UtilService {
@Autowired
public UtilMapper utilMapper;
@Override
public int findProductionTaskListSequenceNextValue() {
return utilMapper.findProductionTaskListSequenceNextValue();
}
@Override
public int findGroupInfoSequenceNextValue() {
return utilMapper.findGroupInfoSequenceNextValue();
}
}
package com.yxproject.start.utils;
public class DatabaseContextHolder {
private static final ThreadLocal<DatabaseType> contextHolder = new ThreadLocal<>();
public static void setDatabaseType(DatabaseType type){
contextHolder.set(type);
}
public static DatabaseType getDatabaseType(){
return contextHolder.get();
}
}
package com.yxproject.start.utils;
/**
* 列出所有的数据源key(常用数据库名称来命名)
*/
public enum DatabaseType {
mytestdb,mytestdb2
}
package com.yxproject.start.utils;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
public class DynamicDataSource extends AbstractRoutingDataSource {
@Override
protected Object determineCurrentLookupKey() {
return DatabaseContextHolder.getDatabaseType();
}
}
package com.yxproject.start.utils;
import net.sf.json.JSON;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.omg.CORBA.Any;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by yuzhanyang on 17/6/8.
*/
public class YXJSONResponse {
private long ServerProcessingDur = 0;
private long start_stamp;
private long ServerProcessingFinishStamp = 0;
public boolean Error = false;
public String ReturnCode = "PASS";
private String ReturnMsg = "PASS_DESC";
public JSON RespData = null;
/**
* 构造方法 设定返回值对象的开始时间戳
*/
public YXJSONResponse() {
this.start_stamp = System.currentTimeMillis();
}
/**
* 返回一个只有起止时间的空返回值对象
* @return 返回值对象
*/
public YXJSONResponse outPutSuccess() {
this.ServerProcessingFinishStamp = System.currentTimeMillis();
this.ServerProcessingDur = this.ServerProcessingFinishStamp - this.start_stamp;
this.Error = false;
return this;
}
/**
* 通过map设定返回JSON
* @param dataMap map类型的返回值
* @return 返回值对象
*/
public YXJSONResponse outPutSuccess(Map dataMap) {
this.ServerProcessingFinishStamp = System.currentTimeMillis();
this.ServerProcessingDur = this.ServerProcessingFinishStamp - this.start_stamp;
this.Error = false;
this.RespData = JSONObject.fromObject(dataMap);
return this;
}
/**
* 通过list设定返回JSON
* @param dataList list类型的返回值
* @return 返回值对象
*/
public YXJSONResponse outPutSuccess(List dataList) {
this.ServerProcessingFinishStamp = System.currentTimeMillis();
this.ServerProcessingDur = this.ServerProcessingFinishStamp - this.start_stamp;
this.Error = false;
this.RespData = JSONArray.fromObject(dataList);
return this;
}
/**
* 通过json设定返回值
* @param json json类型的返回值
* @return 返回值对象
*/
public YXJSONResponse outPutSuccessJSON(JSON json) {
this.ServerProcessingFinishStamp = System.currentTimeMillis();
this.ServerProcessingDur = this.ServerProcessingFinishStamp - this.start_stamp;
this.Error = false;
this.RespData = json;
return this;
}
/**
* 通过String设定返回值
* @param string String类型的返回值
* @return 返回值对象
*/
public YXJSONResponse outPutSuccess(String string) {
this.ServerProcessingFinishStamp = System.currentTimeMillis();
this.ServerProcessingDur = this.ServerProcessingFinishStamp - this.start_stamp;
this.Error = false;
HashMap map = new HashMap<String, Any>();
map.put("string", string);
this.RespData = JSONObject.fromObject(map);
return this;
}
/**
* 设定出错返回值
* @param returnCode 错误码
* @param returnMsg 错误信息
* @return 返回值对象
*/
public YXJSONResponse outPutError(String returnCode, String returnMsg) {
this.ServerProcessingFinishStamp = System.currentTimeMillis();
this.ServerProcessingDur = this.ServerProcessingFinishStamp - this.start_stamp;
this.ReturnCode = returnCode;
this.ReturnMsg = returnMsg;
this.Error = true;
return this;
}
private JSONObject toJSON() {
HashMap map = new HashMap<String, Any>();
map.put("ServerProcessingDur", this.ServerProcessingDur);
map.put("ServerProcessingFinishStamp", this.ServerProcessingFinishStamp);
map.put("ReturnCode", this.ReturnCode);
map.put("ReturnMsg", this.ReturnMsg);
map.put("Error", this.Error);
map.put("respData", this.RespData);
return JSONObject.fromObject(map);
}
public String toJSONString() {
return this.toJSON().toString();
}
}
package com.yxproject.start.utils;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;
public class encryptUtil {
private static final String ALGORITHM_NAME = "MD5";
private static final Integer HASH_ITERATIONS = 1024;
/**
* Md5加盐加密
* 加盐加密的策略非常多,根据实际业务来
*/
public static String entryptPassword(String password,String salt) {
// String salt = UUID.randomUUID().toString();
Object md5Password = new SimpleHash(ALGORITHM_NAME, password, ByteSource.Util.bytes(salt), HASH_ITERATIONS);
return md5Password.toString();
}
}
#spring集成Mybatis环境
mybatis.type-aliases-package=com.yx_project.start.entity
#加载Mybatis配置文件
#mybatis.mapper-locations = classpath:mapper/*Mapper.xml
#mybatis.config-location = classpath:mapper/config/mybatis-config.xml
mybatis.mapper-locations = classpath:mapper/*Mapper.xml
mybatis.config-location = classpath:mapper/config/mybatis-config.xml
#配置数据库
#配置调度生产库数据库
spring.datasource.driver-class-name= oracle.jdbc.driver.OracleDriver
spring.datasource.url = jdbc:oracle:thin:@192.168.10.208:1521:GTYX
spring.datasource.username = dahai
......@@ -18,12 +17,50 @@ spring.datasource.password = dahai
#spring.datasource.username = root
#spring.datasource.password = root
##配置调度生产库数据库
#spring.01.datasource.driver-class-name= oracle.jdbc.driver.OracleDriver
#spring.01.datasource.url = jdbc:oracle:thin:@192.168.10.208:1521:GTYX
#spring.01.datasource.username = dahai
#spring.01.datasource.password = dahai
#
##配置受理库数据库
#spring.02.datasource.driver-class-name= oracle.jdbc.driver.OracleDriver
#spring.02.datasource.url = jdbc:oracle:thin:@192.168.10.208:1521:GTYX
#spring.02.datasource.username = dahai
#spring.02.datasource.password = dahai
#
##配置制证库数据库
#spring.03.datasource.driver-class-name= oracle.jdbc.driver.OracleDriver
#spring.03.datasource.url = jdbc:oracle:thin:@192.168.10.208:1521:GTYX
#spring.03.datasource.username = dahai
#spring.03.datasource.password = dahai
#自动根据实体类生成数据库表
spring.jpa.hibernate.ddl-auto= update
#spring.jpa.hibernate.ddl-auto= update
spring.jpa.show-sql=true
##jsp 支持
#spring.mvc.view.suffix=.jsp
#spring.mvc.view.prefix=/WEB-INF/jsp/
# thymeleaf
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=HTML
spring.thymeleaf.encoding=UTF-8
## 多数据源配置
#slave.datasource.names=test,test1
#slave.datasource.test.driverClassName =oracle.jdbc.driver.OracleDriver
#slave.datasource.test.url=jdbc:oracle:thin:@192.168.10.208:1521:GTYX
#slave.datasource.test.username=dahai
#slave.datasource.test.password=dahai
## test1
#slave.datasource.test1.driverClassName =oracle.jdbc.driver.OracleDriver
#slave.datasource.test1.url=jdbc:oracle:thin:@192.168.10.208:1521:GTYX
#slave.datasource.test1.username=dahai
#slave.datasource.test1.password=dahai
<?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.yxproject.start.mapper.AccCardTMapper">
<resultMap id="AccCardTMapper" type="com.yxproject.start.entity.accu.AccCardTEntity">
<id column="ACCEPT_NO" property="acceptNo" jdbcType="VARCHAR"/>
<result column="UPLOAD_NO" property="uploadNo" jdbcType="VARCHAR"/>
<result column="PHOTO_NO" property="photoNo" jdbcType="CHAR"/>
<result column="NAME" property="name" jdbcType="VARCHAR"/>
<result column="SEX_NO" property="sexNo" jdbcType="CHAR"/>
<result column="NATION_NO" property="nationNo" jdbcType="CHAR"/>
<result column="BIRTHDAY" property="birthday" jdbcType="CHAR"/>
<result column="ID_NO" property="idNo" jdbcType="VARCHAR"/>
<result column="ADDR1" property="addr1" jdbcType="VARCHAR"/>
<result column="ADDR2" property="addr2" jdbcType="VARCHAR"/>
<result column="ADDR3" property="addr3" jdbcType="VARCHAR"/>
<result column="ADDRESS1" property="address1" jdbcType="VARCHAR"/>
<result column="SIGN_GOVT" property="signGovt" jdbcType="VARCHAR"/>
<result column="EXPIRE_DATE" property="expireDate" jdbcType="CHAR"/>
<result column="BEGIN_DATE" property="beginDate" jdbcType="CHAR"/>
<result column="APPLY_REASON" property="applyReason" jdbcType="CHAR"/>
<result column="STATUS_NO" property="statusNo" jdbcType="CHAR"/>
</resultMap>
<select id="findAccCardTEntityByCardIdOrAcceptNo" resultType="com.yxproject.start.entity.accu.AccCardTEntity" parameterType="String">
select * from acc_card_t@ACCU_DBLINK WHERE ACCEPT_NO LIKE #{acceptNo} or ID_NO = #{acceptNo}
</select>
<select id="findAccGroupTEntityByCardIdOrDealDate" resultType="java.util.HashMap" parameterType="String">
SELECT ACC_GROUP_T.GROUP_NO,ACC_GROUP_RELATION_T.DEAL_DATE,ACC_GROUP_T.DEAL_FLAG,substr(ACC_GROUP_RELATION_T.ORIGINAL_NO,0,6),CITYINFO.CITYNAME,decode(substr(ACC_GROUP_RELATION_T.ORIGINAL_NO,0,6),'419900',6,substr(ACC_GROUP_RELATION_T.ORIGINAL_NO,21,1)),MAKETYPE_DIC.CARDTYPE,ACC_GROUP_T.INVALID_COUNT,ACC_GROUP_T.VALID_COUNT
FROM ACC_GROUP_T@ACCU_DBLINK LEFT join ACC_GROUP_RELATION_T@ACCU_DBLINK on ACC_GROUP_T.GROUP_NO = ACC_GROUP_RELATION_T.GROUP_NO
left join CITYINFO on CITYINFO.CITYCODE = substr(ACC_GROUP_RELATION_T.ORIGINAL_NO,0,6)
left join MAKETYPE_DIC on MAKETYPE_DIC.TYPENUM = decode(substr(ACC_GROUP_RELATION_T.ORIGINAL_NO,0,6),'419900',6,substr(ACC_GROUP_RELATION_T.ORIGINAL_NO,21,1))
where ACC_GROUP_RELATION_T.DEAL_DATE =#(dealDate)
and ACC_GROUP_T.group_no not in (select groupinfo.groupno from groupinfo)
</select>
</mapper>
\ No newline at end of file
<?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.yxproject.start.mapper.GroupinfoMapper">
<resultMap id="GroupinfoMapper" type="com.yxproject.start.entity.GroupinfoEntity">
<id column="GROUPID" property="groupid" jdbcType="VARCHAR"/>
<result column="GROUPNO" property="groupno" jdbcType="VARCHAR"/>
<result column="CYCLESHEETID" property="cyclesheetid" jdbcType="VARCHAR"/>
<result column="GROUPTYPE" property="grouptype" jdbcType="NUMERIC"/>
<result column="VAILD_COUNT" property="vaildCount" jdbcType="NUMERIC"/>
<result column="INVALID_COUNT" property="invalidCount" jdbcType="NUMERIC"/>
</resultMap>
<select id="findGroupinfoEntityListByProductionTaskListId" resultType="com.yxproject.start.entity.GroupinfoEntity" parameterType="String">
select * from GROUPINFO where cyclesheetid like #{id}
</select>
<insert id="insertGroupinfoEntity" parameterType="com.yxproject.start.entity.GroupinfoEntity">
Insert into GROUPINFO (GROUPID,GROUPNO,CYCLESHEETID,GROUPTYPE,VAILD_COUNT,INVALID_COUNT) values
(#{groupid}
<if test=" groupno!= null">,#{groupno}</if>
<if test="groupno == null">,null </if>
<if test="grouptype != null">,#{grouptype}</if>
<if test="grouptype == null">,null </if>
<if test="cyclesheetid != null">,#{cyclesheetid}</if>
<if test="cyclesheetid == null">,null </if>
<if test="grouptype != null">,#{grouptype}</if>
<if test="grouptype == null">,null </if>
<if test="vaildCount != null">,#{vaildCount}</if>
<if test="vaildCount == null">,null </if>
<if test="invalidCount != null">,#{invalidCount}</if>
<if test="invalidCount == null">,null </if>)
</insert>
<select id="findGroupinfoEntityByAcceptNo" resultType="com.yxproject.start.entity.GroupinfoEntity" parameterType="String">
select * from GROUPINFO where GROUPNO =#{acceptNo} or GROUPNO =substr(#{acceptNo},0,8)
</select>
<update id="updateGroupinfoEntity" parameterType="com.yxproject.start.entity.GroupinfoEntity">
update GROUPINFO set GROUPID=#{groupid}
<if test="groupno != null">,groupno =#{groupno}</if>
<if test="makeType != null">,MAKE_TYPE =#{makeType}</if>
<if test="cyclesheetid != null">,cyclesheetid =#{cyclesheetid}</if>
<if test="grouptype != null">,grouptype =#{grouptype}</if>
<if test="valid_Count != null">,valid_Count =#{valid_Count}</if>
<if test="invalid_Count != null">,invalid_Count =#{invalid_Count}</if>
where GROUPID=#{groupid}
</update>
<select id="findGroupinfoEntityByAcceptNo" resultType="java.util.HashMap" parameterType="String">
select * from GROUPINFO where GROUPNO =#{acceptNo} or GROUPNO =substr(#{acceptNo},0,8)
</select>
</mapper>
\ No newline at end of file
<?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.yxproject.start.mapper.ProductionTaskListMapper">
<resultMap id="ProductionTaskListMap" type="com.yxproject.start.entity.ProductionTaskListEntity">
<id column="PRODUCTION_TASK_LIST_ID" property="productionTaskListId" jdbcType="VARCHAR"/>
<result column="MAKE_TYPE" property="makeType" jdbcType="NUMERIC"/>
<result column="OLD_MAKE_TYPE" property="oldMakeType" jdbcType="NUMERIC"/>
<result column="CITYCODE" property="citycode" jdbcType="VARCHAR"/>
<result column="WORKSHOP" property="workshop" jdbcType="VARCHAR"/>
<result column="SUBMIT_DATE" property="submitDate" jdbcType="VARCHAR"/>
<result column="HANDOUT_DATE" property="handoutDate" jdbcType="VARCHAR"/>
<result column="IS_PRINT" property="isPrint" jdbcType="NUMERIC"/>
<result column="DOWNLOAD_DATE" property="downloadDate" jdbcType="VARCHAR"/>
<result column="PRINT_OUT" property="printOut" jdbcType="VARCHAR"/>
<result column="PERMANENT_POSITION_DATE" property="permanentPositionDate" jdbcType="VARCHAR"/>
<result column="ROLL_OUT_WORKSHOP_DATE" property="rollOutWorkshopDate" jdbcType="VARCHAR"/>
<result column="QUALITYINSPECTION_NAME" property="qualityinspectionName" jdbcType="VARCHAR"/>
<result column="QUALITYINSPECTION_DATE" property="qualityinspectionDate" jdbcType="VARCHAR"/>
<result column="EXCEPTION_INFORMATION" property="exceptionInformation" jdbcType="VARCHAR"/>
<result column="OUTBOUND_DATE" property="outboundDate" jdbcType="VARCHAR"/>
<result column="PUTINSTORAGE_DATE" property="putinstorageDate" jdbcType="VARCHAR"/>
</resultMap>
<select id="findProductionTaskListEntity" resultType="com.yxproject.start.entity.ProductionTaskListEntity" parameterType="String">
select PRODUCTION_TASK_LIST_ID,MAKE_TYPE,OLD_MAKE_TYPE,CITYCODE,WORKSHOP,SUBMIT_DATE,HANDOUT_DATE,IS_PRINT,DOWNLOAD_DATE,PRINT_OUT,PERMANENT_POSITION_DATE,ROLL_OUT_WORKSHOP_DATE,QUALITYINSPECTION_NAME,QUALITYINSPECTION_DATE,EXCEPTION_INFORMATION,OUTBOUND_DATE,PUTINSTORAGE_DATE from PRODUCTION_TASK_LIST where PRODUCTION_TASK_LIST_ID like #{id}
</select>
<insert id="insertProductionTaskListEntity" parameterType="com.yxproject.start.entity.ProductionTaskListEntity">
Insert into PRODUCTION_TASK_LIST (PRODUCTION_TASK_LIST_ID,MAKE_TYPE,OLD_MAKE_TYPE,CITYCODE,WORKSHOP,SUBMIT_DATE,HANDOUT_DATE,IS_PRINT,DOWNLOAD_DATE,PRINT_OUT,PERMANENT_POSITION_DATE,ROLL_OUT_WORKSHOP_DATE,QUALITYINSPECTION_NAME,QUALITYINSPECTION_DATE,EXCEPTION_INFORMATION,OUTBOUND_DATE,PUTINSTORAGE_DATE)
values (#{productionTaskListId}
<if test="makeType != null">,#{makeType}</if>
<if test="makeType == null">,null </if>
<if test="oldMakeType != null">,#{oldMakeType}</if>
<if test="oldMakeType == null">,null </if>
<if test="citycode != null">,#{citycode}</if>
<if test="citycode == null">,null </if>
<if test="workshop != null">,#{workshop}</if>
<if test="workshop == null">,null </if>
<if test="submitDate != null">,#{submitDate}</if>
<if test="submitDate == null">,null </if>
<if test="handoutDate != null">,#{handoutDate}</if>
<if test="handoutDate == null">,null </if>
<if test="isPrint != null">,#{isPrint}</if>
<if test="isPrint == null">,null </if>
<if test="downloadDate != null">,#{downloadDate}</if>
<if test="downloadDate == null">,null </if>
<if test="printOut != null">,#{printOut}</if>
<if test="printOut == null">,null </if>
<if test="permanentPositionDate != null">,#{permanentPositionDate}</if>
<if test="permanentPositionDate == null">,null </if>
<if test="rollOutWorkshopDate != null">,#{rollOutWorkshopDate}</if>
<if test="rollOutWorkshopDate == null">,null </if>
<if test="qualityinspectionName != null">,#{qualityinspectionName}</if>
<if test="qualityinspectionName == null">,null </if>
<if test="qualityinspectionDate != null">,#{qualityinspectionDate}</if>
<if test="qualityinspectionDate == null">,null </if>
<if test="exceptionInformation != null">,#{exceptionInformation}</if>
<if test="exceptionInformation == null">,null </if>
<if test="outboundDate != null">,#{outboundDate}</if>
<if test="outboundDate == null">,null </if>
<if test="putinstorageDate != null">,#{putinstorageDate}</if>
<if test="putinstorageDate == null">,null </if>)
</insert>
<update id="updateProductionTask" parameterType="com.yxproject.start.entity.ProductionTaskListEntity">
update PRODUCTION_TASK_LIST set PRODUCTION_TASK_LIST_ID=#{productionTaskListId}
<if test="oldMakeType != null">,OLD_MAKE_TYPE =#{oldMakeType}</if>
<if test="makeType != null">,MAKE_TYPE =#{makeType}</if>
<if test="citycode != null">,CITYCODE =#{citycode}</if>
<if test="workshop != null">,WORKSHOP =#{workshop}</if>
<if test="submitDate != null">,SUBMIT_DATE =#{submitDate}</if>
<if test="handoutDate != null">,HANDOUT_DATE =#{handoutDate}</if>
<if test="isPrint != null">,IS_PRINT =#{isPrint}</if>
<if test="downloadDate != null">,DOWNLOAD_DATE =#{downloadDate}</if>
<if test="printOut != null">,PRINT_OUT =#{printOut}</if>
<if test="permanentPositionDate != null">,PERMANENT_POSITION_DATE =#{permanentPositionDate}</if>
<if test="rollOutWorkshopDate != null">,ROLL_OUT_WORKSHOP_DATE =#{rollOutWorkshopDate}</if>
<if test="qualityinspectionName != null">,QUALITYINSPECTION_NAME =#{qualityinspectionName}</if>
<if test="qualityinspectionDate != null">,QUALITYINSPECTION_DATE =#{qualityinspectionDate}</if>
<if test="exceptionInformation != null">,EXCEPTION_INFORMATION =#{exceptionInformation}</if>
<if test="outboundDate != null">,OUTBOUND_DATE =#{outboundDate}</if>
<if test="putinstorageDate != null">,PUTINSTORAGE_DATE =#{putinstorageDate}</if>
where PRODUCTION_TASK_LIST_ID=#{productionTaskListId}
</update>
<select id="findProductionTaskListEntityByAcceptNo" resultType="com.yxproject.start.entity.ProductionTaskListEntity" parameterType="String">
select PRODUCTION_TASK_LIST_ID,MAKE_TYPE,OLD_MAKE_TYPE,CITYCODE,WORKSHOP,SUBMIT_DATE,HANDOUT_DATE,IS_PRINT,DOWNLOAD_DATE,PRINT_OUT,PERMANENT_POSITION_DATE,ROLL_OUT_WORKSHOP_DATE,QUALITYINSPECTION_NAME,QUALITYINSPECTION_DATE,EXCEPTION_INFORMATION,OUTBOUND_DATE,PUTINSTORAGE_DATE from PRODUCTION_TASK_LIST left join GROUPINFO on GROUPINFO.CYCLESHEETID = PRODUCTION_TASK_LIST.PRODUCTION_TASK_LIST_ID where GROUPINFO.GROUPNO =#{acceptNo} or GROUPINFO.GROUPNO =substr (#{acceptNo},0,8)
</select>
</mapper>
\ No newline at end of file
<!--<?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.yxproject.start.mapper.SysPermissionMapper">-->
<!--&lt;!&ndash;<resultMap id="PermissionMap" type="com.yxproject.start.entity.SysPermission">&ndash;&gt;-->
<!--&lt;!&ndash;<id column="id" property="id" />&ndash;&gt;-->
<!--&lt;!&ndash;<result column="name" property="name"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="resource_type" property="resourceType"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="url" property="url"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="permission" property="permission"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="parent_id" property="parentId"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="parent_ids" property="parentIds"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="available" property="available"/>&ndash;&gt;-->
<!--&lt;!&ndash;</resultMap>&ndash;&gt;-->
<?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.yxproject.start.mapper.SysPermissionMapper">
<resultMap id="PermissionMap" type="com.yxproject.start.entity.SysPermission">
<id column="id" property="id" />
<result column="name" property="name"/>
<result column="resource_type" property="resourceType"/>
<result column="url" property="url"/>
<result column="permission" property="permission"/>
<result column="parent_id" property="parentId"/>
<result column="parent_ids" property="parentIds"/>
<result column="available" property="available"/>
</resultMap>
<!--&lt;!&ndash;<insert id="addPermissionByMap" parameterType="com.yxproject.start.entity.SysPermission">&ndash;&gt;-->
<!--&lt;!&ndash;Insert into DAHAI.SYS_PERMISSION (ID,AVAILABLE,NAME,PARENT_ID,PARENT_IDS,PERMISSION,RESOURCE_TYPE,URL) values (PERMISSION_seq.nextval,0,#{name},#{parentId},#{parentIds},#{permission},#{resourceType},#{url})&ndash;&gt;-->
<!--&lt;!&ndash;</insert>&ndash;&gt;-->
<!--</mapper>-->
\ No newline at end of file
<!--<insert id="addPermissionByMap" parameterType="com.yxproject.start.entity.SysPermission">-->
<!--Insert into DAHAI.SYS_PERMISSION (ID,AVAILABLE,NAME,PARENT_ID,PARENT_IDS,PERMISSION,RESOURCE_TYPE,URL) values (PERMISSION_seq.nextval,0,#{name},#{parentId},#{parentIds},#{permission},#{resourceType},#{url})-->
<!--</insert>-->
</mapper>
\ No newline at end of file
<!--<?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.yxproject.start.mapper.UserInfoMapper">-->
<!--&lt;!&ndash;&lt;!&ndash;用户&ndash;&gt;&ndash;&gt;-->
<!--&lt;!&ndash;<resultMap id="UserRoleMenuMap" type="com.yxproject.start.entity.UserInfo">&ndash;&gt;-->
<!--&lt;!&ndash;<id property="uid" column="uid"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="username" property="username"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="password" property="password"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="state" property="state"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="name" property="name"/>&ndash;&gt;-->
<!--&lt;!&ndash;&lt;!&ndash;角色集合&ndash;&gt;&ndash;&gt;-->
<!--&lt;!&ndash;<collection property="roleList" ofType="com.yxproject.start.entity.SysRole">&ndash;&gt;-->
<!--&lt;!&ndash;<id column="id" property="rid" />&ndash;&gt;-->
<!--&lt;!&ndash;<result column="description" property="description"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="role" property="role"/>&ndash;&gt;-->
<!--&lt;!&ndash;&lt;!&ndash;权限集合&ndash;&gt;&ndash;&gt;-->
<!--&lt;!&ndash;<collection property="permissions" ofType="com.yxproject.start.entity.SysPermission">&ndash;&gt;-->
<!--&lt;!&ndash;<id column="id" property="pid" />&ndash;&gt;-->
<!--&lt;!&ndash;<result column="name" property="pname"/>&ndash;&gt;-->
<!--&lt;!&ndash;<result column="url" property="url"/>&ndash;&gt;-->
<!--&lt;!&ndash;</collection>&ndash;&gt;-->
<!--&lt;!&ndash;</collection>&ndash;&gt;-->
<!--&lt;!&ndash;</resultMap>&ndash;&gt;-->
<!--&lt;!&ndash;<select id="findUserByUsername" resultMap="UserRoleMenuMap" parameterType="string">&ndash;&gt;-->
<!--&lt;!&ndash;select user_info.uid,user_info.username,user_info.password,user_info.name,sys_role.id as rid,sys_role.role,sys_role.description,&ndash;&gt;-->
<!--&lt;!&ndash;sys_permission.id as pid,sys_permission.name as pname,sys_permission.url&ndash;&gt;-->
<!--&lt;!&ndash;from user_info&ndash;&gt;-->
<!--&lt;!&ndash;left join sys_user_role on user_info.uid = sys_user_role.uid&ndash;&gt;-->
<!--&lt;!&ndash;left join sys_role on sys_user_role.role_id= sys_role.id&ndash;&gt;-->
<!--&lt;!&ndash;left join sys_role_permission on sys_role.id = sys_role_permission.permission_id&ndash;&gt;-->
<!--&lt;!&ndash;left join sys_permission on sys_role_permission.permission_id = sys_permission.id&ndash;&gt;-->
<!--&lt;!&ndash;where username=#{username}&ndash;&gt;-->
<!--&lt;!&ndash;</select>&ndash;&gt;-->
<?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.yxproject.start.mapper.UserInfoMapper">
<!--用户-->
<resultMap id="UserRoleMenuMap" type="com.yxproject.start.entity.UserInfo">
<id property="uid" column="uid"/>
<result column="username" property="username"/>
<result column="password" property="password"/>
<result column="state" property="state"/>
<result column="name" property="name"/>
<!--角色集合-->
<collection property="roleList" ofType="com.yxproject.start.entity.SysRole">
<id column="id" property="rid" />
<result column="description" property="description"/>
<result column="role" property="role"/>
<!--权限集合-->
<collection property="permissions" ofType="com.yxproject.start.entity.SysPermission">
<id column="id" property="pid" />
<result column="name" property="pname"/>
<result column="url" property="url"/>
</collection>
</collection>
</resultMap>
<!--<select id="findUserByUsername" resultMap="UserRoleMenuMap" parameterType="string">-->
<!--select user_info.uid,user_info.username,user_info.password,user_info.name,sys_role.id as rid,sys_role.role,sys_role.description,-->
<!--sys_permission.id as pid,sys_permission.name as pname,sys_permission.url-->
<!--from user_info-->
<!--left join sys_user_role on user_info.uid = sys_user_role.uid-->
<!--left join sys_role on sys_user_role.role_id= sys_role.id-->
<!--left join sys_role_permission on sys_role.id = sys_role_permission.permission_id-->
<!--left join sys_permission on sys_role_permission.permission_id = sys_permission.id-->
<!--where username=#{username}-->
<!--</select>-->
<!--&lt;!&ndash;<insert id = "addUserInfo" parameterType = "map" statementType = "PREPARED" keyProperty = "u_id" useGeneratedKeys = "true" >&ndash;&gt;-->
<!--&lt;!&ndash;insert into USER_INFO (`u_id`,`username`,`name`,`password`,`salt`,`state`) VALUES (USER_INFO_seq.nextval, 'admin', '管理员', 'd3c59d25033dbf980d29554025c23a75', '8d78869f470951332959580424d4bf4f', 0)&ndash;&gt;-->
<!--&lt;!&ndash;</insert>&ndash;&gt;-->
<insert id = "addUserInfo" parameterType = "map" statementType = "PREPARED" keyProperty = "u_id" useGeneratedKeys = "true" >
insert into USER_INFO (`u_id`,`username`,`name`,`password`,`salt`,`state`) VALUES (USER_INFO_seq.nextval, 'admin', '管理员', 'd3c59d25033dbf980d29554025c23a75', '8d78869f470951332959580424d4bf4f', 0)
</insert>
<!--&lt;!&ndash;<update id = "delUserInfo" parameterType = "int" >&ndash;&gt;-->
<!--&lt;!&ndash;update user_info set STATE = 1 where u_id =#{uId}&ndash;&gt;-->
<!--&lt;!&ndash;</update>&ndash;&gt;-->
<!--<update id = "delUserInfo" parameterType = "int" >-->
<!--update user_info set STATE = 1 where u_id =#{uId}-->
<!--</update>-->
<!--&lt;!&ndash;<update id = "updateUserInfo" parameterType = "map" >&ndash;&gt;-->
<!--&lt;!&ndash;update user_info set username =#{username},name =#{name},password =#{password} where u_id =#{uId}&ndash;&gt;-->
<!--&lt;!&ndash;</update>&ndash;&gt;-->
<!--<update id = "updateUserInfo" parameterType = "map" >-->
<!--update user_info set username =#{username},name =#{name},password =#{password} where u_id =#{uId}-->
<!--</update>-->
<!--&lt;!&ndash;<select id="findUserByUsername" resultMap="UserRoleMenuMap" parameterType="string">&ndash;&gt;-->
<!--&lt;!&ndash;select user_info.uid,user_info.username,user_info.password,user_info.name,sys_role.id as rid,sys_role.role,sys_role.description,&ndash;&gt;-->
<!--&lt;!&ndash;sys_permission.id as pid,sys_permission.name as pname,sys_permission.url&ndash;&gt;-->
<!--&lt;!&ndash;from user_info&ndash;&gt;-->
<!--&lt;!&ndash;left join sys_user_role on user_info.uid = sys_user_role.uid&ndash;&gt;-->
<!--&lt;!&ndash;left join sys_role on sys_user_role.role_id= sys_role.id&ndash;&gt;-->
<!--&lt;!&ndash;left join sys_role_permission on sys_role.id = sys_role_permission.permission_id&ndash;&gt;-->
<!--&lt;!&ndash;left join sys_permission on sys_role_permission.permission_id = sys_permission.id&ndash;&gt;-->
<!--&lt;!&ndash;where username=#{username}&ndash;&gt;-->
<!--&lt;!&ndash;</select>&ndash;&gt;-->
<!--<select id="findUserByUsername" resultMap="UserRoleMenuMap" parameterType="string">-->
<!--select user_info.uid,user_info.username,user_info.password,user_info.name,sys_role.id as rid,sys_role.role,sys_role.description,-->
<!--sys_permission.id as pid,sys_permission.name as pname,sys_permission.url-->
<!--from user_info-->
<!--left join sys_user_role on user_info.uid = sys_user_role.uid-->
<!--left join sys_role on sys_user_role.role_id= sys_role.id-->
<!--left join sys_role_permission on sys_role.id = sys_role_permission.permission_id-->
<!--left join sys_permission on sys_role_permission.permission_id = sys_permission.id-->
<!--where username=#{username}-->
<!--</select>-->
<!--&lt;!&ndash;<select id="findUserByUsername" resultType="com.yxproject.start.entity.SystemUserEntity" parameterType="String">&ndash;&gt;-->
<!--&lt;!&ndash;select * from "SYSTEM_USER" where username=#{username}&ndash;&gt;-->
<!--&lt;!&ndash;</select>&ndash;&gt;-->
<!--</mapper>-->
\ No newline at end of file
<select id="findUserByUsername" resultType="com.yxproject.start.entity.UserInfo" parameterType="String">
select * from "SYSTEM_USER" where username=#{username}
</select>
</mapper>
\ No newline at end of file
<?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.yxproject.start.mapper.UtilMapper">
<select id="findProductionTaskListSequenceNextValue" resultType="int" >
select PRODUCTION_TASK_LIST_SEQ.nextval from dual
</select>
</mapper>
\ No newline at end of file
<ehcache>
<diskStore path="java.io.tmpdir"/>
<!-- name 缓存名称 -->
<!-- maxElementsInMemory 内存中最大缓存对象数,看着自己的heap大小来搞 -->
<!-- eternal:true表示对象永不过期,此时会忽略timeToIdleSeconds和timeToLiveSeconds属性,默认为false -->
<!-- maxElementsOnDisk:硬盘中最大缓存对象数,若是0表示无穷大 -->
<!-- overflowToDisk:true表示当内存缓存的对象数目达到了maxElementsInMemory界限后,
会把溢出的对象写到硬盘缓存中。注意:如果缓存的对象要写入到硬盘中的话,则该对象必须实现了Serializable接口才行。-->
<!-- diskSpoolBufferSizeMB:磁盘缓存区大小,默认为30MB。每个Cache都应该有自己的一个缓存区。-->
<!-- diskPersistent:是否缓存虚拟机重启期数据 -->
<!-- diskExpiryThreadIntervalSeconds:磁盘失效线程运行时间间隔,默认为120秒 -->
<!--timeToIdleSeconds:设置对象在失效前的允许闲置时间(单位:秒)。当对象自从最近一次被访问后,
如果处于空闲状态的时间超过了timeToIdleSeconds属性值,这个对象就会过期,
EHCache将把它从缓存中清空。仅当eternal=false对象不是永久有效时使用,可选属性,默认值是0,也就是可闲置时间无穷大。-->
<!--timeToLiveSeconds:设置对象在失效前允许存活时间(单位:秒)。最大时间介于创建时间和失效时间之间。
如果处于缓存中的时间超过了 timeToLiveSeconds属性值,这个对象就会过期,
EHCache将把它从缓存中清除。仅当eternal=false对象不是永久有效时使用,默认是0.,也就是对象存活时间无穷大。-->
<!-- clearOnFlush:内存数量最大时是否清除 -->
<!-- memoryStoreEvictionPolicy:当达到maxElementsInMemory限制时,
Ehcache将会根据指定的策略去清理内存。可选策略有:LRU(最近最少使用,默认策略)、
FIFO(先进先出)、LFU(最少访问次数)。-->
<defaultCache
maxElementsInMemory="10000"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
maxElementsOnDisk="10000000"
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU">
<!--<persistence strategy="localTempSwap"/>-->
</defaultCache>
<!-- 设定缓存的默认数据过期策略 -->
<cache name="shiro"
maxElementsInMemory="10000"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
maxElementsOnDisk="10000000"
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU">
<!-- <persistence strategy="localTempSwap"/>-->
</cache>
<!-- shiro-activeSessionCache活跃用户session缓存策略 -->
<cache name="shiro-activeSessionCache"
maxElementsInMemory="10000"
timeToIdleSeconds="86400"
timeToLiveSeconds="86400"
maxElementsOnDisk="10000000"
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU">
<!-- <persistence strategy="localTempSwap"/>-->
</cache>
<!-- 登录记录缓存 锁定2分钟 -->
<cache name="passwordRetryCache"
maxEntriesLocalHeap="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="0"
overflowToDisk="false"
statistics="false">
</cache>
</ehcache>
<!--<?xml version="1.0" encoding="UTF-8"?>-->
<!--<!DOCTYPE configuration-->
<!--PUBLIC "-//mybatis.org//DTD Config 3.0//EN"-->
<!--"http://mybatis.org/dtd/mybatis-3-config.dtd">-->
<!--<configuration> -->
<!---->
<!--</configuration>-->
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
</configuration>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment