Commit 58f3fced authored by suichenguang's avatar suichenguang

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

# Conflicts:
#	src/main/java/com/yxproject/start/api/BizApi.java
#	src/main/java/com/yxproject/start/api/ExportExcelApi.java
#	src/main/java/com/yxproject/start/api/ReadExcelApi.java
#	src/main/java/com/yxproject/start/utils/ExportExcel.java
parent 27a49833
...@@ -28,6 +28,11 @@ ...@@ -28,6 +28,11 @@
<artifactId>mybatis-spring-boot-starter</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version> <version>1.3.2</version>
</dependency> </dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId> <artifactId>spring-boot-starter-jdbc</artifactId>
......
package com.yxproject.start.api; 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.service.SysPermissionService; import com.yxproject.start.service.SysPermissionService;
import com.yxproject.start.service.SysRoleService; import com.yxproject.start.service.SysRoleService;
import com.yxproject.start.service.UserInfoService; import com.yxproject.start.service.UserInfoService;
......
//package com.yxproject.start.api; package com.yxproject.start.api;
//
//import com.yxproject.start.entity.PersonPostAbnormalEntity; import com.yxproject.start.entity.Preprocess.PersonPostAbnormalEntity;
//import com.yxproject.start.entity.RedoRegistrationEntity; import com.yxproject.start.entity.Preprocess.RedoRegistrationEntity;
//import com.yxproject.start.entity.TemporaryCertificateEntity; import com.yxproject.start.entity.Preprocess.TemporaryCertificateEntity;
//import com.yxproject.start.utils.ExportExcel; import com.yxproject.start.utils.ExportExcel;
//import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List; import java.util.List;
//
//@RestController @RestController
//@RequestMapping("exportExcel") @RequestMapping("exportExcel")
//public class ExportExcelApi { public class ExportExcelApi {
// /** /**
// * 导出临时证信息 * 导出临时证信息
// */ */
// @RequestMapping("ExportTemporaryCertificate") @RequestMapping("ExportTemporaryCertificate")
// public boolean ExportTemporaryCertificate(){ public boolean ExportTemporaryCertificate(){
// PersonPostAbnormalEntity temporaryCertificate = new PersonPostAbnormalEntity(); PersonPostAbnormalEntity temporaryCertificate = new PersonPostAbnormalEntity();
// ExportExcel obj = new ExportExcel(); ExportExcel obj = new ExportExcel();
// obj.exportTemporaryCertificateExcel((List<TemporaryCertificateEntity>) temporaryCertificate); obj.exportTemporaryCertificateExcel((List<TemporaryCertificateEntity>) temporaryCertificate);
// return true; return true;
// } }
// /** /**
// * 导出重做证件信息 * 导出重做证件信息
// */ */
// @RequestMapping("ExportRedoRegistration") @RequestMapping("ExportRedoRegistration")
// public boolean ExportRedoRegistration(){ public boolean ExportRedoRegistration(){
// RedoRegistrationEntity redoRegistration = new RedoRegistrationEntity(); RedoRegistrationEntity redoRegistration = new RedoRegistrationEntity();
// ExportExcel obj = new ExportExcel(); ExportExcel obj = new ExportExcel();
// obj.exportRedoRegistrationExcel((List<RedoRegistrationEntity>) redoRegistration); obj.exportRedoRegistrationExcel((List<RedoRegistrationEntity>) redoRegistration);
// return true; return true;
// } }
//
//} }
package com.yxproject.start.api; package com.yxproject.start.api;
import com.yxproject.start.entity.UserInfo;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.IncorrectCredentialsException; import org.apache.shiro.authc.IncorrectCredentialsException;
......
package com.yxproject.start.config; //package com.yxproject.start.config;
//
import com.yxproject.start.service.UserInfoService; //import com.yxproject.start.service.UserInfoService;
import org.apache.shiro.authc.AuthenticationException; //import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo; //import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken; //import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.SimpleAuthenticationInfo; //import org.apache.shiro.authc.SimpleAuthenticationInfo;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher; //import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.authz.AuthorizationInfo; //import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.SimpleAuthorizationInfo; //import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm; //import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection; //import org.apache.shiro.subject.PrincipalCollection;
import org.apache.shiro.util.ByteSource; //import org.apache.shiro.util.ByteSource;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
//
//
/** ///**
* @author Administrator // * @author Administrator
*/ // */
public class MyShiroRealm extends AuthorizingRealm { //public class MyShiroRealm extends AuthorizingRealm {
//
@Autowired // @Autowired
private UserInfoService userInfoService; // private UserInfoService userInfoService;
//
//告诉shiro如何根据获取到的用户信息中的密码和盐值来校验密码 // //告诉shiro如何根据获取到的用户信息中的密码和盐值来校验密码
{ // {
//设置用于匹配密码的CredentialsMatcher // //设置用于匹配密码的CredentialsMatcher
HashedCredentialsMatcher hashMatcher = new HashedCredentialsMatcher(); // HashedCredentialsMatcher hashMatcher = new HashedCredentialsMatcher();
hashMatcher.setHashAlgorithmName("md5"); // hashMatcher.setHashAlgorithmName("md5");
hashMatcher.setHashIterations(1024); // hashMatcher.setHashIterations(1024);
this.setCredentialsMatcher(hashMatcher); // this.setCredentialsMatcher(hashMatcher);
} // }
//
@Override // @Override
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { // protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
System.out.println("权限配置-->MyShiroRealm.doGetAuthorizationInfo()"); // System.out.println("权限配置-->MyShiroRealm.doGetAuthorizationInfo()");
SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo(); // SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo();
UserInfo userInfo = (UserInfo) principals.getPrimaryPrincipal(); // UserInfo userInfo = (UserInfo) principals.getPrimaryPrincipal();
for (SysRole role : userInfo.getRoleList()) { // for (SysRole role : userInfo.getRoleList()) {
authorizationInfo.addRole(role.getRole()); // authorizationInfo.addRole(role.getRole());
for (SysPermission p : role.getPermissions()) { // for (SysPermission p : role.getPermissions()) {
authorizationInfo.addStringPermission(p.getPermission()); // authorizationInfo.addStringPermission(p.getPermission());
} // }
} // }
return authorizationInfo; // return authorizationInfo;
} // }
//
/** // /**
* @param token // * @param token
* @return // * @return
* @throws AuthenticationException // * @throws AuthenticationException
*/ // */
@Override // @Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) // protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token)
throws AuthenticationException { // throws AuthenticationException {
System.out.println("MyShiroRealm.doGetAuthenticationInfo()"); // System.out.println("MyShiroRealm.doGetAuthenticationInfo()");
//获取用户的输入的账号. // //获取用户的输入的账号.
String username = (String) token.getPrincipal(); // String username = (String) token.getPrincipal();
System.out.println(username); // System.out.println(username);
System.out.println(token.getCredentials().toString()); // System.out.println(token.getCredentials().toString());
//通过username从数据库中查找 User对象,如果找到,没找到. // //通过username从数据库中查找 User对象,如果找到,没找到.
//实际项目中,这里可以根据实际情况做缓存,如果不做,Shiro自己也是有时间间隔机制,2分钟内不会重复执行该方法 // //实际项目中,这里可以根据实际情况做缓存,如果不做,Shiro自己也是有时间间隔机制,2分钟内不会重复执行该方法
UserInfo user = userInfoService.findByUsername(username); // UserInfo user = userInfoService.findByUsername(username);
if (user == null || user.getState() == 1) { // if (user == null || user.getState() == 1) {
return null; // return null;
} // }
SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo( // SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo(
user, // user,
user.getPassword(), // user.getPassword(),
ByteSource.Util.bytes(user.getSalt()), // ByteSource.Util.bytes(user.getSalt()),
getName() // getName()
); // );
return authenticationInfo; // return authenticationInfo;
} // }
//
} //}
\ No newline at end of file \ No newline at end of file
package com.yxproject.start.config; //package com.yxproject.start.config;
//
import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition; //import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition; //import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
import org.apache.shiro.web.mgt.DefaultWebSecurityManager; //import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator; //import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; //import org.springframework.context.annotation.Configuration;
//
/** ///**
* @author Administrator // * @author Administrator
*/ // */
@Configuration //@Configuration
public class ShiroConfig { //public class ShiroConfig {
//
@Autowired // @Autowired
private MyShiroRealm realm; // private MyShiroRealm realm;
//
@Bean // @Bean
public MyShiroRealm customRealm() { // public MyShiroRealm customRealm() {
return new MyShiroRealm(); // return new MyShiroRealm();
} // }
//
@Bean // @Bean
public DefaultWebSecurityManager securityManager() { // public DefaultWebSecurityManager securityManager() {
System.out.println("添加了DefaultWebSecurityManager"); // System.out.println("添加了DefaultWebSecurityManager");
DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager(); // DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
securityManager.setRealm(realm); // securityManager.setRealm(realm);
return securityManager; // return securityManager;
} // }
//
@Bean // @Bean
public static DefaultAdvisorAutoProxyCreator getDefaultAdvisorAutoProxyCreator() { // public static DefaultAdvisorAutoProxyCreator getDefaultAdvisorAutoProxyCreator() {
//
DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator(); // DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator();
defaultAdvisorAutoProxyCreator.setUsePrefix(true); // defaultAdvisorAutoProxyCreator.setUsePrefix(true);
//
return defaultAdvisorAutoProxyCreator; // return defaultAdvisorAutoProxyCreator;
} // }
//
@Bean // @Bean
public ShiroFilterChainDefinition shiroFilterChainDefinition() { // public ShiroFilterChainDefinition shiroFilterChainDefinition() {
System.out.println("添加了过滤器链"); // System.out.println("添加了过滤器链");
DefaultShiroFilterChainDefinition chainDefinition = new DefaultShiroFilterChainDefinition(); // DefaultShiroFilterChainDefinition chainDefinition = new DefaultShiroFilterChainDefinition();
//
chainDefinition.addPathDefinition("/admin/**", "authc"); // chainDefinition.addPathDefinition("/admin/**", "authc");
chainDefinition.addPathDefinition("/admin/**", "roles[admin]"); // chainDefinition.addPathDefinition("/admin/**", "roles[admin]");
chainDefinition.addPathDefinition("/user/login", "anon"); // chainDefinition.addPathDefinition("/user/login", "anon");
chainDefinition.addPathDefinition("/user/logout", "anon"); // chainDefinition.addPathDefinition("/user/logout", "anon");
chainDefinition.addPathDefinition("/user/**", "authc"); // chainDefinition.addPathDefinition("/user/**", "authc");
chainDefinition.addPathDefinition("/**", "anon"); // chainDefinition.addPathDefinition("/**", "anon");
//
return chainDefinition; // return chainDefinition;
} // }
} //}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "APPLY_REASON_T_DIC", schema = "YX", catalog = "")
public class ApplyReasonTDicEntity {
private long applyReasonCode;
private String applyReason;
@Id
@Column(name = "APPLY_REASON_CODE")
public long getApplyReasonCode() {
return applyReasonCode;
}
public void setApplyReasonCode(long applyReasonCode) {
this.applyReasonCode = applyReasonCode;
}
@Basic
@Column(name = "APPLY_REASON")
public String getApplyReason() {
return applyReason;
}
public void setApplyReason(String applyReason) {
this.applyReason = applyReason;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ApplyReasonTDicEntity that = (ApplyReasonTDicEntity) o;
return applyReasonCode == that.applyReasonCode &&
Objects.equals(applyReason, that.applyReason);
}
@Override
public int hashCode() {
return Objects.hash(applyReasonCode, applyReason);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "CARD_BODY", schema = "YX", catalog = "")
public class CardBodyEntity {
private long cardBodyId;
private Time saveDate;
private Long cardType;
private Long totalCount;
private String note;
@Id
@Column(name = "CARD_BODY_ID")
public long getCardBodyId() {
return cardBodyId;
}
public void setCardBodyId(long cardBodyId) {
this.cardBodyId = cardBodyId;
}
@Basic
@Column(name = "SAVE_DATE")
public Time getSaveDate() {
return saveDate;
}
public void setSaveDate(Time saveDate) {
this.saveDate = saveDate;
}
@Basic
@Column(name = "CARD_TYPE")
public Long getCardType() {
return cardType;
}
public void setCardType(Long cardType) {
this.cardType = cardType;
}
@Basic
@Column(name = "TOTAL_COUNT")
public Long getTotalCount() {
return totalCount;
}
public void setTotalCount(Long totalCount) {
this.totalCount = totalCount;
}
@Basic
@Column(name = "NOTE")
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CardBodyEntity that = (CardBodyEntity) o;
return cardBodyId == that.cardBodyId &&
Objects.equals(saveDate, that.saveDate) &&
Objects.equals(cardType, that.cardType) &&
Objects.equals(totalCount, that.totalCount) &&
Objects.equals(note, that.note);
}
@Override
public int hashCode() {
return Objects.hash(cardBodyId, saveDate, cardType, totalCount, note);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "CARD_DETAILED_LIST", schema = "YX", catalog = "")
public class CardDetailedListEntity {
private long cardDetailedListId;
private String polistListId;
private String uploadNo;
private String note;
private String fileName;
@Id
@Column(name = "CARD_DETAILED_LIST_ID")
public long getCardDetailedListId() {
return cardDetailedListId;
}
public void setCardDetailedListId(long cardDetailedListId) {
this.cardDetailedListId = cardDetailedListId;
}
@Basic
@Column(name = "POLIST_LIST_ID")
public String getPolistListId() {
return polistListId;
}
public void setPolistListId(String polistListId) {
this.polistListId = polistListId;
}
@Basic
@Column(name = "UPLOAD_NO")
public String getUploadNo() {
return uploadNo;
}
public void setUploadNo(String uploadNo) {
this.uploadNo = uploadNo;
}
@Basic
@Column(name = "NOTE")
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
@Basic
@Column(name = "FILE_NAME")
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CardDetailedListEntity that = (CardDetailedListEntity) o;
return cardDetailedListId == that.cardDetailedListId &&
Objects.equals(polistListId, that.polistListId) &&
Objects.equals(uploadNo, that.uploadNo) &&
Objects.equals(note, that.note) &&
Objects.equals(fileName, that.fileName);
}
@Override
public int hashCode() {
return Objects.hash(cardDetailedListId, polistListId, uploadNo, note, fileName);
}
}
package com.yxproject.start.entity;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Objects;
@Entity
@Table(name = "CARD_T2", schema = "YX", catalog = "")
public class CardT2Entity {
private String uploadNo;
private String acceptNo;
private String photoNo;
private String name;
private String sexNo;
private String nationNo;
private String birthday;
private String idNo;
private String addr1;
private String addr2;
private String addr3;
private String address1;
private String signGovt;
private String expireDate;
private String beginDate;
private String applyReason;
private String statusNo;
private String cardSerial;
private String sid;
@Basic
@Column(name = "UPLOAD_NO")
public String getUploadNo() {
return uploadNo;
}
public void setUploadNo(String uploadNo) {
this.uploadNo = uploadNo;
}
@Basic
@Column(name = "ACCEPT_NO")
public String getAcceptNo() {
return acceptNo;
}
public void setAcceptNo(String acceptNo) {
this.acceptNo = acceptNo;
}
@Basic
@Column(name = "PHOTO_NO")
public String getPhotoNo() {
return photoNo;
}
public void setPhotoNo(String photoNo) {
this.photoNo = photoNo;
}
@Basic
@Column(name = "NAME")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "SEX_NO")
public String getSexNo() {
return sexNo;
}
public void setSexNo(String sexNo) {
this.sexNo = sexNo;
}
@Basic
@Column(name = "NATION_NO")
public String getNationNo() {
return nationNo;
}
public void setNationNo(String nationNo) {
this.nationNo = nationNo;
}
@Basic
@Column(name = "BIRTHDAY")
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
@Basic
@Column(name = "ID_NO")
public String getIdNo() {
return idNo;
}
public void setIdNo(String idNo) {
this.idNo = idNo;
}
@Basic
@Column(name = "ADDR1")
public String getAddr1() {
return addr1;
}
public void setAddr1(String addr1) {
this.addr1 = addr1;
}
@Basic
@Column(name = "ADDR2")
public String getAddr2() {
return addr2;
}
public void setAddr2(String addr2) {
this.addr2 = addr2;
}
@Basic
@Column(name = "ADDR3")
public String getAddr3() {
return addr3;
}
public void setAddr3(String addr3) {
this.addr3 = addr3;
}
@Basic
@Column(name = "ADDRESS1")
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
this.address1 = address1;
}
@Basic
@Column(name = "SIGN_GOVT")
public String getSignGovt() {
return signGovt;
}
public void setSignGovt(String signGovt) {
this.signGovt = signGovt;
}
@Basic
@Column(name = "EXPIRE_DATE")
public String getExpireDate() {
return expireDate;
}
public void setExpireDate(String expireDate) {
this.expireDate = expireDate;
}
@Basic
@Column(name = "BEGIN_DATE")
public String getBeginDate() {
return beginDate;
}
public void setBeginDate(String beginDate) {
this.beginDate = beginDate;
}
@Basic
@Column(name = "APPLY_REASON")
public String getApplyReason() {
return applyReason;
}
public void setApplyReason(String applyReason) {
this.applyReason = applyReason;
}
@Basic
@Column(name = "STATUS_NO")
public String getStatusNo() {
return statusNo;
}
public void setStatusNo(String statusNo) {
this.statusNo = statusNo;
}
@Basic
@Column(name = "CARD_SERIAL")
public String getCardSerial() {
return cardSerial;
}
public void setCardSerial(String cardSerial) {
this.cardSerial = cardSerial;
}
@Basic
@Column(name = "SID")
public String getSid() {
return sid;
}
public void setSid(String sid) {
this.sid = sid;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CardT2Entity that = (CardT2Entity) o;
return Objects.equals(uploadNo, that.uploadNo) &&
Objects.equals(acceptNo, that.acceptNo) &&
Objects.equals(photoNo, that.photoNo) &&
Objects.equals(name, that.name) &&
Objects.equals(sexNo, that.sexNo) &&
Objects.equals(nationNo, that.nationNo) &&
Objects.equals(birthday, that.birthday) &&
Objects.equals(idNo, that.idNo) &&
Objects.equals(addr1, that.addr1) &&
Objects.equals(addr2, that.addr2) &&
Objects.equals(addr3, that.addr3) &&
Objects.equals(address1, that.address1) &&
Objects.equals(signGovt, that.signGovt) &&
Objects.equals(expireDate, that.expireDate) &&
Objects.equals(beginDate, that.beginDate) &&
Objects.equals(applyReason, that.applyReason) &&
Objects.equals(statusNo, that.statusNo) &&
Objects.equals(cardSerial, that.cardSerial) &&
Objects.equals(sid, that.sid);
}
@Override
public int hashCode() {
return Objects.hash(uploadNo, acceptNo, photoNo, name, sexNo, nationNo, birthday, idNo, addr1, addr2, addr3, address1, signGovt, expireDate, beginDate, applyReason, statusNo, cardSerial, sid);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "CARD_TYPE_DIC", schema = "YX", catalog = "")
public class CardTypeDicEntity {
private String cardType;
private long cardTypeId;
@Basic
@Column(name = "CARD_TYPE")
public String getCardType() {
return cardType;
}
public void setCardType(String cardType) {
this.cardType = cardType;
}
@Id
@Column(name = "CARD_TYPE_ID")
public long getCardTypeId() {
return cardTypeId;
}
public void setCardTypeId(long cardTypeId) {
this.cardTypeId = cardTypeId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CardTypeDicEntity that = (CardTypeDicEntity) o;
return cardTypeId == that.cardTypeId &&
Objects.equals(cardType, that.cardType);
}
@Override
public int hashCode() {
return Objects.hash(cardType, cardTypeId);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "COUNTY_DIC", schema = "YX", catalog = "")
public class CountyDicEntity {
private String countyCode;
private String countyname;
private String administrativeCode;
private String yingxin;
@Id
@Column(name = "COUNTY_CODE")
public String getCountyCode() {
return countyCode;
}
public void setCountyCode(String countyCode) {
this.countyCode = countyCode;
}
@Basic
@Column(name = "COUNTYNAME")
public String getCountyname() {
return countyname;
}
public void setCountyname(String countyname) {
this.countyname = countyname;
}
@Basic
@Column(name = "ADMINISTRATIVE_CODE")
public String getAdministrativeCode() {
return administrativeCode;
}
public void setAdministrativeCode(String administrativeCode) {
this.administrativeCode = administrativeCode;
}
@Basic
@Column(name = "YINGXIN")
public String getYingxin() {
return yingxin;
}
public void setYingxin(String yingxin) {
this.yingxin = yingxin;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CountyDicEntity that = (CountyDicEntity) o;
return Objects.equals(countyCode, that.countyCode) &&
Objects.equals(countyname, that.countyname) &&
Objects.equals(administrativeCode, that.administrativeCode) &&
Objects.equals(yingxin, that.yingxin);
}
@Override
public int hashCode() {
return Objects.hash(countyCode, countyname, administrativeCode, yingxin);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "FAILED_CARD", schema = "YX", catalog = "")
public class FailedCardEntity {
private long failedCardId;
private Long failedCardReasonId;
private String acceptNo;
private Long taskId;
private Time positionDate;
private Time finishDate;
private Time allotDate;
private Time printDate;
private Long state;
private String initiator;
@Id
@Column(name = "FAILED_CARD_ID")
public long getFailedCardId() {
return failedCardId;
}
public void setFailedCardId(long failedCardId) {
this.failedCardId = failedCardId;
}
@Basic
@Column(name = "FAILED_CARD_REASON_ID")
public Long getFailedCardReasonId() {
return failedCardReasonId;
}
public void setFailedCardReasonId(Long failedCardReasonId) {
this.failedCardReasonId = failedCardReasonId;
}
@Basic
@Column(name = "ACCEPT_NO")
public String getAcceptNo() {
return acceptNo;
}
public void setAcceptNo(String acceptNo) {
this.acceptNo = acceptNo;
}
@Basic
@Column(name = "TASK_ID")
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
@Basic
@Column(name = "POSITION_DATE")
public Time getPositionDate() {
return positionDate;
}
public void setPositionDate(Time positionDate) {
this.positionDate = positionDate;
}
@Basic
@Column(name = "FINISH_DATE")
public Time getFinishDate() {
return finishDate;
}
public void setFinishDate(Time finishDate) {
this.finishDate = finishDate;
}
@Basic
@Column(name = "ALLOT_DATE")
public Time getAllotDate() {
return allotDate;
}
public void setAllotDate(Time allotDate) {
this.allotDate = allotDate;
}
@Basic
@Column(name = "PRINT_DATE")
public Time getPrintDate() {
return printDate;
}
public void setPrintDate(Time printDate) {
this.printDate = printDate;
}
@Basic
@Column(name = "STATE")
public Long getState() {
return state;
}
public void setState(Long state) {
this.state = state;
}
@Basic
@Column(name = "INITIATOR")
public String getInitiator() {
return initiator;
}
public void setInitiator(String initiator) {
this.initiator = initiator;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FailedCardEntity that = (FailedCardEntity) o;
return failedCardId == that.failedCardId &&
Objects.equals(failedCardReasonId, that.failedCardReasonId) &&
Objects.equals(acceptNo, that.acceptNo) &&
Objects.equals(taskId, that.taskId) &&
Objects.equals(positionDate, that.positionDate) &&
Objects.equals(finishDate, that.finishDate) &&
Objects.equals(allotDate, that.allotDate) &&
Objects.equals(printDate, that.printDate) &&
Objects.equals(state, that.state) &&
Objects.equals(initiator, that.initiator);
}
@Override
public int hashCode() {
return Objects.hash(failedCardId, failedCardReasonId, acceptNo, taskId, positionDate, finishDate, allotDate, printDate, state, initiator);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "FAILED_CARD_REASON_DIC", schema = "YX", catalog = "")
public class FailedCardReasonDicEntity {
private long failedCardReasonId;
private String failedCardReason;
@Id
@Column(name = "FAILED_CARD_REASON_ID")
public long getFailedCardReasonId() {
return failedCardReasonId;
}
public void setFailedCardReasonId(long failedCardReasonId) {
this.failedCardReasonId = failedCardReasonId;
}
@Basic
@Column(name = "FAILED_CARD_REASON")
public String getFailedCardReason() {
return failedCardReason;
}
public void setFailedCardReason(String failedCardReason) {
this.failedCardReason = failedCardReason;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FailedCardReasonDicEntity that = (FailedCardReasonDicEntity) o;
return failedCardReasonId == that.failedCardReasonId &&
Objects.equals(failedCardReason, that.failedCardReason);
}
@Override
public int hashCode() {
return Objects.hash(failedCardReasonId, failedCardReason);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "FILES", schema = "YX", catalog = "")
public class FilesEntity {
private String versionCode;
private String dwdm;
private String dwmc;
private Long recordNumber;
private String creatTime;
private String sourceFileName;
private Time newTime;
@Basic
@Column(name = "VERSION_CODE")
public String getVersionCode() {
return versionCode;
}
public void setVersionCode(String versionCode) {
this.versionCode = versionCode;
}
@Basic
@Column(name = "DWDM")
public String getDwdm() {
return dwdm;
}
public void setDwdm(String dwdm) {
this.dwdm = dwdm;
}
@Basic
@Column(name = "DWMC")
public String getDwmc() {
return dwmc;
}
public void setDwmc(String dwmc) {
this.dwmc = dwmc;
}
@Basic
@Column(name = "RECORD_NUMBER")
public Long getRecordNumber() {
return recordNumber;
}
public void setRecordNumber(Long recordNumber) {
this.recordNumber = recordNumber;
}
@Basic
@Column(name = "CREAT_TIME")
public String getCreatTime() {
return creatTime;
}
public void setCreatTime(String creatTime) {
this.creatTime = creatTime;
}
@Id
@Column(name = "SOURCE_FILE_NAME")
public String getSourceFileName() {
return sourceFileName;
}
public void setSourceFileName(String sourceFileName) {
this.sourceFileName = sourceFileName;
}
@Basic
@Column(name = "NEW_TIME")
public Time getNewTime() {
return newTime;
}
public void setNewTime(Time newTime) {
this.newTime = newTime;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FilesEntity that = (FilesEntity) o;
return Objects.equals(versionCode, that.versionCode) &&
Objects.equals(dwdm, that.dwdm) &&
Objects.equals(dwmc, that.dwmc) &&
Objects.equals(recordNumber, that.recordNumber) &&
Objects.equals(creatTime, that.creatTime) &&
Objects.equals(sourceFileName, that.sourceFileName) &&
Objects.equals(newTime, that.newTime);
}
@Override
public int hashCode() {
return Objects.hash(versionCode, dwdm, dwmc, recordNumber, creatTime, sourceFileName, newTime);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "GAJG_DM", schema = "YX", catalog = "")
public class GajgDmEntity {
private String gajgId;
private String gajgDm;
private String gajgMc;
private String gajgMcPyt;
private String gajgMcWbt;
private String gajgJc;
private String sjGajgDm;
private String xzqhDm;
private String yxws;
private String jcdm;
private String yxbz;
private String xzqhMc;
@Basic
@Column(name = "GAJG_ID")
public String getGajgId() {
return gajgId;
}
public void setGajgId(String gajgId) {
this.gajgId = gajgId;
}
@Id
@Column(name = "GAJG_DM")
public String getGajgDm() {
return gajgDm;
}
public void setGajgDm(String gajgDm) {
this.gajgDm = gajgDm;
}
@Basic
@Column(name = "GAJG_MC")
public String getGajgMc() {
return gajgMc;
}
public void setGajgMc(String gajgMc) {
this.gajgMc = gajgMc;
}
@Basic
@Column(name = "GAJG_MC_PYT")
public String getGajgMcPyt() {
return gajgMcPyt;
}
public void setGajgMcPyt(String gajgMcPyt) {
this.gajgMcPyt = gajgMcPyt;
}
@Basic
@Column(name = "GAJG_MC_WBT")
public String getGajgMcWbt() {
return gajgMcWbt;
}
public void setGajgMcWbt(String gajgMcWbt) {
this.gajgMcWbt = gajgMcWbt;
}
@Basic
@Column(name = "GAJG_JC")
public String getGajgJc() {
return gajgJc;
}
public void setGajgJc(String gajgJc) {
this.gajgJc = gajgJc;
}
@Basic
@Column(name = "SJ_GAJG_DM")
public String getSjGajgDm() {
return sjGajgDm;
}
public void setSjGajgDm(String sjGajgDm) {
this.sjGajgDm = sjGajgDm;
}
@Basic
@Column(name = "XZQH_DM")
public String getXzqhDm() {
return xzqhDm;
}
public void setXzqhDm(String xzqhDm) {
this.xzqhDm = xzqhDm;
}
@Basic
@Column(name = "YXWS")
public String getYxws() {
return yxws;
}
public void setYxws(String yxws) {
this.yxws = yxws;
}
@Basic
@Column(name = "JCDM")
public String getJcdm() {
return jcdm;
}
public void setJcdm(String jcdm) {
this.jcdm = jcdm;
}
@Basic
@Column(name = "YXBZ")
public String getYxbz() {
return yxbz;
}
public void setYxbz(String yxbz) {
this.yxbz = yxbz;
}
@Basic
@Column(name = "XZQH_MC")
public String getXzqhMc() {
return xzqhMc;
}
public void setXzqhMc(String xzqhMc) {
this.xzqhMc = xzqhMc;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GajgDmEntity that = (GajgDmEntity) o;
return Objects.equals(gajgId, that.gajgId) &&
Objects.equals(gajgDm, that.gajgDm) &&
Objects.equals(gajgMc, that.gajgMc) &&
Objects.equals(gajgMcPyt, that.gajgMcPyt) &&
Objects.equals(gajgMcWbt, that.gajgMcWbt) &&
Objects.equals(gajgJc, that.gajgJc) &&
Objects.equals(sjGajgDm, that.sjGajgDm) &&
Objects.equals(xzqhDm, that.xzqhDm) &&
Objects.equals(yxws, that.yxws) &&
Objects.equals(jcdm, that.jcdm) &&
Objects.equals(yxbz, that.yxbz) &&
Objects.equals(xzqhMc, that.xzqhMc);
}
@Override
public int hashCode() {
return Objects.hash(gajgId, gajgDm, gajgMc, gajgMcPyt, gajgMcWbt, gajgJc, sjGajgDm, xzqhDm, yxws, jcdm, yxbz, xzqhMc);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "GROUP_NO", schema = "YX", catalog = "")
public class GroupNoEntity {
private String groupNo;
private Long taskId;
private Long validCount;
private Long invalidCount;
private Long specialCardCount;
@Id
@Column(name = "GROUP_NO")
public String getGroupNo() {
return groupNo;
}
public void setGroupNo(String groupNo) {
this.groupNo = groupNo;
}
@Basic
@Column(name = "TASK_ID")
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
@Basic
@Column(name = "VALID_COUNT")
public Long getValidCount() {
return validCount;
}
public void setValidCount(Long validCount) {
this.validCount = validCount;
}
@Basic
@Column(name = "INVALID_COUNT")
public Long getInvalidCount() {
return invalidCount;
}
public void setInvalidCount(Long invalidCount) {
this.invalidCount = invalidCount;
}
@Basic
@Column(name = "SPECIAL_CARD_COUNT")
public Long getSpecialCardCount() {
return specialCardCount;
}
public void setSpecialCardCount(Long specialCardCount) {
this.specialCardCount = specialCardCount;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GroupNoEntity that = (GroupNoEntity) o;
return Objects.equals(groupNo, that.groupNo) &&
Objects.equals(taskId, that.taskId) &&
Objects.equals(validCount, that.validCount) &&
Objects.equals(invalidCount, that.invalidCount) &&
Objects.equals(specialCardCount, that.specialCardCount);
}
@Override
public int hashCode() {
return Objects.hash(groupNo, taskId, validCount, invalidCount, specialCardCount);
}
}
This diff is collapsed.
package com.yxproject.start.entity;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "PLASTIC_FILM", schema = "YX", catalog = "")
public class PlasticFilmEntity {
private long plasticFilmId;
private Time saveDate;
private Long totalCount;
private Long plasticFilmType;
private String note;
@Id
@Column(name = "PLASTIC_FILM_ID")
public long getPlasticFilmId() {
return plasticFilmId;
}
public void setPlasticFilmId(long plasticFilmId) {
this.plasticFilmId = plasticFilmId;
}
@Basic
@Column(name = "SAVE_DATE")
public Time getSaveDate() {
return saveDate;
}
public void setSaveDate(Time saveDate) {
this.saveDate = saveDate;
}
@Basic
@Column(name = "TOTAL_COUNT")
public Long getTotalCount() {
return totalCount;
}
public void setTotalCount(Long totalCount) {
this.totalCount = totalCount;
}
@Basic
@Column(name = "PLASTIC_FILM_TYPE")
public Long getPlasticFilmType() {
return plasticFilmType;
}
public void setPlasticFilmType(Long plasticFilmType) {
this.plasticFilmType = plasticFilmType;
}
@Basic
@Column(name = "NOTE")
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PlasticFilmEntity that = (PlasticFilmEntity) o;
return plasticFilmId == that.plasticFilmId &&
Objects.equals(saveDate, that.saveDate) &&
Objects.equals(totalCount, that.totalCount) &&
Objects.equals(plasticFilmType, that.plasticFilmType) &&
Objects.equals(note, that.note);
}
@Override
public int hashCode() {
return Objects.hash(plasticFilmId, saveDate, totalCount, plasticFilmType, note);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "POLICE_STATION_APPLY_REASON", schema = "YX", catalog = "")
public class PoliceStationApplyReasonEntity {
private long policeStationApplyReasonId;
private Time saveDate;
private Long taskId;
private String policeStationCode;
private Long applyCode;
private Long applyCount;
@Id
@Column(name = "POLICE_STATION_APPLY_REASON_ID")
public long getPoliceStationApplyReasonId() {
return policeStationApplyReasonId;
}
public void setPoliceStationApplyReasonId(long policeStationApplyReasonId) {
this.policeStationApplyReasonId = policeStationApplyReasonId;
}
@Basic
@Column(name = "SAVE_DATE")
public Time getSaveDate() {
return saveDate;
}
public void setSaveDate(Time saveDate) {
this.saveDate = saveDate;
}
@Basic
@Column(name = "TASK_ID")
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
@Basic
@Column(name = "POLICE_STATION_CODE")
public String getPoliceStationCode() {
return policeStationCode;
}
public void setPoliceStationCode(String policeStationCode) {
this.policeStationCode = policeStationCode;
}
@Basic
@Column(name = "APPLY_CODE")
public Long getApplyCode() {
return applyCode;
}
public void setApplyCode(Long applyCode) {
this.applyCode = applyCode;
}
@Basic
@Column(name = "APPLY_COUNT")
public Long getApplyCount() {
return applyCount;
}
public void setApplyCount(Long applyCount) {
this.applyCount = applyCount;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PoliceStationApplyReasonEntity that = (PoliceStationApplyReasonEntity) o;
return policeStationApplyReasonId == that.policeStationApplyReasonId &&
Objects.equals(saveDate, that.saveDate) &&
Objects.equals(taskId, that.taskId) &&
Objects.equals(policeStationCode, that.policeStationCode) &&
Objects.equals(applyCode, that.applyCode) &&
Objects.equals(applyCount, that.applyCount);
}
@Override
public int hashCode() {
return Objects.hash(policeStationApplyReasonId, saveDate, taskId, policeStationCode, applyCode, applyCount);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "POLICE_STATION_VAILED", schema = "YX", catalog = "")
public class PoliceStationVailedEntity {
private long policeStationVailedId;
private Long taskId;
private String policeStationCode;
private Long vailedCount;
private Long invalidCount;
private Time savaDate;
@Id
@Column(name = "POLICE_STATION_VAILED_ID")
public long getPoliceStationVailedId() {
return policeStationVailedId;
}
public void setPoliceStationVailedId(long policeStationVailedId) {
this.policeStationVailedId = policeStationVailedId;
}
@Basic
@Column(name = "TASK_ID")
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
@Basic
@Column(name = "POLICE_STATION_CODE")
public String getPoliceStationCode() {
return policeStationCode;
}
public void setPoliceStationCode(String policeStationCode) {
this.policeStationCode = policeStationCode;
}
@Basic
@Column(name = "VAILED_COUNT")
public Long getVailedCount() {
return vailedCount;
}
public void setVailedCount(Long vailedCount) {
this.vailedCount = vailedCount;
}
@Basic
@Column(name = "INVALID_COUNT")
public Long getInvalidCount() {
return invalidCount;
}
public void setInvalidCount(Long invalidCount) {
this.invalidCount = invalidCount;
}
@Basic
@Column(name = "SAVA_DATE")
public Time getSavaDate() {
return savaDate;
}
public void setSavaDate(Time savaDate) {
this.savaDate = savaDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PoliceStationVailedEntity that = (PoliceStationVailedEntity) o;
return policeStationVailedId == that.policeStationVailedId &&
Objects.equals(taskId, that.taskId) &&
Objects.equals(policeStationCode, that.policeStationCode) &&
Objects.equals(vailedCount, that.vailedCount) &&
Objects.equals(invalidCount, that.invalidCount) &&
Objects.equals(savaDate, that.savaDate);
}
@Override
public int hashCode() {
return Objects.hash(policeStationVailedId, taskId, policeStationCode, vailedCount, invalidCount, savaDate);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "PREPRO_PERSON", schema = "YX", catalog = "")
public class PreproPersonEntity {
private String jmsfzslh;
private String gmsfhm;
private String xm;
private String xbdm;
private String mzdm;
private String csrq;
private String ssxqdm;
private String dzmc;
private String sdxp;
private String zwyZwtxsj;
private String zwyZwtzsj;
private String zweZwtxsj;
private String zweZwtzsj;
private String qfjgGajgmc;
private String yxqqsrq;
private String yxqjzrq;
private String jmsfzslyydm;
private String jmsfzzzlxdm;
private String jmsfzlzfsdm;
private String sjrXm;
private String sjrLxdh;
private String sjrYzbm;
private String sjrTxdz;
private String sid;
private String fileName;
private Long isPost;
private String newFileName;
private Long state;
@Id
@Column(name = "JMSFZSLH")
public String getJmsfzslh() {
return jmsfzslh;
}
public void setJmsfzslh(String jmsfzslh) {
this.jmsfzslh = jmsfzslh;
}
@Basic
@Column(name = "GMSFHM")
public String getGmsfhm() {
return gmsfhm;
}
public void setGmsfhm(String gmsfhm) {
this.gmsfhm = gmsfhm;
}
@Basic
@Column(name = "XM")
public String getXm() {
return xm;
}
public void setXm(String xm) {
this.xm = xm;
}
@Basic
@Column(name = "XBDM")
public String getXbdm() {
return xbdm;
}
public void setXbdm(String xbdm) {
this.xbdm = xbdm;
}
@Basic
@Column(name = "MZDM")
public String getMzdm() {
return mzdm;
}
public void setMzdm(String mzdm) {
this.mzdm = mzdm;
}
@Basic
@Column(name = "CSRQ")
public String getCsrq() {
return csrq;
}
public void setCsrq(String csrq) {
this.csrq = csrq;
}
@Basic
@Column(name = "SSXQDM")
public String getSsxqdm() {
return ssxqdm;
}
public void setSsxqdm(String ssxqdm) {
this.ssxqdm = ssxqdm;
}
@Basic
@Column(name = "DZMC")
public String getDzmc() {
return dzmc;
}
public void setDzmc(String dzmc) {
this.dzmc = dzmc;
}
@Basic
@Column(name = "SDXP")
public String getSdxp() {
return sdxp;
}
public void setSdxp(String sdxp) {
this.sdxp = sdxp;
}
@Basic
@Column(name = "ZWY_ZWTXSJ")
public String getZwyZwtxsj() {
return zwyZwtxsj;
}
public void setZwyZwtxsj(String zwyZwtxsj) {
this.zwyZwtxsj = zwyZwtxsj;
}
@Basic
@Column(name = "ZWY_ZWTZSJ")
public String getZwyZwtzsj() {
return zwyZwtzsj;
}
public void setZwyZwtzsj(String zwyZwtzsj) {
this.zwyZwtzsj = zwyZwtzsj;
}
@Basic
@Column(name = "ZWE_ZWTXSJ")
public String getZweZwtxsj() {
return zweZwtxsj;
}
public void setZweZwtxsj(String zweZwtxsj) {
this.zweZwtxsj = zweZwtxsj;
}
@Basic
@Column(name = "ZWE_ZWTZSJ")
public String getZweZwtzsj() {
return zweZwtzsj;
}
public void setZweZwtzsj(String zweZwtzsj) {
this.zweZwtzsj = zweZwtzsj;
}
@Basic
@Column(name = "QFJG_GAJGMC")
public String getQfjgGajgmc() {
return qfjgGajgmc;
}
public void setQfjgGajgmc(String qfjgGajgmc) {
this.qfjgGajgmc = qfjgGajgmc;
}
@Basic
@Column(name = "YXQQSRQ")
public String getYxqqsrq() {
return yxqqsrq;
}
public void setYxqqsrq(String yxqqsrq) {
this.yxqqsrq = yxqqsrq;
}
@Basic
@Column(name = "YXQJZRQ")
public String getYxqjzrq() {
return yxqjzrq;
}
public void setYxqjzrq(String yxqjzrq) {
this.yxqjzrq = yxqjzrq;
}
@Basic
@Column(name = "JMSFZSLYYDM")
public String getJmsfzslyydm() {
return jmsfzslyydm;
}
public void setJmsfzslyydm(String jmsfzslyydm) {
this.jmsfzslyydm = jmsfzslyydm;
}
@Basic
@Column(name = "JMSFZZZLXDM")
public String getJmsfzzzlxdm() {
return jmsfzzzlxdm;
}
public void setJmsfzzzlxdm(String jmsfzzzlxdm) {
this.jmsfzzzlxdm = jmsfzzzlxdm;
}
@Basic
@Column(name = "JMSFZLZFSDM")
public String getJmsfzlzfsdm() {
return jmsfzlzfsdm;
}
public void setJmsfzlzfsdm(String jmsfzlzfsdm) {
this.jmsfzlzfsdm = jmsfzlzfsdm;
}
@Basic
@Column(name = "SJR_XM")
public String getSjrXm() {
return sjrXm;
}
public void setSjrXm(String sjrXm) {
this.sjrXm = sjrXm;
}
@Basic
@Column(name = "SJR_LXDH")
public String getSjrLxdh() {
return sjrLxdh;
}
public void setSjrLxdh(String sjrLxdh) {
this.sjrLxdh = sjrLxdh;
}
@Basic
@Column(name = "SJR_YZBM")
public String getSjrYzbm() {
return sjrYzbm;
}
public void setSjrYzbm(String sjrYzbm) {
this.sjrYzbm = sjrYzbm;
}
@Basic
@Column(name = "SJR_TXDZ")
public String getSjrTxdz() {
return sjrTxdz;
}
public void setSjrTxdz(String sjrTxdz) {
this.sjrTxdz = sjrTxdz;
}
@Basic
@Column(name = "SID")
public String getSid() {
return sid;
}
public void setSid(String sid) {
this.sid = sid;
}
@Basic
@Column(name = "FILE_NAME")
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
@Basic
@Column(name = "IS_POST")
public Long getIsPost() {
return isPost;
}
public void setIsPost(Long isPost) {
this.isPost = isPost;
}
@Basic
@Column(name = "NEW_FILE_NAME")
public String getNewFileName() {
return newFileName;
}
public void setNewFileName(String newFileName) {
this.newFileName = newFileName;
}
@Basic
@Column(name = "STATE")
public Long getState() {
return state;
}
public void setState(Long state) {
this.state = state;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PreproPersonEntity that = (PreproPersonEntity) o;
return Objects.equals(jmsfzslh, that.jmsfzslh) &&
Objects.equals(gmsfhm, that.gmsfhm) &&
Objects.equals(xm, that.xm) &&
Objects.equals(xbdm, that.xbdm) &&
Objects.equals(mzdm, that.mzdm) &&
Objects.equals(csrq, that.csrq) &&
Objects.equals(ssxqdm, that.ssxqdm) &&
Objects.equals(dzmc, that.dzmc) &&
Objects.equals(sdxp, that.sdxp) &&
Objects.equals(zwyZwtxsj, that.zwyZwtxsj) &&
Objects.equals(zwyZwtzsj, that.zwyZwtzsj) &&
Objects.equals(zweZwtxsj, that.zweZwtxsj) &&
Objects.equals(zweZwtzsj, that.zweZwtzsj) &&
Objects.equals(qfjgGajgmc, that.qfjgGajgmc) &&
Objects.equals(yxqqsrq, that.yxqqsrq) &&
Objects.equals(yxqjzrq, that.yxqjzrq) &&
Objects.equals(jmsfzslyydm, that.jmsfzslyydm) &&
Objects.equals(jmsfzzzlxdm, that.jmsfzzzlxdm) &&
Objects.equals(jmsfzlzfsdm, that.jmsfzlzfsdm) &&
Objects.equals(sjrXm, that.sjrXm) &&
Objects.equals(sjrLxdh, that.sjrLxdh) &&
Objects.equals(sjrYzbm, that.sjrYzbm) &&
Objects.equals(sjrTxdz, that.sjrTxdz) &&
Objects.equals(sid, that.sid) &&
Objects.equals(fileName, that.fileName) &&
Objects.equals(isPost, that.isPost) &&
Objects.equals(newFileName, that.newFileName) &&
Objects.equals(state, that.state);
}
@Override
public int hashCode() {
return Objects.hash(jmsfzslh, gmsfhm, xm, xbdm, mzdm, csrq, ssxqdm, dzmc, sdxp, zwyZwtxsj, zwyZwtzsj, zweZwtxsj, zweZwtzsj, qfjgGajgmc, yxqqsrq, yxqjzrq, jmsfzslyydm, jmsfzzzlxdm, jmsfzlzfsdm, sjrXm, sjrLxdh, sjrYzbm, sjrTxdz, sid, fileName, isPost, newFileName, state);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "PRINTER_DIC", schema = "YX", catalog = "")
public class PrinterDicEntity {
private long printerId;
private String printerName;
@Id
@Column(name = "PRINTER_ID")
public long getPrinterId() {
return printerId;
}
public void setPrinterId(long printerId) {
this.printerId = printerId;
}
@Basic
@Column(name = "PRINTER_NAME")
public String getPrinterName() {
return printerName;
}
public void setPrinterName(String printerName) {
this.printerName = printerName;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PrinterDicEntity that = (PrinterDicEntity) o;
return printerId == that.printerId &&
Objects.equals(printerName, that.printerName);
}
@Override
public int hashCode() {
return Objects.hash(printerId, printerName);
}
}
package com.yxproject.start.entity;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Objects;
@Entity
@Table(name = "PROD_CARD_T", schema = "YX", catalog = "")
public class ProdCardTEntity {
private String uploadNo;
private String acceptNo;
private String photoNo;
private String name;
private String sexNo;
private String nationNo;
private String birthday;
private String idNo;
private String addr1;
private String addr2;
private String addr3;
private String address1;
private String signGovt;
private String expireDate;
private String beginDate;
private String applyReason;
private String statusNo;
private String cardSerial;
private String sid;
@Basic
@Column(name = "UPLOAD_NO")
public String getUploadNo() {
return uploadNo;
}
public void setUploadNo(String uploadNo) {
this.uploadNo = uploadNo;
}
@Basic
@Column(name = "ACCEPT_NO")
public String getAcceptNo() {
return acceptNo;
}
public void setAcceptNo(String acceptNo) {
this.acceptNo = acceptNo;
}
@Basic
@Column(name = "PHOTO_NO")
public String getPhotoNo() {
return photoNo;
}
public void setPhotoNo(String photoNo) {
this.photoNo = photoNo;
}
@Basic
@Column(name = "NAME")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "SEX_NO")
public String getSexNo() {
return sexNo;
}
public void setSexNo(String sexNo) {
this.sexNo = sexNo;
}
@Basic
@Column(name = "NATION_NO")
public String getNationNo() {
return nationNo;
}
public void setNationNo(String nationNo) {
this.nationNo = nationNo;
}
@Basic
@Column(name = "BIRTHDAY")
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
@Basic
@Column(name = "ID_NO")
public String getIdNo() {
return idNo;
}
public void setIdNo(String idNo) {
this.idNo = idNo;
}
@Basic
@Column(name = "ADDR1")
public String getAddr1() {
return addr1;
}
public void setAddr1(String addr1) {
this.addr1 = addr1;
}
@Basic
@Column(name = "ADDR2")
public String getAddr2() {
return addr2;
}
public void setAddr2(String addr2) {
this.addr2 = addr2;
}
@Basic
@Column(name = "ADDR3")
public String getAddr3() {
return addr3;
}
public void setAddr3(String addr3) {
this.addr3 = addr3;
}
@Basic
@Column(name = "ADDRESS1")
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
this.address1 = address1;
}
@Basic
@Column(name = "SIGN_GOVT")
public String getSignGovt() {
return signGovt;
}
public void setSignGovt(String signGovt) {
this.signGovt = signGovt;
}
@Basic
@Column(name = "EXPIRE_DATE")
public String getExpireDate() {
return expireDate;
}
public void setExpireDate(String expireDate) {
this.expireDate = expireDate;
}
@Basic
@Column(name = "BEGIN_DATE")
public String getBeginDate() {
return beginDate;
}
public void setBeginDate(String beginDate) {
this.beginDate = beginDate;
}
@Basic
@Column(name = "APPLY_REASON")
public String getApplyReason() {
return applyReason;
}
public void setApplyReason(String applyReason) {
this.applyReason = applyReason;
}
@Basic
@Column(name = "STATUS_NO")
public String getStatusNo() {
return statusNo;
}
public void setStatusNo(String statusNo) {
this.statusNo = statusNo;
}
@Basic
@Column(name = "CARD_SERIAL")
public String getCardSerial() {
return cardSerial;
}
public void setCardSerial(String cardSerial) {
this.cardSerial = cardSerial;
}
@Basic
@Column(name = "SID")
public String getSid() {
return sid;
}
public void setSid(String sid) {
this.sid = sid;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ProdCardTEntity that = (ProdCardTEntity) o;
return Objects.equals(uploadNo, that.uploadNo) &&
Objects.equals(acceptNo, that.acceptNo) &&
Objects.equals(photoNo, that.photoNo) &&
Objects.equals(name, that.name) &&
Objects.equals(sexNo, that.sexNo) &&
Objects.equals(nationNo, that.nationNo) &&
Objects.equals(birthday, that.birthday) &&
Objects.equals(idNo, that.idNo) &&
Objects.equals(addr1, that.addr1) &&
Objects.equals(addr2, that.addr2) &&
Objects.equals(addr3, that.addr3) &&
Objects.equals(address1, that.address1) &&
Objects.equals(signGovt, that.signGovt) &&
Objects.equals(expireDate, that.expireDate) &&
Objects.equals(beginDate, that.beginDate) &&
Objects.equals(applyReason, that.applyReason) &&
Objects.equals(statusNo, that.statusNo) &&
Objects.equals(cardSerial, that.cardSerial) &&
Objects.equals(sid, that.sid);
}
@Override
public int hashCode() {
return Objects.hash(uploadNo, acceptNo, photoNo, name, sexNo, nationNo, birthday, idNo, addr1, addr2, addr3, address1, signGovt, expireDate, beginDate, applyReason, statusNo, cardSerial, sid);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "RECEIPT_LIST", schema = "YX", catalog = "")
public class ReceiptListEntity {
private long id;
private Long taskId;
private Time saveDate;
private String policeCode;
private Long finishCount;
private Long inStorageCount;
private Long outStorageCount;
private String note;
@Id
@Column(name = "ID")
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "TASK_ID")
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
@Basic
@Column(name = "SAVE_DATE")
public Time getSaveDate() {
return saveDate;
}
public void setSaveDate(Time saveDate) {
this.saveDate = saveDate;
}
@Basic
@Column(name = "POLICE_CODE")
public String getPoliceCode() {
return policeCode;
}
public void setPoliceCode(String policeCode) {
this.policeCode = policeCode;
}
@Basic
@Column(name = "FINISH_COUNT")
public Long getFinishCount() {
return finishCount;
}
public void setFinishCount(Long finishCount) {
this.finishCount = finishCount;
}
@Basic
@Column(name = "IN_STORAGE_COUNT")
public Long getInStorageCount() {
return inStorageCount;
}
public void setInStorageCount(Long inStorageCount) {
this.inStorageCount = inStorageCount;
}
@Basic
@Column(name = "OUT_STORAGE_COUNT")
public Long getOutStorageCount() {
return outStorageCount;
}
public void setOutStorageCount(Long outStorageCount) {
this.outStorageCount = outStorageCount;
}
@Basic
@Column(name = "NOTE")
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ReceiptListEntity that = (ReceiptListEntity) o;
return id == that.id &&
Objects.equals(taskId, that.taskId) &&
Objects.equals(saveDate, that.saveDate) &&
Objects.equals(policeCode, that.policeCode) &&
Objects.equals(finishCount, that.finishCount) &&
Objects.equals(inStorageCount, that.inStorageCount) &&
Objects.equals(outStorageCount, that.outStorageCount) &&
Objects.equals(note, that.note);
}
@Override
public int hashCode() {
return Objects.hash(id, taskId, saveDate, policeCode, finishCount, inStorageCount, outStorageCount, note);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "SPECIAL_CARD", schema = "YX", catalog = "")
public class SpecialCardEntity {
private long specialCardId;
private String acceptNo;
private Long taskId;
private Long specialType;
private String groupNo;
private String initiator;
private Time fillInDate;
private String remark;
@Id
@Column(name = "SPECIAL_CARD_ID")
public long getSpecialCardId() {
return specialCardId;
}
public void setSpecialCardId(long specialCardId) {
this.specialCardId = specialCardId;
}
@Basic
@Column(name = "ACCEPT_NO")
public String getAcceptNo() {
return acceptNo;
}
public void setAcceptNo(String acceptNo) {
this.acceptNo = acceptNo;
}
@Basic
@Column(name = "TASK_ID")
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
@Basic
@Column(name = "SPECIAL_TYPE")
public Long getSpecialType() {
return specialType;
}
public void setSpecialType(Long specialType) {
this.specialType = specialType;
}
@Basic
@Column(name = "GROUP_NO")
public String getGroupNo() {
return groupNo;
}
public void setGroupNo(String groupNo) {
this.groupNo = groupNo;
}
@Basic
@Column(name = "INITIATOR")
public String getInitiator() {
return initiator;
}
public void setInitiator(String initiator) {
this.initiator = initiator;
}
@Basic
@Column(name = "FILL_IN_DATE")
public Time getFillInDate() {
return fillInDate;
}
public void setFillInDate(Time fillInDate) {
this.fillInDate = fillInDate;
}
@Basic
@Column(name = "REMARK")
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SpecialCardEntity that = (SpecialCardEntity) o;
return specialCardId == that.specialCardId &&
Objects.equals(acceptNo, that.acceptNo) &&
Objects.equals(taskId, that.taskId) &&
Objects.equals(specialType, that.specialType) &&
Objects.equals(groupNo, that.groupNo) &&
Objects.equals(initiator, that.initiator) &&
Objects.equals(fillInDate, that.fillInDate) &&
Objects.equals(remark, that.remark);
}
@Override
public int hashCode() {
return Objects.hash(specialCardId, acceptNo, taskId, specialType, groupNo, initiator, fillInDate, remark);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
/**
* @author zhangyusheng
*/
@Entity
@Table(name="SYS_PERMISSION")
public class SysPermission implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
/**
* 主键.
*/
private Integer id;
/**
* 名称.
*/
private String name;
/**
* 资源类型
*/
private String resource_type;
/**
* 资源路径.
*/
private String url;
/**
* 权限字符串,menu例子:role:*,button例子:role:create,role:update,role:delete,role:view
*/
private String permission;
/**
* 父编号
*/
private Long parent_id;
/**
* 父编号列表
*/
private String parent_ids;
private byte available = 0;
@ManyToMany
@JoinTable(name="SysRolePermission",joinColumns={@JoinColumn(name="permissionId")},inverseJoinColumns={@JoinColumn(name="roleId")})
private List<SysRole> roles;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getResource_type() {
return resource_type;
}
public void setResource_type(String resource_type) {
this.resource_type = resource_type;
}
public String getParent_ids() {
return parent_ids;
}
public void setParent_ids(String parent_ids) {
this.parent_ids = parent_ids;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getPermission() {
return permission;
}
public void setPermission(String permission) {
this.permission = permission;
}
public Long getParent_id() {
return parent_id;
}
public void setParent_id(Long parent_id) {
this.parent_id = parent_id;
}
public byte getAvailable() {
return available;
}
public void setAvailable(byte available) {
this.available = available;
}
public List<SysRole> getRoles() {
return roles;
}
public void setRoles(List<SysRole> roles) {
this.roles = roles;
}
}
\ No newline at end of file
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.List;
/**
* @author zhangyusheng
*/
@Entity
@Table(name="SYS_ROLE")
public class SysRole {
@Id
@GeneratedValue
/**
* 编号
*/
private Integer id;
/**
* 角色标识程序中判断使用,如"admin",这个是唯一的:
*/
private String role;
/**
* 角色描述,UI界面显示使用
*/
private String description;
/**
* 是否可用,如果不可用将不会添加给用户
*/
private byte available = 0;
/**
* 角色 -- 权限关系:多对多关系;
*/
@ManyToMany(fetch= FetchType.EAGER)
@JoinTable(name="SysRolePermission",joinColumns={@JoinColumn(name="roleId")},inverseJoinColumns={@JoinColumn(name="permissionId")})
private List<SysPermission> permissions;
/**
* 用户 - 角色关系定义;
*/
@ManyToMany
@JoinTable(name="SysUserRole",joinColumns={@JoinColumn(name="roleId")},inverseJoinColumns={@JoinColumn(name="userId")})
/**
* 一个角色对应多个用户
*/
private List<UserInfo> userInfos;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public byte getAvailable() {
return available;
}
public void setAvailable(byte available) {
this.available = available;
}
public List<SysPermission> getPermissions() {
return permissions;
}
public void setPermissions(List<SysPermission> permissions) {
this.permissions = permissions;
}
public List<UserInfo> getUserInfos() {
return userInfos;
}
public void setUserInfos(List<UserInfo> userInfos) {
this.userInfos = userInfos;
}
}
\ No newline at end of file
package com.yxproject.start.entity;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "TASK", schema = "YX", catalog = "")
public class TaskEntity {
private long taskId;
private Long cardType;
private Long oldCardType;
private String countyCode;
private Time submitDate;
private Time issuedDate;
private Time downloadDate;
private Time printOutDate;
private Time positionDate;
private Time outWorkshopDate;
private String qualityPeopleName;
private Time qualityTestDate;
private String exceptionInformation;
private Time outStorageDate;
private Time inStorageDate;
private Long taskStateId;
private Long isException;
private Long printerId;
private Long beginPageNumber;
private Long finishPageNumber;
@Id
@Column(name = "TASK_ID")
public long getTaskId() {
return taskId;
}
public void setTaskId(long taskId) {
this.taskId = taskId;
}
@Basic
@Column(name = "CARD_TYPE")
public Long getCardType() {
return cardType;
}
public void setCardType(Long cardType) {
this.cardType = cardType;
}
@Basic
@Column(name = "OLD_CARD_TYPE")
public Long getOldCardType() {
return oldCardType;
}
public void setOldCardType(Long oldCardType) {
this.oldCardType = oldCardType;
}
@Basic
@Column(name = "COUNTY_CODE")
public String getCountyCode() {
return countyCode;
}
public void setCountyCode(String countyCode) {
this.countyCode = countyCode;
}
@Basic
@Column(name = "SUBMIT_DATE")
public Time getSubmitDate() {
return submitDate;
}
public void setSubmitDate(Time submitDate) {
this.submitDate = submitDate;
}
@Basic
@Column(name = "ISSUED_DATE")
public Time getIssuedDate() {
return issuedDate;
}
public void setIssuedDate(Time issuedDate) {
this.issuedDate = issuedDate;
}
@Basic
@Column(name = "DOWNLOAD_DATE")
public Time getDownloadDate() {
return downloadDate;
}
public void setDownloadDate(Time downloadDate) {
this.downloadDate = downloadDate;
}
@Basic
@Column(name = "PRINT_OUT_DATE")
public Time getPrintOutDate() {
return printOutDate;
}
public void setPrintOutDate(Time printOutDate) {
this.printOutDate = printOutDate;
}
@Basic
@Column(name = "POSITION_DATE")
public Time getPositionDate() {
return positionDate;
}
public void setPositionDate(Time positionDate) {
this.positionDate = positionDate;
}
@Basic
@Column(name = "OUT_WORKSHOP_DATE")
public Time getOutWorkshopDate() {
return outWorkshopDate;
}
public void setOutWorkshopDate(Time outWorkshopDate) {
this.outWorkshopDate = outWorkshopDate;
}
@Basic
@Column(name = "QUALITY_PEOPLE_NAME")
public String getQualityPeopleName() {
return qualityPeopleName;
}
public void setQualityPeopleName(String qualityPeopleName) {
this.qualityPeopleName = qualityPeopleName;
}
@Basic
@Column(name = "QUALITY_TEST_DATE")
public Time getQualityTestDate() {
return qualityTestDate;
}
public void setQualityTestDate(Time qualityTestDate) {
this.qualityTestDate = qualityTestDate;
}
@Basic
@Column(name = "EXCEPTION_INFORMATION")
public String getExceptionInformation() {
return exceptionInformation;
}
public void setExceptionInformation(String exceptionInformation) {
this.exceptionInformation = exceptionInformation;
}
@Basic
@Column(name = "OUT_STORAGE_DATE")
public Time getOutStorageDate() {
return outStorageDate;
}
public void setOutStorageDate(Time outStorageDate) {
this.outStorageDate = outStorageDate;
}
@Basic
@Column(name = "IN_STORAGE_DATE")
public Time getInStorageDate() {
return inStorageDate;
}
public void setInStorageDate(Time inStorageDate) {
this.inStorageDate = inStorageDate;
}
@Basic
@Column(name = "TASK_STATE_ID")
public Long getTaskStateId() {
return taskStateId;
}
public void setTaskStateId(Long taskStateId) {
this.taskStateId = taskStateId;
}
@Basic
@Column(name = "IS_EXCEPTION")
public Long getIsException() {
return isException;
}
public void setIsException(Long isException) {
this.isException = isException;
}
@Basic
@Column(name = "PRINTER_ID")
public Long getPrinterId() {
return printerId;
}
public void setPrinterId(Long printerId) {
this.printerId = printerId;
}
@Basic
@Column(name = "BEGIN_PAGE_NUMBER")
public Long getBeginPageNumber() {
return beginPageNumber;
}
public void setBeginPageNumber(Long beginPageNumber) {
this.beginPageNumber = beginPageNumber;
}
@Basic
@Column(name = "FINISH_PAGE_NUMBER")
public Long getFinishPageNumber() {
return finishPageNumber;
}
public void setFinishPageNumber(Long finishPageNumber) {
this.finishPageNumber = finishPageNumber;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TaskEntity that = (TaskEntity) o;
return taskId == that.taskId &&
Objects.equals(cardType, that.cardType) &&
Objects.equals(oldCardType, that.oldCardType) &&
Objects.equals(countyCode, that.countyCode) &&
Objects.equals(submitDate, that.submitDate) &&
Objects.equals(issuedDate, that.issuedDate) &&
Objects.equals(downloadDate, that.downloadDate) &&
Objects.equals(printOutDate, that.printOutDate) &&
Objects.equals(positionDate, that.positionDate) &&
Objects.equals(outWorkshopDate, that.outWorkshopDate) &&
Objects.equals(qualityPeopleName, that.qualityPeopleName) &&
Objects.equals(qualityTestDate, that.qualityTestDate) &&
Objects.equals(exceptionInformation, that.exceptionInformation) &&
Objects.equals(outStorageDate, that.outStorageDate) &&
Objects.equals(inStorageDate, that.inStorageDate) &&
Objects.equals(taskStateId, that.taskStateId) &&
Objects.equals(isException, that.isException) &&
Objects.equals(printerId, that.printerId) &&
Objects.equals(beginPageNumber, that.beginPageNumber) &&
Objects.equals(finishPageNumber, that.finishPageNumber);
}
@Override
public int hashCode() {
return Objects.hash(taskId, cardType, oldCardType, countyCode, submitDate, issuedDate, downloadDate, printOutDate, positionDate, outWorkshopDate, qualityPeopleName, qualityTestDate, exceptionInformation, outStorageDate, inStorageDate, taskStateId, isException, printerId, beginPageNumber, finishPageNumber);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "TASK_STATE_DIC", schema = "YX", catalog = "")
public class TaskStateDicEntity {
private long taskStateId;
private String taskState;
@Id
@Column(name = "TASK_STATE_ID")
public long getTaskStateId() {
return taskStateId;
}
public void setTaskStateId(long taskStateId) {
this.taskStateId = taskStateId;
}
@Basic
@Column(name = "TASK_STATE")
public String getTaskState() {
return taskState;
}
public void setTaskState(String taskState) {
this.taskState = taskState;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TaskStateDicEntity that = (TaskStateDicEntity) o;
return taskStateId == that.taskStateId &&
Objects.equals(taskState, that.taskState);
}
@Override
public int hashCode() {
return Objects.hash(taskStateId, taskState);
}
}
package com.yxproject.start.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
/**
* @author zhangyusheng
*/
@Entity
@Table(name="USER_INFO")
public class UserInfo implements Serializable {
@Id
@GeneratedValue
private Integer id;
@Column(unique =true)
private String username;
private String name;
private String password;
private String salt;
private byte state;
private String workshop;
@ManyToMany(fetch= FetchType.EAGER)
@JoinTable(name = "SysUserRole", joinColumns = { @JoinColumn(name = "userId") }, inverseJoinColumns ={@JoinColumn(name = "roleId") })
private List<SysRole> roleList;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getSalt() {
return salt;
}
public void setSalt(String salt) {
this.salt = salt;
}
public byte getState() {
return state;
}
public void setState(byte state) {
this.state = state;
}
public List<SysRole> getRoleList() {
return roleList;
}
public void setRoleList(List<SysRole> roleList) {
this.roleList = roleList;
}
public String getWorkshop() {
return workshop;
}
public void setWorkshop(String workshop) {
this.workshop = workshop;
}
}
\ No newline at end of file
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.SysPermission;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import java.util.List; import java.util.List;
......
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.SysRole;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import java.util.List; import java.util.List;
......
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.UserInfo;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import java.util.List; import java.util.List;
......
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.SysPermission;
import java.util.List; import java.util.List;
public interface SysPermissionService { public interface SysPermissionService {
......
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.SysRole;
import net.sf.json.JSONArray; import net.sf.json.JSONArray;
import java.util.List; import java.util.List;
......
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.UserInfo;
import java.util.List; import java.util.List;
/** /**
......
package com.yxproject.start.service.impl; //package com.yxproject.start.service.impl;
//
import com.yxproject.start.mapper.SysPermissionMapper; //import com.yxproject.start.mapper.SysPermissionMapper;
import com.yxproject.start.service.SysPermissionService; //import com.yxproject.start.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; //import org.springframework.stereotype.Service;
//
import java.util.List; //import java.util.List;
//
/** ///**
* @author Administrator // * @author Administrator
*/ // */
@Service //@Service
public class SysPermissionServiceImpl implements SysPermissionService{ //public class SysPermissionServiceImpl implements SysPermissionService{
//
@Autowired // @Autowired
private SysPermissionMapper sysPermissionMapper; // private SysPermissionMapper sysPermissionMapper;
//
@Override // @Override
public boolean addPermission(SysPermission sysPermission) { // public boolean addPermission(SysPermission sysPermission) {
sysPermissionMapper.addPermissionByMap(sysPermission); // sysPermissionMapper.addPermissionByMap(sysPermission);
return true; // return true;
} // }
//
@Override // @Override
public List<SysPermission> getAllActivePermission() { // public List<SysPermission> getAllActivePermission() {
List<SysPermission> list = sysPermissionMapper.selectAllActivePermission(); // List<SysPermission> list = sysPermissionMapper.selectAllActivePermission();
return list; // return list;
} // }
@Override // @Override
public List<SysPermission> getAllPermission() { // public List<SysPermission> getAllPermission() {
List<SysPermission> list = sysPermissionMapper.selectAllPermission(); // List<SysPermission> list = sysPermissionMapper.selectAllPermission();
return list; // return list;
} // }
//
//
@Override // @Override
public boolean deletePermission(Integer permissionId) { // public boolean deletePermission(Integer permissionId) {
sysPermissionMapper.delPermission(permissionId); // sysPermissionMapper.delPermission(permissionId);
return true; // return true;
} // }
//
@Override // @Override
public boolean backPermission(Integer permissionId) { // public boolean backPermission(Integer permissionId) {
sysPermissionMapper.backPermission(permissionId); // sysPermissionMapper.backPermission(permissionId);
return true; // return true;
} // }
//
@Override // @Override
public SysPermission getPermissionByPId(Integer permissionId) { // public SysPermission getPermissionByPId(Integer permissionId) {
SysPermission sysPermission = sysPermissionMapper.selectPermissionByPid(permissionId); // SysPermission sysPermission = sysPermissionMapper.selectPermissionByPid(permissionId);
return sysPermission; // return sysPermission;
} // }
//
@Override // @Override
public String getParentNameByParentId(Long parentId) { // public String getParentNameByParentId(Long parentId) {
String parentName = sysPermissionMapper.selectParentNameById(parentId); // String parentName = sysPermissionMapper.selectParentNameById(parentId);
return parentName; // return parentName;
} // }
//
@Override // @Override
public boolean updatePermission(SysPermission sysPermission) { // public boolean updatePermission(SysPermission sysPermission) {
sysPermissionMapper.updatePermission(sysPermission); // sysPermissionMapper.updatePermission(sysPermission);
return true; // return true;
} // }
//
//
} //}
package com.yxproject.start.service.impl; //package com.yxproject.start.service.impl;
//
import com.yxproject.start.mapper.SysRoleMapper; //import com.yxproject.start.mapper.SysRoleMapper;
import com.yxproject.start.service.SysRoleService; //import com.yxproject.start.service.SysRoleService;
import net.sf.json.JSONArray; //import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; //import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; //import org.springframework.transaction.annotation.Transactional;
//
import java.util.List; //import java.util.List;
//
/** ///**
* @author liboyang // * @author liboyang
*/ // */
@Service //@Service
public class SysRoleServiceImpl implements SysRoleService { //public class SysRoleServiceImpl implements SysRoleService {
@Autowired // @Autowired
private SysRoleMapper sysRoleMapper; // private SysRoleMapper sysRoleMapper;
@Override // @Override
@Transactional(rollbackFor=Exception.class) // @Transactional(rollbackFor=Exception.class)
public boolean addRole(SysRole sysRole, JSONArray jsonArray) { // public boolean addRole(SysRole sysRole, JSONArray jsonArray) {
sysRoleMapper.addRoleByMap(sysRole); // sysRoleMapper.addRoleByMap(sysRole);
Integer roleId = sysRole.getId(); // Integer roleId = sysRole.getId();
for (Object object:jsonArray){ // for (Object object:jsonArray){
sysRoleMapper.addRolePermission(roleId,Integer.parseInt(object.toString())); // sysRoleMapper.addRolePermission(roleId,Integer.parseInt(object.toString()));
} // }
return true; // return true;
} // }
//
@Override // @Override
@Transactional(rollbackFor=Exception.class) // @Transactional(rollbackFor=Exception.class)
public boolean updateRole(SysRole sysRole, JSONArray ids, JSONArray oldIds) { // public boolean updateRole(SysRole sysRole, JSONArray ids, JSONArray oldIds) {
sysRoleMapper.updateSysRole(sysRole); // sysRoleMapper.updateSysRole(sysRole);
for (Object object:oldIds){ // for (Object object:oldIds){
sysRoleMapper.delRolePermission(sysRole.getId(),Integer.parseInt(object.toString())); // sysRoleMapper.delRolePermission(sysRole.getId(),Integer.parseInt(object.toString()));
} // }
for (Object object:ids){ // for (Object object:ids){
sysRoleMapper.addRolePermission(sysRole.getId(),Integer.parseInt(object.toString())); // sysRoleMapper.addRolePermission(sysRole.getId(),Integer.parseInt(object.toString()));
} // }
return true; // return true;
} // }
//
//
@Override // @Override
public List<SysRole> getAllRoleInfo() { // public List<SysRole> getAllRoleInfo() {
List<SysRole> list = sysRoleMapper.selectAllRole(); // List<SysRole> list = sysRoleMapper.selectAllRole();
return list; // return list;
} // }
//
@Override // @Override
public List<SysRole> getAllActiveRoleInfo() { // public List<SysRole> getAllActiveRoleInfo() {
List<SysRole> list = sysRoleMapper.selectAllActiveRole(); // List<SysRole> list = sysRoleMapper.selectAllActiveRole();
return list; // return list;
} // }
//
@Override // @Override
public boolean deleteRole(Integer roleId) { // public boolean deleteRole(Integer roleId) {
sysRoleMapper.delRole(roleId); // sysRoleMapper.delRole(roleId);
return true; // return true;
} // }
//
@Override // @Override
public boolean backRole(Integer roleId) { // public boolean backRole(Integer roleId) {
sysRoleMapper.backRole(roleId); // sysRoleMapper.backRole(roleId);
return true; // return true;
} // }
//
@Override // @Override
public SysRole getRoleByRoleId(Integer roleId) { // public SysRole getRoleByRoleId(Integer roleId) {
SysRole sysRole = sysRoleMapper.selectRoleByRoleId(roleId); // SysRole sysRole = sysRoleMapper.selectRoleByRoleId(roleId);
return sysRole; // return sysRole;
} // }
//
//
} //}
...@@ -18,25 +18,25 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -18,25 +18,25 @@ public class TaskListServiceImpl implements TaskListService {
@Override @Override
public List<CountCountyEntity> selectByCounty(String submitDate) { public List<CountCountyEntity> selectByCounty(String submitDate) {
List <CountCountyEntity> resultMap= taskListMapper.selectByCounty(submitDate); List <CountCountyEntity> resultList= taskListMapper.selectByCounty(submitDate);
return resultMap; return resultList;
} }
@Override @Override
public List<CountGajgEntity> selectByGajg(String submitDate, String countyCode) { public List<CountGajgEntity> selectByGajg(String submitDate, String countyCode) {
List <CountGajgEntity> resultMap= taskListMapper.selectByGajg(submitDate,countyCode); List <CountGajgEntity> resultList= taskListMapper.selectByGajg(submitDate,countyCode);
return resultMap; return resultList;
} }
@Override @Override
public List<TaskListEntity> selectACCU(String submitDate ,String countyCode,String Gajg ) { public List<TaskListEntity> selectACCU(String submitDate ,String countyCode,String Gajg ) {
List <TaskListEntity> resultMap= taskListMapper.selectACCU(submitDate,countyCode,Gajg); List <TaskListEntity> resultList= taskListMapper.selectACCU(submitDate,countyCode,Gajg);
return resultMap; return resultList;
} }
@Override @Override
public boolean createTaskList(List<TaskListEntity> resuleMap) { public boolean createTaskList(List<TaskListEntity> resultList) {
taskListMapper.createTaskList(resuleMap); taskListMapper.createTaskList(resultList);
return true; return true;
} }
......
package com.yxproject.start.service.impl; //package com.yxproject.start.service.impl;
//
import com.yxproject.start.mapper.SysRoleMapper; //import com.yxproject.start.mapper.SysRoleMapper;
import com.yxproject.start.mapper.UserInfoMapper; //import com.yxproject.start.mapper.UserInfoMapper;
import com.yxproject.start.service.UserInfoService; //import com.yxproject.start.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; //import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; //import org.springframework.transaction.annotation.Transactional;
//
import java.util.List; //import java.util.List;
//
/** ///**
* @author liboyang // * @author liboyang
*/ // */
@Service //@Service
//
public class UserInfoServiceImpl implements UserInfoService { //public class UserInfoServiceImpl implements UserInfoService {
//
@Autowired // @Autowired
private UserInfoMapper userInfoMapper; // private UserInfoMapper userInfoMapper;
@Autowired // @Autowired
private SysRoleMapper sysRoleMapper; // private SysRoleMapper sysRoleMapper;
//
@Override // @Override
public UserInfo findByUsername(String username) { // public UserInfo findByUsername(String username) {
//
UserInfo user = userInfoMapper.findUserByUsername(username); // UserInfo user = userInfoMapper.findUserByUsername(username);
//
return user; // return user;
} // }
//
@Override // @Override
@Transactional(rollbackFor=Exception.class) // @Transactional(rollbackFor=Exception.class)
public boolean addUser(UserInfo userinfo, Integer roleId) { // public boolean addUser(UserInfo userinfo, Integer roleId) {
userInfoMapper.saveUserInfo(userinfo); // userInfoMapper.saveUserInfo(userinfo);
if(roleId==-1){ // if(roleId==-1){
return true; // return true;
} // }
userInfoMapper.saveUserRole(userinfo.getId(),roleId); // userInfoMapper.saveUserRole(userinfo.getId(),roleId);
return true; // return true;
} // }
//
@Override // @Override
public List<UserInfo> getAllUserInfo() { // public List<UserInfo> getAllUserInfo() {
List<UserInfo> list = userInfoMapper.selectAllUserInfo(); // List<UserInfo> list = userInfoMapper.selectAllUserInfo();
return list; // return list;
} // }
//
@Override // @Override
public boolean deleteUserInfo(Integer userId) { // public boolean deleteUserInfo(Integer userId) {
userInfoMapper.delUserInfo(userId); // userInfoMapper.delUserInfo(userId);
return true; // return true;
} // }
//
@Override // @Override
public boolean BackUserInfo(Integer userId) { // public boolean BackUserInfo(Integer userId) {
userInfoMapper.backUserInfo(userId); // userInfoMapper.backUserInfo(userId);
return true; // return true;
} // }
//
@Override // @Override
public UserInfo getUserInfoByUserId(Integer userId) { // public UserInfo getUserInfoByUserId(Integer userId) {
UserInfo userInfo = userInfoMapper.selectUserInfoByUserId(userId); // UserInfo userInfo = userInfoMapper.selectUserInfoByUserId(userId);
return userInfo; // return userInfo;
} // }
//
@Override // @Override
@Transactional(rollbackFor=Exception.class) // @Transactional(rollbackFor=Exception.class)
public boolean updateUser(UserInfo userInfo, Integer roleId, Integer oldRoleId) { // public boolean updateUser(UserInfo userInfo, Integer roleId, Integer oldRoleId) {
userInfoMapper.updateUserInfo(userInfo); // userInfoMapper.updateUserInfo(userInfo);
if(roleId.equals(oldRoleId)){ // if(roleId.equals(oldRoleId)){
return true; // return true;
} // }
sysRoleMapper.updateUserRole(userInfo.getId(),roleId); // sysRoleMapper.updateUserRole(userInfo.getId(),roleId);
return true; // return true;
} // }
//
//
//
} //}
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