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 @@
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
......
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.SysRoleService;
import com.yxproject.start.service.UserInfoService;
......
//package com.yxproject.start.api;
//
//import com.yxproject.start.entity.PersonPostAbnormalEntity;
//import com.yxproject.start.entity.RedoRegistrationEntity;
//import com.yxproject.start.entity.TemporaryCertificateEntity;
//import com.yxproject.start.utils.ExportExcel;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//@RestController
//@RequestMapping("exportExcel")
//public class ExportExcelApi {
// /**
// * 导出临时证信息
// */
// @RequestMapping("ExportTemporaryCertificate")
// public boolean ExportTemporaryCertificate(){
// PersonPostAbnormalEntity temporaryCertificate = new PersonPostAbnormalEntity();
// ExportExcel obj = new ExportExcel();
// obj.exportTemporaryCertificateExcel((List<TemporaryCertificateEntity>) temporaryCertificate);
// return true;
// }
// /**
// * 导出重做证件信息
// */
// @RequestMapping("ExportRedoRegistration")
// public boolean ExportRedoRegistration(){
// RedoRegistrationEntity redoRegistration = new RedoRegistrationEntity();
// ExportExcel obj = new ExportExcel();
// obj.exportRedoRegistrationExcel((List<RedoRegistrationEntity>) redoRegistration);
// return true;
// }
//
//}
package com.yxproject.start.api;
import com.yxproject.start.entity.Preprocess.PersonPostAbnormalEntity;
import com.yxproject.start.entity.Preprocess.RedoRegistrationEntity;
import com.yxproject.start.entity.Preprocess.TemporaryCertificateEntity;
import com.yxproject.start.utils.ExportExcel;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("exportExcel")
public class ExportExcelApi {
/**
* 导出临时证信息
*/
@RequestMapping("ExportTemporaryCertificate")
public boolean ExportTemporaryCertificate(){
PersonPostAbnormalEntity temporaryCertificate = new PersonPostAbnormalEntity();
ExportExcel obj = new ExportExcel();
obj.exportTemporaryCertificateExcel((List<TemporaryCertificateEntity>) temporaryCertificate);
return true;
}
/**
* 导出重做证件信息
*/
@RequestMapping("ExportRedoRegistration")
public boolean ExportRedoRegistration(){
RedoRegistrationEntity redoRegistration = new RedoRegistrationEntity();
ExportExcel obj = new ExportExcel();
obj.exportRedoRegistrationExcel((List<RedoRegistrationEntity>) redoRegistration);
return true;
}
}
package com.yxproject.start.api;
import com.yxproject.start.entity.UserInfo;
import net.sf.json.JSONObject;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.IncorrectCredentialsException;
......
package com.yxproject.start.config;
import com.yxproject.start.service.UserInfoService;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.SimpleAuthenticationInfo;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection;
import org.apache.shiro.util.ByteSource;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @author Administrator
*/
public class MyShiroRealm extends AuthorizingRealm {
@Autowired
private UserInfoService userInfoService;
//告诉shiro如何根据获取到的用户信息中的密码和盐值来校验密码
{
//设置用于匹配密码的CredentialsMatcher
HashedCredentialsMatcher hashMatcher = new HashedCredentialsMatcher();
hashMatcher.setHashAlgorithmName("md5");
hashMatcher.setHashIterations(1024);
this.setCredentialsMatcher(hashMatcher);
}
@Override
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
System.out.println("权限配置-->MyShiroRealm.doGetAuthorizationInfo()");
SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo();
UserInfo userInfo = (UserInfo) principals.getPrimaryPrincipal();
for (SysRole role : userInfo.getRoleList()) {
authorizationInfo.addRole(role.getRole());
for (SysPermission p : role.getPermissions()) {
authorizationInfo.addStringPermission(p.getPermission());
}
}
return authorizationInfo;
}
/**
* @param token
* @return
* @throws AuthenticationException
*/
@Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token)
throws AuthenticationException {
System.out.println("MyShiroRealm.doGetAuthenticationInfo()");
//获取用户的输入的账号.
String username = (String) token.getPrincipal();
System.out.println(username);
System.out.println(token.getCredentials().toString());
//通过username从数据库中查找 User对象,如果找到,没找到.
//实际项目中,这里可以根据实际情况做缓存,如果不做,Shiro自己也是有时间间隔机制,2分钟内不会重复执行该方法
UserInfo user = userInfoService.findByUsername(username);
if (user == null || user.getState() == 1) {
return null;
}
SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo(
user,
user.getPassword(),
ByteSource.Util.bytes(user.getSalt()),
getName()
);
return authenticationInfo;
}
}
\ No newline at end of file
//package com.yxproject.start.config;
//
//import com.yxproject.start.service.UserInfoService;
//import org.apache.shiro.authc.AuthenticationException;
//import org.apache.shiro.authc.AuthenticationInfo;
//import org.apache.shiro.authc.AuthenticationToken;
//import org.apache.shiro.authc.SimpleAuthenticationInfo;
//import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
//import org.apache.shiro.authz.AuthorizationInfo;
//import org.apache.shiro.authz.SimpleAuthorizationInfo;
//import org.apache.shiro.realm.AuthorizingRealm;
//import org.apache.shiro.subject.PrincipalCollection;
//import org.apache.shiro.util.ByteSource;
//import org.springframework.beans.factory.annotation.Autowired;
//
//
///**
// * @author Administrator
// */
//public class MyShiroRealm extends AuthorizingRealm {
//
// @Autowired
// private UserInfoService userInfoService;
//
// //告诉shiro如何根据获取到的用户信息中的密码和盐值来校验密码
// {
// //设置用于匹配密码的CredentialsMatcher
// HashedCredentialsMatcher hashMatcher = new HashedCredentialsMatcher();
// hashMatcher.setHashAlgorithmName("md5");
// hashMatcher.setHashIterations(1024);
// this.setCredentialsMatcher(hashMatcher);
// }
//
// @Override
// protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
// System.out.println("权限配置-->MyShiroRealm.doGetAuthorizationInfo()");
// SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo();
// UserInfo userInfo = (UserInfo) principals.getPrimaryPrincipal();
// for (SysRole role : userInfo.getRoleList()) {
// authorizationInfo.addRole(role.getRole());
// for (SysPermission p : role.getPermissions()) {
// authorizationInfo.addStringPermission(p.getPermission());
// }
// }
// return authorizationInfo;
// }
//
// /**
// * @param token
// * @return
// * @throws AuthenticationException
// */
// @Override
// protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token)
// throws AuthenticationException {
// System.out.println("MyShiroRealm.doGetAuthenticationInfo()");
// //获取用户的输入的账号.
// String username = (String) token.getPrincipal();
// System.out.println(username);
// System.out.println(token.getCredentials().toString());
// //通过username从数据库中查找 User对象,如果找到,没找到.
// //实际项目中,这里可以根据实际情况做缓存,如果不做,Shiro自己也是有时间间隔机制,2分钟内不会重复执行该方法
// UserInfo user = userInfoService.findByUsername(username);
// if (user == null || user.getState() == 1) {
// return null;
// }
// SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo(
// user,
// user.getPassword(),
// ByteSource.Util.bytes(user.getSalt()),
// getName()
// );
// return authenticationInfo;
// }
//
//}
\ No newline at end of file
package com.yxproject.start.config;
import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author Administrator
*/
@Configuration
public class ShiroConfig {
@Autowired
private MyShiroRealm realm;
@Bean
public MyShiroRealm customRealm() {
return new MyShiroRealm();
}
@Bean
public DefaultWebSecurityManager securityManager() {
System.out.println("添加了DefaultWebSecurityManager");
DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
securityManager.setRealm(realm);
return securityManager;
}
@Bean
public static DefaultAdvisorAutoProxyCreator getDefaultAdvisorAutoProxyCreator() {
DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator();
defaultAdvisorAutoProxyCreator.setUsePrefix(true);
return defaultAdvisorAutoProxyCreator;
}
@Bean
public ShiroFilterChainDefinition shiroFilterChainDefinition() {
System.out.println("添加了过滤器链");
DefaultShiroFilterChainDefinition chainDefinition = new DefaultShiroFilterChainDefinition();
chainDefinition.addPathDefinition("/admin/**", "authc");
chainDefinition.addPathDefinition("/admin/**", "roles[admin]");
chainDefinition.addPathDefinition("/user/login", "anon");
chainDefinition.addPathDefinition("/user/logout", "anon");
chainDefinition.addPathDefinition("/user/**", "authc");
chainDefinition.addPathDefinition("/**", "anon");
return chainDefinition;
}
}
//package com.yxproject.start.config;
//
//import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
//import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
//import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
//import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author Administrator
// */
//@Configuration
//public class ShiroConfig {
//
// @Autowired
// private MyShiroRealm realm;
//
// @Bean
// public MyShiroRealm customRealm() {
// return new MyShiroRealm();
// }
//
// @Bean
// public DefaultWebSecurityManager securityManager() {
// System.out.println("添加了DefaultWebSecurityManager");
// DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
// securityManager.setRealm(realm);
// return securityManager;
// }
//
// @Bean
// public static DefaultAdvisorAutoProxyCreator getDefaultAdvisorAutoProxyCreator() {
//
// DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator();
// defaultAdvisorAutoProxyCreator.setUsePrefix(true);
//
// return defaultAdvisorAutoProxyCreator;
// }
//
// @Bean
// public ShiroFilterChainDefinition shiroFilterChainDefinition() {
// System.out.println("添加了过滤器链");
// DefaultShiroFilterChainDefinition chainDefinition = new DefaultShiroFilterChainDefinition();
//
// chainDefinition.addPathDefinition("/admin/**", "authc");
// chainDefinition.addPathDefinition("/admin/**", "roles[admin]");
// chainDefinition.addPathDefinition("/user/login", "anon");
// chainDefinition.addPathDefinition("/user/logout", "anon");
// chainDefinition.addPathDefinition("/user/**", "authc");
// chainDefinition.addPathDefinition("/**", "anon");
//
// 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);
}
}
package com.yxproject.start.entity;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "PERSON_POST", schema = "YX", catalog = "")
public class PersonPostEntity {
private String waybillNumber;
private String backWaybillNumber;
private String orderNumber;
private Time createDate;
private String openid;
private String wcPlayOrderNumber;
private String playState;
private String orderState;
private String applicantName;
private String senderName;
private String senderPhone;
private String senderAddress;
private String recipientName;
private String recipientPhone;
private String recipientAddress;
private String orderBlankNumber;
private String getToProvince;
private String getToCity;
private String getToCounty;
private String businessType;
private String latticeMouthInformation;
private String natureOfTheInternal;
private String natureOfTheInformation;
private String firstWhite;
private Long idCard;
private String acceptTheMatter;
private Time beginUsefulLife;
private Time validPeriodEnd;
private String note;
private Long state;
private Time uploadDate;
private Long fileId;
private Time analysisDate;
private Time printDate;
private Time formStartTime;
private Time formDeadline;
@Basic
@Column(name = "WAYBILL_NUMBER")
public String getWaybillNumber() {
return waybillNumber;
}
public void setWaybillNumber(String waybillNumber) {
this.waybillNumber = waybillNumber;
}
@Basic
@Column(name = "BACK_WAYBILL_NUMBER")
public String getBackWaybillNumber() {
return backWaybillNumber;
}
public void setBackWaybillNumber(String backWaybillNumber) {
this.backWaybillNumber = backWaybillNumber;
}
@Basic
@Column(name = "ORDER_NUMBER")
public String getOrderNumber() {
return orderNumber;
}
public void setOrderNumber(String orderNumber) {
this.orderNumber = orderNumber;
}
@Basic
@Column(name = "CREATE_DATE")
public Time getCreateDate() {
return createDate;
}
public void setCreateDate(Time createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "OPENID")
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
@Basic
@Column(name = "WC_PLAY_ORDER_NUMBER")
public String getWcPlayOrderNumber() {
return wcPlayOrderNumber;
}
public void setWcPlayOrderNumber(String wcPlayOrderNumber) {
this.wcPlayOrderNumber = wcPlayOrderNumber;
}
@Basic
@Column(name = "PLAY_STATE")
public String getPlayState() {
return playState;
}
public void setPlayState(String playState) {
this.playState = playState;
}
@Basic
@Column(name = "ORDER_STATE")
public String getOrderState() {
return orderState;
}
public void setOrderState(String orderState) {
this.orderState = orderState;
}
@Basic
@Column(name = "APPLICANT_NAME")
public String getApplicantName() {
return applicantName;
}
public void setApplicantName(String applicantName) {
this.applicantName = applicantName;
}
@Basic
@Column(name = "SENDER_NAME")
public String getSenderName() {
return senderName;
}
public void setSenderName(String senderName) {
this.senderName = senderName;
}
@Basic
@Column(name = "SENDER_PHONE")
public String getSenderPhone() {
return senderPhone;
}
public void setSenderPhone(String senderPhone) {
this.senderPhone = senderPhone;
}
@Basic
@Column(name = "SENDER_ADDRESS")
public String getSenderAddress() {
return senderAddress;
}
public void setSenderAddress(String senderAddress) {
this.senderAddress = senderAddress;
}
@Basic
@Column(name = "RECIPIENT_NAME")
public String getRecipientName() {
return recipientName;
}
public void setRecipientName(String recipientName) {
this.recipientName = recipientName;
}
@Basic
@Column(name = "RECIPIENT_PHONE")
public String getRecipientPhone() {
return recipientPhone;
}
public void setRecipientPhone(String recipientPhone) {
this.recipientPhone = recipientPhone;
}
@Basic
@Column(name = "RECIPIENT_ADDRESS")
public String getRecipientAddress() {
return recipientAddress;
}
public void setRecipientAddress(String recipientAddress) {
this.recipientAddress = recipientAddress;
}
@Basic
@Column(name = "ORDER_BLANK_NUMBER")
public String getOrderBlankNumber() {
return orderBlankNumber;
}
public void setOrderBlankNumber(String orderBlankNumber) {
this.orderBlankNumber = orderBlankNumber;
}
@Basic
@Column(name = "GET_TO_PROVINCE")
public String getGetToProvince() {
return getToProvince;
}
public void setGetToProvince(String getToProvince) {
this.getToProvince = getToProvince;
}
@Basic
@Column(name = "GET_TO_CITY")
public String getGetToCity() {
return getToCity;
}
public void setGetToCity(String getToCity) {
this.getToCity = getToCity;
}
@Basic
@Column(name = "GET_TO_COUNTY")
public String getGetToCounty() {
return getToCounty;
}
public void setGetToCounty(String getToCounty) {
this.getToCounty = getToCounty;
}
@Basic
@Column(name = "BUSINESS_TYPE")
public String getBusinessType() {
return businessType;
}
public void setBusinessType(String businessType) {
this.businessType = businessType;
}
@Basic
@Column(name = "LATTICE_MOUTH_INFORMATION")
public String getLatticeMouthInformation() {
return latticeMouthInformation;
}
public void setLatticeMouthInformation(String latticeMouthInformation) {
this.latticeMouthInformation = latticeMouthInformation;
}
@Basic
@Column(name = "NATURE_OF_THE_INTERNAL")
public String getNatureOfTheInternal() {
return natureOfTheInternal;
}
public void setNatureOfTheInternal(String natureOfTheInternal) {
this.natureOfTheInternal = natureOfTheInternal;
}
@Basic
@Column(name = "NATURE_OF_THE_INFORMATION")
public String getNatureOfTheInformation() {
return natureOfTheInformation;
}
public void setNatureOfTheInformation(String natureOfTheInformation) {
this.natureOfTheInformation = natureOfTheInformation;
}
@Basic
@Column(name = "FIRST_WHITE")
public String getFirstWhite() {
return firstWhite;
}
public void setFirstWhite(String firstWhite) {
this.firstWhite = firstWhite;
}
@Basic
@Column(name = "ID_CARD")
public Long getIdCard() {
return idCard;
}
public void setIdCard(Long idCard) {
this.idCard = idCard;
}
@Basic
@Column(name = "ACCEPT_THE_MATTER")
public String getAcceptTheMatter() {
return acceptTheMatter;
}
public void setAcceptTheMatter(String acceptTheMatter) {
this.acceptTheMatter = acceptTheMatter;
}
@Basic
@Column(name = "BEGIN_USEFUL_LIFE")
public Time getBeginUsefulLife() {
return beginUsefulLife;
}
public void setBeginUsefulLife(Time beginUsefulLife) {
this.beginUsefulLife = beginUsefulLife;
}
@Basic
@Column(name = "VALID_PERIOD_END")
public Time getValidPeriodEnd() {
return validPeriodEnd;
}
public void setValidPeriodEnd(Time validPeriodEnd) {
this.validPeriodEnd = validPeriodEnd;
}
@Basic
@Column(name = "NOTE")
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
@Basic
@Column(name = "STATE")
public Long getState() {
return state;
}
public void setState(Long state) {
this.state = state;
}
@Basic
@Column(name = "UPLOAD_DATE")
public Time getUploadDate() {
return uploadDate;
}
public void setUploadDate(Time uploadDate) {
this.uploadDate = uploadDate;
}
@Basic
@Column(name = "FILE_ID")
public Long getFileId() {
return fileId;
}
public void setFileId(Long fileId) {
this.fileId = fileId;
}
@Basic
@Column(name = "ANALYSIS_DATE")
public Time getAnalysisDate() {
return analysisDate;
}
public void setAnalysisDate(Time analysisDate) {
this.analysisDate = analysisDate;
}
@Basic
@Column(name = "PRINT_DATE")
public Time getPrintDate() {
return printDate;
}
public void setPrintDate(Time printDate) {
this.printDate = printDate;
}
@Basic
@Column(name = "FORM_START_TIME")
public Time getFormStartTime() {
return formStartTime;
}
public void setFormStartTime(Time formStartTime) {
this.formStartTime = formStartTime;
}
@Basic
@Column(name = "FORM_DEADLINE")
public Time getFormDeadline() {
return formDeadline;
}
public void setFormDeadline(Time formDeadline) {
this.formDeadline = formDeadline;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PersonPostEntity that = (PersonPostEntity) o;
return Objects.equals(waybillNumber, that.waybillNumber) &&
Objects.equals(backWaybillNumber, that.backWaybillNumber) &&
Objects.equals(orderNumber, that.orderNumber) &&
Objects.equals(createDate, that.createDate) &&
Objects.equals(openid, that.openid) &&
Objects.equals(wcPlayOrderNumber, that.wcPlayOrderNumber) &&
Objects.equals(playState, that.playState) &&
Objects.equals(orderState, that.orderState) &&
Objects.equals(applicantName, that.applicantName) &&
Objects.equals(senderName, that.senderName) &&
Objects.equals(senderPhone, that.senderPhone) &&
Objects.equals(senderAddress, that.senderAddress) &&
Objects.equals(recipientName, that.recipientName) &&
Objects.equals(recipientPhone, that.recipientPhone) &&
Objects.equals(recipientAddress, that.recipientAddress) &&
Objects.equals(orderBlankNumber, that.orderBlankNumber) &&
Objects.equals(getToProvince, that.getToProvince) &&
Objects.equals(getToCity, that.getToCity) &&
Objects.equals(getToCounty, that.getToCounty) &&
Objects.equals(businessType, that.businessType) &&
Objects.equals(latticeMouthInformation, that.latticeMouthInformation) &&
Objects.equals(natureOfTheInternal, that.natureOfTheInternal) &&
Objects.equals(natureOfTheInformation, that.natureOfTheInformation) &&
Objects.equals(firstWhite, that.firstWhite) &&
Objects.equals(idCard, that.idCard) &&
Objects.equals(acceptTheMatter, that.acceptTheMatter) &&
Objects.equals(beginUsefulLife, that.beginUsefulLife) &&
Objects.equals(validPeriodEnd, that.validPeriodEnd) &&
Objects.equals(note, that.note) &&
Objects.equals(state, that.state) &&
Objects.equals(uploadDate, that.uploadDate) &&
Objects.equals(fileId, that.fileId) &&
Objects.equals(analysisDate, that.analysisDate) &&
Objects.equals(printDate, that.printDate) &&
Objects.equals(formStartTime, that.formStartTime) &&
Objects.equals(formDeadline, that.formDeadline);
}
@Override
public int hashCode() {
return Objects.hash(waybillNumber, backWaybillNumber, orderNumber, createDate, openid, wcPlayOrderNumber, playState, orderState, applicantName, senderName, senderPhone, senderAddress, recipientName, recipientPhone, recipientAddress, orderBlankNumber, getToProvince, getToCity, getToCounty, businessType, latticeMouthInformation, natureOfTheInternal, natureOfTheInformation, firstWhite, idCard, acceptTheMatter, beginUsefulLife, validPeriodEnd, note, state, uploadDate, fileId, analysisDate, printDate, formStartTime, formDeadline);
}
}
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;
import com.yxproject.start.entity.SysPermission;
import org.apache.ibatis.annotations.*;
import java.util.List;
......
package com.yxproject.start.mapper;
import com.yxproject.start.entity.SysRole;
import org.apache.ibatis.annotations.*;
import java.util.List;
......
package com.yxproject.start.mapper;
import com.yxproject.start.entity.UserInfo;
import org.apache.ibatis.annotations.*;
import java.util.List;
......
package com.yxproject.start.service;
import com.yxproject.start.entity.SysPermission;
import java.util.List;
public interface SysPermissionService {
......
package com.yxproject.start.service;
import com.yxproject.start.entity.SysRole;
import net.sf.json.JSONArray;
import java.util.List;
......
package com.yxproject.start.service;
import com.yxproject.start.entity.UserInfo;
import java.util.List;
/**
......
package com.yxproject.start.service.impl;
import com.yxproject.start.mapper.SysPermissionMapper;
import com.yxproject.start.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author Administrator
*/
@Service
public class SysPermissionServiceImpl implements SysPermissionService{
@Autowired
private SysPermissionMapper sysPermissionMapper;
@Override
public boolean addPermission(SysPermission sysPermission) {
sysPermissionMapper.addPermissionByMap(sysPermission);
return true;
}
@Override
public List<SysPermission> getAllActivePermission() {
List<SysPermission> list = sysPermissionMapper.selectAllActivePermission();
return list;
}
@Override
public List<SysPermission> getAllPermission() {
List<SysPermission> list = sysPermissionMapper.selectAllPermission();
return list;
}
@Override
public boolean deletePermission(Integer permissionId) {
sysPermissionMapper.delPermission(permissionId);
return true;
}
@Override
public boolean backPermission(Integer permissionId) {
sysPermissionMapper.backPermission(permissionId);
return true;
}
@Override
public SysPermission getPermissionByPId(Integer permissionId) {
SysPermission sysPermission = sysPermissionMapper.selectPermissionByPid(permissionId);
return sysPermission;
}
@Override
public String getParentNameByParentId(Long parentId) {
String parentName = sysPermissionMapper.selectParentNameById(parentId);
return parentName;
}
@Override
public boolean updatePermission(SysPermission sysPermission) {
sysPermissionMapper.updatePermission(sysPermission);
return true;
}
}
//package com.yxproject.start.service.impl;
//
//import com.yxproject.start.mapper.SysPermissionMapper;
//import com.yxproject.start.service.SysPermissionService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
///**
// * @author Administrator
// */
//@Service
//public class SysPermissionServiceImpl implements SysPermissionService{
//
// @Autowired
// private SysPermissionMapper sysPermissionMapper;
//
// @Override
// public boolean addPermission(SysPermission sysPermission) {
// sysPermissionMapper.addPermissionByMap(sysPermission);
// return true;
// }
//
// @Override
// public List<SysPermission> getAllActivePermission() {
// List<SysPermission> list = sysPermissionMapper.selectAllActivePermission();
// return list;
// }
// @Override
// public List<SysPermission> getAllPermission() {
// List<SysPermission> list = sysPermissionMapper.selectAllPermission();
// return list;
// }
//
//
// @Override
// public boolean deletePermission(Integer permissionId) {
// sysPermissionMapper.delPermission(permissionId);
// return true;
// }
//
// @Override
// public boolean backPermission(Integer permissionId) {
// sysPermissionMapper.backPermission(permissionId);
// return true;
// }
//
// @Override
// public SysPermission getPermissionByPId(Integer permissionId) {
// SysPermission sysPermission = sysPermissionMapper.selectPermissionByPid(permissionId);
// return sysPermission;
// }
//
// @Override
// public String getParentNameByParentId(Long parentId) {
// String parentName = sysPermissionMapper.selectParentNameById(parentId);
// return parentName;
// }
//
// @Override
// public boolean updatePermission(SysPermission sysPermission) {
// sysPermissionMapper.updatePermission(sysPermission);
// return true;
// }
//
//
//}
package com.yxproject.start.service.impl;
import com.yxproject.start.mapper.SysRoleMapper;
import com.yxproject.start.service.SysRoleService;
import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* @author liboyang
*/
@Service
public class SysRoleServiceImpl implements SysRoleService {
@Autowired
private SysRoleMapper sysRoleMapper;
@Override
@Transactional(rollbackFor=Exception.class)
public boolean addRole(SysRole sysRole, JSONArray jsonArray) {
sysRoleMapper.addRoleByMap(sysRole);
Integer roleId = sysRole.getId();
for (Object object:jsonArray){
sysRoleMapper.addRolePermission(roleId,Integer.parseInt(object.toString()));
}
return true;
}
@Override
@Transactional(rollbackFor=Exception.class)
public boolean updateRole(SysRole sysRole, JSONArray ids, JSONArray oldIds) {
sysRoleMapper.updateSysRole(sysRole);
for (Object object:oldIds){
sysRoleMapper.delRolePermission(sysRole.getId(),Integer.parseInt(object.toString()));
}
for (Object object:ids){
sysRoleMapper.addRolePermission(sysRole.getId(),Integer.parseInt(object.toString()));
}
return true;
}
@Override
public List<SysRole> getAllRoleInfo() {
List<SysRole> list = sysRoleMapper.selectAllRole();
return list;
}
@Override
public List<SysRole> getAllActiveRoleInfo() {
List<SysRole> list = sysRoleMapper.selectAllActiveRole();
return list;
}
@Override
public boolean deleteRole(Integer roleId) {
sysRoleMapper.delRole(roleId);
return true;
}
@Override
public boolean backRole(Integer roleId) {
sysRoleMapper.backRole(roleId);
return true;
}
@Override
public SysRole getRoleByRoleId(Integer roleId) {
SysRole sysRole = sysRoleMapper.selectRoleByRoleId(roleId);
return sysRole;
}
}
//package com.yxproject.start.service.impl;
//
//import com.yxproject.start.mapper.SysRoleMapper;
//import com.yxproject.start.service.SysRoleService;
//import net.sf.json.JSONArray;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//
//import java.util.List;
//
///**
// * @author liboyang
// */
//@Service
//public class SysRoleServiceImpl implements SysRoleService {
// @Autowired
// private SysRoleMapper sysRoleMapper;
// @Override
// @Transactional(rollbackFor=Exception.class)
// public boolean addRole(SysRole sysRole, JSONArray jsonArray) {
// sysRoleMapper.addRoleByMap(sysRole);
// Integer roleId = sysRole.getId();
// for (Object object:jsonArray){
// sysRoleMapper.addRolePermission(roleId,Integer.parseInt(object.toString()));
// }
// return true;
// }
//
// @Override
// @Transactional(rollbackFor=Exception.class)
// public boolean updateRole(SysRole sysRole, JSONArray ids, JSONArray oldIds) {
// sysRoleMapper.updateSysRole(sysRole);
// for (Object object:oldIds){
// sysRoleMapper.delRolePermission(sysRole.getId(),Integer.parseInt(object.toString()));
// }
// for (Object object:ids){
// sysRoleMapper.addRolePermission(sysRole.getId(),Integer.parseInt(object.toString()));
// }
// return true;
// }
//
//
// @Override
// public List<SysRole> getAllRoleInfo() {
// List<SysRole> list = sysRoleMapper.selectAllRole();
// return list;
// }
//
// @Override
// public List<SysRole> getAllActiveRoleInfo() {
// List<SysRole> list = sysRoleMapper.selectAllActiveRole();
// return list;
// }
//
// @Override
// public boolean deleteRole(Integer roleId) {
// sysRoleMapper.delRole(roleId);
// return true;
// }
//
// @Override
// public boolean backRole(Integer roleId) {
// sysRoleMapper.backRole(roleId);
// return true;
// }
//
// @Override
// public SysRole getRoleByRoleId(Integer roleId) {
// SysRole sysRole = sysRoleMapper.selectRoleByRoleId(roleId);
// return sysRole;
// }
//
//
//}
......@@ -18,25 +18,25 @@ public class TaskListServiceImpl implements TaskListService {
@Override
public List<CountCountyEntity> selectByCounty(String submitDate) {
List <CountCountyEntity> resultMap= taskListMapper.selectByCounty(submitDate);
return resultMap;
List <CountCountyEntity> resultList= taskListMapper.selectByCounty(submitDate);
return resultList;
}
@Override
public List<CountGajgEntity> selectByGajg(String submitDate, String countyCode) {
List <CountGajgEntity> resultMap= taskListMapper.selectByGajg(submitDate,countyCode);
return resultMap;
List <CountGajgEntity> resultList= taskListMapper.selectByGajg(submitDate,countyCode);
return resultList;
}
@Override
public List<TaskListEntity> selectACCU(String submitDate ,String countyCode,String Gajg ) {
List <TaskListEntity> resultMap= taskListMapper.selectACCU(submitDate,countyCode,Gajg);
return resultMap;
List <TaskListEntity> resultList= taskListMapper.selectACCU(submitDate,countyCode,Gajg);
return resultList;
}
@Override
public boolean createTaskList(List<TaskListEntity> resuleMap) {
taskListMapper.createTaskList(resuleMap);
public boolean createTaskList(List<TaskListEntity> resultList) {
taskListMapper.createTaskList(resultList);
return true;
}
......
package com.yxproject.start.service.impl;
import com.yxproject.start.mapper.SysRoleMapper;
import com.yxproject.start.mapper.UserInfoMapper;
import com.yxproject.start.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* @author liboyang
*/
@Service
public class UserInfoServiceImpl implements UserInfoService {
@Autowired
private UserInfoMapper userInfoMapper;
@Autowired
private SysRoleMapper sysRoleMapper;
@Override
public UserInfo findByUsername(String username) {
UserInfo user = userInfoMapper.findUserByUsername(username);
return user;
}
@Override
@Transactional(rollbackFor=Exception.class)
public boolean addUser(UserInfo userinfo, Integer roleId) {
userInfoMapper.saveUserInfo(userinfo);
if(roleId==-1){
return true;
}
userInfoMapper.saveUserRole(userinfo.getId(),roleId);
return true;
}
@Override
public List<UserInfo> getAllUserInfo() {
List<UserInfo> list = userInfoMapper.selectAllUserInfo();
return list;
}
@Override
public boolean deleteUserInfo(Integer userId) {
userInfoMapper.delUserInfo(userId);
return true;
}
@Override
public boolean BackUserInfo(Integer userId) {
userInfoMapper.backUserInfo(userId);
return true;
}
@Override
public UserInfo getUserInfoByUserId(Integer userId) {
UserInfo userInfo = userInfoMapper.selectUserInfoByUserId(userId);
return userInfo;
}
@Override
@Transactional(rollbackFor=Exception.class)
public boolean updateUser(UserInfo userInfo, Integer roleId, Integer oldRoleId) {
userInfoMapper.updateUserInfo(userInfo);
if(roleId.equals(oldRoleId)){
return true;
}
sysRoleMapper.updateUserRole(userInfo.getId(),roleId);
return true;
}
}
//package com.yxproject.start.service.impl;
//
//import com.yxproject.start.mapper.SysRoleMapper;
//import com.yxproject.start.mapper.UserInfoMapper;
//import com.yxproject.start.service.UserInfoService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//
//import java.util.List;
//
///**
// * @author liboyang
// */
//@Service
//
//public class UserInfoServiceImpl implements UserInfoService {
//
// @Autowired
// private UserInfoMapper userInfoMapper;
// @Autowired
// private SysRoleMapper sysRoleMapper;
//
// @Override
// public UserInfo findByUsername(String username) {
//
// UserInfo user = userInfoMapper.findUserByUsername(username);
//
// return user;
// }
//
// @Override
// @Transactional(rollbackFor=Exception.class)
// public boolean addUser(UserInfo userinfo, Integer roleId) {
// userInfoMapper.saveUserInfo(userinfo);
// if(roleId==-1){
// return true;
// }
// userInfoMapper.saveUserRole(userinfo.getId(),roleId);
// return true;
// }
//
// @Override
// public List<UserInfo> getAllUserInfo() {
// List<UserInfo> list = userInfoMapper.selectAllUserInfo();
// return list;
// }
//
// @Override
// public boolean deleteUserInfo(Integer userId) {
// userInfoMapper.delUserInfo(userId);
// return true;
// }
//
// @Override
// public boolean BackUserInfo(Integer userId) {
// userInfoMapper.backUserInfo(userId);
// return true;
// }
//
// @Override
// public UserInfo getUserInfoByUserId(Integer userId) {
// UserInfo userInfo = userInfoMapper.selectUserInfoByUserId(userId);
// return userInfo;
// }
//
// @Override
// @Transactional(rollbackFor=Exception.class)
// public boolean updateUser(UserInfo userInfo, Integer roleId, Integer oldRoleId) {
// userInfoMapper.updateUserInfo(userInfo);
// if(roleId.equals(oldRoleId)){
// return true;
// }
// sysRoleMapper.updateUserRole(userInfo.getId(),roleId);
// return true;
// }
//
//
//
//}
//package com.yxproject.start.utils;
//
//import com.yxproject.start.entity.PersonPostAbnormalEntity;
//import com.yxproject.start.entity.PersonalProgressStatusEntity;
//import com.yxproject.start.entity.RedoRegistrationEntity;
//import com.yxproject.start.entity.TemporaryCertificateEntity;
//import org.apache.poi.hssf.usermodel.*;
//
//import java.io.FileOutputStream;
//import java.io.IOException;
//import java.text.SimpleDateFormat;
//import java.util.Date;
//import java.util.List;
//
//import static java.lang.Integer.parseInt;
//import static java.lang.Integer.valueOf;
//
///**
// * @auther zhangyusheng
// * 2019/2/12 15:44
// */
//public class ExportExcel {
// /**
// * 导出错误邮寄信息
// * @param personPostAbnormalEntities
// * @return
// */
// public static String exportPersonPostAbnormalExcel(List<PersonPostAbnormalEntity> personPostAbnormalEntities){
// //第一步创建workbook
// HSSFWorkbook wb = new HSSFWorkbook();
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
// HSSFSheet sheet = wb.createSheet("邮寄信息错误信息表");
// sheet.setColumnWidth(0, 30 * 100);
// sheet.setColumnWidth(1, 30 * 70);
// sheet.setColumnWidth(2, 30 * 80);
// sheet.setColumnWidth(3, 30 * 50);
// sheet.setColumnWidth(4, 30 * 110);
// sheet.setColumnWidth(5, 30 * 110);
// sheet.setColumnWidth(6, 30 * 110);
// sheet.setColumnWidth(7, 30 * 110);
// sheet.setColumnWidth(8, 30 * 110);
// sheet.setColumnWidth(9, 30 * 110);
// sheet.setColumnWidth(10, 30 * 110);
// sheet.setColumnWidth(11, 30 * 110);
// sheet.setColumnWidth(12, 30 * 110);
// sheet.setColumnWidth(13, 30 * 110);
// sheet.setColumnWidth(14, 30 * 110);
// sheet.setColumnWidth(15, 30 * 110);
// sheet.setColumnWidth(16, 30 * 110);
// sheet.setColumnWidth(17, 30 * 110);
// sheet.setColumnWidth(18, 30 * 110);
// sheet.setColumnWidth(19, 30 * 110);
// sheet.setColumnWidth(20, 30 * 110);
// sheet.setColumnWidth(21, 30 * 110);
// sheet.setColumnWidth(22, 30 * 110);
// sheet.setColumnWidth(23, 30 * 110);
// sheet.setColumnWidth(24, 30 * 110);
// //第三步创建行row:添加表头0行
// HSSFRow row = sheet.createRow(0);
// HSSFCellStyle style = wb.createCellStyle();//样式
// style.setVerticalAlignment(HSSFCellStyle.ALIGN_LEFT); //设置垂直居中
// style.setAlignment(HSSFCellStyle.ALIGN_LEFT);
// style.setWrapText(true);//设置自动换行
// HSSFFont font = wb.createFont();
// font.setFontHeightInPoints((short) 12);
// style.setFont(font);
// row = sheet.createRow(0); //创建下标为0的单元格
// row.setHeightInPoints(Short.parseShort("20"));//设置行高
// HSSFCell cell = row.createCell(0); //设定值
// cell.setCellValue("邮件号");
// cell = row.createCell(1); //设定值
// cell.setCellValue("反邮件号");
// cell = row.createCell(2); //设定值
// cell.setCellValue("订单号");
// cell = row.createCell(3); //设定值
// cell.setCellValue("订单生成时间");
// cell = row.createCell(4); //设定值
// cell.setCellValue("openid");
// cell = row.createCell(5); //设定值
// cell.setCellValue("微信支付订单号");
// cell = row.createCell(6); //设定值
// cell.setCellValue("支付状态");
// cell = row.createCell(7); //设定值
// cell.setCellValue("订单状态");
// cell = row.createCell(8); //设定值
// cell.setCellValue("申请人姓名");
// cell = row.createCell(9); //设定值
// cell.setCellValue("寄件人姓名");
// cell = row.createCell(10); //设定值
// cell.setCellValue("寄件人联系方式");
// cell = row.createCell(1); //设定值
// cell.setCellValue("寄件人地址");
// cell = row.createCell(11); //设定值
// cell.setCellValue("收件人姓名");
// cell = row.createCell(12); //设定值
// cell.setCellValue("收件人联系方式");
// cell = row.createCell(13); //设定值
// cell.setCellValue("收件人地址");
// cell = row.createCell(14); //设定值
// cell.setCellValue("配货单号");
// cell = row.createCell(15); //设定值
// cell.setCellValue("到件省/直辖市");
// cell = row.createCell(16); //设定值
// cell.setCellValue("到件城市");
// cell = row.createCell(17); //设定值
// cell.setCellValue("到件县/区");
// cell = row.createCell(18); //设定值
// cell.setCellValue("业务类型");
// cell = row.createCell(19); //设定值
// cell.setCellValue("格口信息");
// cell = row.createCell(20); //设定值
// cell.setCellValue("内件性质");
// cell = row.createCell(21); //设定值
// cell.setCellValue("内件信息");
// cell = row.createCell(22); //设定值
// cell.setCellValue("留白一");
// cell = row.createCell(23); //设定值
// cell.setCellValue("错误代码");
// cell = row.createCell(24); //设定值
// cell.setCellValue("检查日期");
// for (int i =0;i<personPostAbnormalEntities.size();i++){
// PersonPostAbnormalEntity personPostAbnormalEntity = personPostAbnormalEntities.get(i);
// row = sheet.createRow(i + 1);
// cell = row.createCell(0); //设定值
// cell.setCellValue(personPostAbnormalEntity.getWaybillNumber());
// cell = row.createCell(1); //设定值
// cell.setCellValue(personPostAbnormalEntity.getBackWaybillNumber());
// cell = row.createCell(2); //设定值
// cell.setCellValue(personPostAbnormalEntity.getOrderNumber());
// cell = row.createCell(3); //设定值
// cell.setCellValue(personPostAbnormalEntity.getCreateDate());
// cell = row.createCell(4); //设定值
// cell.setCellValue(personPostAbnormalEntity.getOpenid());
// cell = row.createCell(5); //设定值
// cell.setCellValue(personPostAbnormalEntity.getWcPlayOrderNumber());
// cell = row.createCell(6); //设定值
// cell.setCellValue(personPostAbnormalEntity.getPlayState());
// cell = row.createCell(7); //设定值
// cell.setCellValue(personPostAbnormalEntity.getOrderState());
// cell = row.createCell(8); //设定值
// cell.setCellValue(personPostAbnormalEntity.getApplicantName());
// cell = row.createCell(9); //设定值
// cell.setCellValue(personPostAbnormalEntity.getSenderName());
// cell = row.createCell(10); //设定值
// cell.setCellValue(personPostAbnormalEntity.getSenderPhone());
// cell = row.createCell(11); //设定值
// cell.setCellValue(personPostAbnormalEntity.getRecipientName());
// cell = row.createCell(12); //设定值
// cell.setCellValue(personPostAbnormalEntity.getRecipientPhone());
// cell = row.createCell(13); //设定值
// cell.setCellValue(personPostAbnormalEntity.getRecipientAddress());
// cell = row.createCell(14); //设定值
// cell.setCellValue(personPostAbnormalEntity.getOrderBlankNumber());
// cell = row.createCell(15); //设定值
// cell.setCellValue(personPostAbnormalEntity.getGetToProvince());
// cell = row.createCell(16); //设定值
// cell.setCellValue(personPostAbnormalEntity.getGetToCity());
// cell = row.createCell(17); //设定值
// cell.setCellValue(personPostAbnormalEntity.getGetToCounty());
// cell = row.createCell(18); //设定值
// cell.setCellValue(personPostAbnormalEntity.getBusinessType());
// cell = row.createCell(19); //设定值
// cell.setCellValue(personPostAbnormalEntity.getLatticeMouthInformation());
// cell = row.createCell(20); //设定值
// cell.setCellValue(personPostAbnormalEntity.getNatureOfTheInternal());
// cell = row.createCell(21); //设定值
// cell.setCellValue(personPostAbnormalEntity.getNatureOfTheInformation());
// cell = row.createCell(22); //设定值
// cell.setCellValue(personPostAbnormalEntity.getFirstWhite());
// cell = row.createCell(23); //设定值
// cell.setCellValue(personPostAbnormalEntity.getErrCode());
//// cell = row.createCell(24); //设定值
//// cell.setCellValue(personPostAbnormalEntity.getCheck_Date());
// }
// //第六步将生成excel文件保存到指定路径下
// FileOutputStream fout = null;
// try {
//// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
// fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "邮寄错误信息表" + ".xls");
// wb.write(fout);
// fout.close();
// } catch (IOException e) {
// e.printStackTrace();
// }
//
// System.out.println("Excel文件生成成功..." + new Date());
//// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
// return "D:\\Excel\\" + simpleDateFormat.format(new Date()) + "邮寄错误信息表" + ".xls";
// }
//
// /**
// * 导出个人制证状态信息表
// * @param personalProgressStatusEntities
// * @return
// */
// public static String exportPersonalProgressStatusExcel(List<PersonalProgressStatusEntity> personalProgressStatusEntities){
// SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
// //第一步创建workbook
// HSSFWorkbook wb = new HSSFWorkbook();
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
// HSSFSheet sheet = wb.createSheet("个人制证状态信息表");
// sheet.setColumnWidth(0, 30 * 110);
// sheet.setColumnWidth(1, 30 * 110);
// sheet.setColumnWidth(2, 30 * 110);
// sheet.setColumnWidth(3, 30 * 110);
// sheet.setColumnWidth(4, 30 * 110);
// sheet.setColumnWidth(5, 30 * 110);
// sheet.setColumnWidth(6, 30 * 110);
// sheet.setColumnWidth(7, 30 * 110);
// sheet.setColumnWidth(8, 30 * 110);
// sheet.setColumnWidth(9, 30 * 110);
// sheet.setColumnWidth(10, 30 * 110);
// sheet.setColumnWidth(11, 30 * 110);
// sheet.setColumnWidth(12, 30 * 110);
// //第三步创建行row:添加表头0行
// HSSFRow row = sheet.createRow(0);
// HSSFCellStyle style = wb.createCellStyle();//样式
// style.setVerticalAlignment(HSSFCellStyle.ALIGN_LEFT); //设置垂直居中
// style.setAlignment(HSSFCellStyle.ALIGN_LEFT);
// style.setWrapText(true);//设置自动换行
// HSSFFont font = wb.createFont();
// font.setFontHeightInPoints((short) 12);
// style.setFont(font);
// row = sheet.createRow(0); //创建下标为0的单元格
// row.setHeightInPoints(Short.parseShort("20"));//设置行高
// HSSFCell cell = row.createCell(0); //设定值
// cell.setCellValue("上报受理编号");
// cell = row.createCell(1); //设定值
// cell.setCellValue("处理状态");
// cell = row.createCell(2); //设定值
// cell.setCellValue("备注");
// cell = row.createCell(3); //设定值
// cell.setCellValue("导入时间");
// cell = row.createCell(4); //设定值
// cell.setCellValue("生成任务单时间");
// cell = row.createCell(5); //设定值
// cell.setCellValue("数据核验时间");
// cell = row.createCell(6); //设定值
// cell.setCellValue("膜打印时间");
// cell = row.createCell(7); //设定值
// cell.setCellValue("预订位时间");
// cell = row.createCell(8); //设定值
// cell.setCellValue("分拣时间");
// cell = row.createCell(9); //设定值
// cell.setCellValue("质检时间");
// cell = row.createCell(10); //设定值
// cell.setCellValue("出库时间");
// cell = row.createCell(11); //设定值
// cell.setCellValue("下发时间");
// cell = row.createCell(12); //设定值
// cell.setCellValue("签收时间");
//
// for (int i =0;i<personalProgressStatusEntities.size();i++){
// PersonalProgressStatusEntity personalProgressStatusEntity = personalProgressStatusEntities.get(i);
// row = sheet.createRow(i + 1);
// cell = row.createCell(0); //设定值
// cell.setCellValue(personalProgressStatusEntity.getUploadNo());
// cell = row.createCell(1); //设定值
// cell.setCellValue(personalProgressStatusEntity.getProgressStatus());
// cell = row.createCell(2); //设定值
// cell.setCellValue(personalProgressStatusEntity.getNote());
// cell = row.createCell(3); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getImportDate()));
// cell = row.createCell(4); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getCreateTaskDate()));
// cell = row.createCell(5); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getDataCheckDate()));
// cell = row.createCell(6); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getFilmPrintDate()));
// cell = row.createCell(7); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getPositionDate()));
// cell = row.createCell(8); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getSortDate()));
// cell = row.createCell(9); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getQualityTestDate()));
// cell = row.createCell(10); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getOutStorageDate()));
// cell = row.createCell(11); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getHandOutDate()));
// cell = row.createCell(12); //设定值
// cell.setCellValue(formatter.format(personalProgressStatusEntity.getSignInDate()));
// }
// //第六步将生成excel文件保存到指定路径下
// FileOutputStream fout = null;
// try {
//// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
// fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "个人制证状态信息表" + ".xls");
// wb.write(fout);
// fout.close();
// } catch (IOException e) {
// e.printStackTrace();
// }
//
// System.out.println("Excel文件生成成功..." + new Date());
//// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
// return "D:\\Excel\\" + simpleDateFormat.format(new Date()) + "个人制证状态信息表" + ".xls";
// }
//
// /**
// * 导出临时证件信息表
// * @param temporaryCertificateEntities
// * @return
// */
// public static String exportTemporaryCertificateExcel(List<TemporaryCertificateEntity> temporaryCertificateEntities){
// //第一步创建workbook
// HSSFWorkbook wb = new HSSFWorkbook();
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
// HSSFSheet sheet = wb.createSheet("临时证件信息表");
// sheet.setColumnWidth(0, 30 * 110);
// sheet.setColumnWidth(1, 30 * 110);
// sheet.setColumnWidth(2, 30 * 110);
// sheet.setColumnWidth(3, 30 * 110);
// sheet.setColumnWidth(4, 30 * 110);
// sheet.setColumnWidth(5, 30 * 110);
// sheet.setColumnWidth(6, 30 * 110);
// sheet.setColumnWidth(7, 30 * 110);
// sheet.setColumnWidth(8, 30 * 110);
// sheet.setColumnWidth(9, 30 * 110);
// //第三步创建行row:添加表头0行
// HSSFRow row = sheet.createRow(0);
// HSSFCellStyle style = wb.createCellStyle();//样式
// style.setVerticalAlignment(HSSFCellStyle.ALIGN_LEFT); //设置垂直居中
// style.setAlignment(HSSFCellStyle.ALIGN_LEFT);
// style.setWrapText(true);//设置自动换行
// HSSFFont font = wb.createFont();
// font.setFontHeightInPoints((short) 12);
// style.setFont(font);
// row = sheet.createRow(0); //创建下标为0的单元格
// row.setHeightInPoints(Short.parseShort("20"));//设置行高
// HSSFCell cell = row.createCell(0); //设定值
// cell.setCellValue("临时证件id");
// cell = row.createCell(1); //设定值
// cell.setCellValue("姓名");
// cell = row.createCell(2); //设定值
// cell.setCellValue("身份证号码");
// cell = row.createCell(3); //设定值
// cell.setCellValue("联系电话");
// cell = row.createCell(4); //设定值
// cell.setCellValue("上一个有效期");
// cell = row.createCell(5); //设定值
// cell.setCellValue("收到日期");
// cell = row.createCell(6); //设定值
// cell.setCellValue("交待日期");
// cell = row.createCell(7); //设定值
// cell.setCellValue("返给车间日期");
// cell = row.createCell(8); //设定值
// cell.setCellValue("交给当事人日期");
// cell = row.createCell(9); //设定值
// cell.setCellValue("备注");
//
// for (int i =0;i<temporaryCertificateEntities.size();i++){
// TemporaryCertificateEntity temporaryCertificateEntity = temporaryCertificateEntities.get(i);
// row = sheet.createRow(i + 1);
// cell = row.createCell(0); //设定值
// cell.setCellValue(temporaryCertificateEntity.getTemporaryCertificateId());
// cell = row.createCell(1); //设定值
// cell.setCellValue(temporaryCertificateEntity.getName());
// cell = row.createCell(2); //设定值
// cell.setCellValue(temporaryCertificateEntity.getCardId());
// cell = row.createCell(3); //设定值
// cell.setCellValue(temporaryCertificateEntity.getPhone());
// cell = row.createCell(4); //设定值
// cell.setCellValue(temporaryCertificateEntity.getLastDurationOfStatus());
// cell = row.createCell(5); //设定值
// cell.setCellValue(temporaryCertificateEntity.getReceiptDate());
// cell = row.createCell(6); //设定值
// cell.setCellValue(temporaryCertificateEntity.getDateOfHandOverToTreat());
// cell = row.createCell(7); //设定值
// cell.setCellValue(temporaryCertificateEntity.getBackWorkshopDate());
// cell = row.createCell(8); //设定值
// cell.setCellValue(temporaryCertificateEntity.getDeliverToParty());
// cell = row.createCell(9); //设定值
// cell.setCellValue(temporaryCertificateEntity.getNote());
// }
// //第六步将生成excel文件保存到指定路径下
// FileOutputStream fout = null;
// try {
//// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
// fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "临时证件信息表" + ".xls");
// wb.write(fout);
// fout.close();
// } catch (IOException e) {
// e.printStackTrace();
// }
//
// System.out.println("Excel文件生成成功..." + new Date());
//// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
// return "D:\\Excel\\" + simpleDateFormat.format(new Date()) + "临时证件信息表" + ".xls";
// }
//
// /**
// * 导出重做登记信息表
// * @param redoRegistrationEntities
// * @return
// */
// public static String exportRedoRegistrationExcel(List<RedoRegistrationEntity> redoRegistrationEntities){
// //第一步创建workbook
// HSSFWorkbook wb = new HSSFWorkbook();
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
// HSSFSheet sheet = wb.createSheet("重做登记信息表");
// sheet.setColumnWidth(0, 30 * 110);
// sheet.setColumnWidth(1, 30 * 110);
// sheet.setColumnWidth(2, 30 * 110);
// sheet.setColumnWidth(3, 30 * 110);
// sheet.setColumnWidth(4, 30 * 110);
// sheet.setColumnWidth(5, 30 * 110);
// sheet.setColumnWidth(6, 30 * 110);
// sheet.setColumnWidth(7, 30 * 110);
// sheet.setColumnWidth(8, 30 * 110);
// sheet.setColumnWidth(9, 30 * 110);
// //第三步创建行row:添加表头0行
// HSSFRow row = sheet.createRow(0);
// HSSFCellStyle style = wb.createCellStyle();//样式
// style.setVerticalAlignment(HSSFCellStyle.ALIGN_LEFT); //设置垂直居中
// style.setAlignment(HSSFCellStyle.ALIGN_LEFT);
// style.setWrapText(true);//设置自动换行
// HSSFFont font = wb.createFont();
// font.setFontHeightInPoints((short) 12);
// style.setFont(font);
// row = sheet.createRow(0); //创建下标为0的单元格
// row.setHeightInPoints(Short.parseShort("20"));//设置行高
// HSSFCell cell = row.createCell(0); //设定值
// cell.setCellValue("重做登记表id");
// cell = row.createCell(1); //设定值
// cell.setCellValue("上传日期");
// cell = row.createCell(2); //设定值
// cell.setCellValue("区县代码");
// cell = row.createCell(3); //设定值
// cell.setCellValue("公安机关代码");
// cell = row.createCell(4); //设定值
// cell.setCellValue("姓名");
// cell = row.createCell(5); //设定值
// cell.setCellValue("身份证号");
// cell = row.createCell(6); //设定值
// cell.setCellValue("重做原因");
// cell = row.createCell(7); //设定值
// cell.setCellValue("来电日期");
// cell = row.createCell(8); //设定值
// cell.setCellValue("返回日期");
// cell = row.createCell(9); //设定值
// cell.setCellValue("备注");
//
// for (int i =0;i<redoRegistrationEntities.size();i++){
// RedoRegistrationEntity redoRegistrationEntity = redoRegistrationEntities.get(i);
// row = sheet.createRow(i + 1);
// cell = row.createCell(0); //设定值
// cell.setCellValue(redoRegistrationEntity.getRedoRegistrationId());
// cell = row.createCell(1); //设定值
// cell.setCellValue(redoRegistrationEntity.getSubmitDate());
// cell = row.createCell(2); //设定值
// cell.setCellValue(redoRegistrationEntity.getCountyCode());
// cell = row.createCell(3); //设定值
// cell.setCellValue(redoRegistrationEntity.getPoliceCode());
// cell = row.createCell(4); //设定值
// cell.setCellValue(redoRegistrationEntity.getName());
// cell = row.createCell(5); //设定值
// cell.setCellValue(redoRegistrationEntity.getCardId());
// cell = row.createCell(6); //设定值
// cell.setCellValue(redoRegistrationEntity.getRedoReason());
// cell = row.createCell(7); //设定值
// cell.setCellValue(redoRegistrationEntity.getCallDate());
// cell = row.createCell(8); //设定值
// cell.setCellValue(redoRegistrationEntity.getBackDate());
// cell = row.createCell(9); //设定值
// cell.setCellValue(redoRegistrationEntity.getNote());
// }
// //第六步将生成excel文件保存到指定路径下
// FileOutputStream fout = null;
// try {
//// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
// fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "重做登记信息表" + ".xls");
// wb.write(fout);
// fout.close();
// } catch (IOException e) {
// e.printStackTrace();
// }
//
// System.out.println("Excel文件生成成功..." + new Date());
//// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
// return "D:\\Excel\\" + simpleDateFormat.format(new Date()) + "重做登记信息表" + ".xls";
// }
//
//
//}
package com.yxproject.start.utils;
import com.yxproject.start.entity.Preprocess.PersonPostAbnormalEntity;
import com.yxproject.start.entity.Preprocess.PersonalProgressStatusEntity;
import com.yxproject.start.entity.Preprocess.RedoRegistrationEntity;
import com.yxproject.start.entity.Preprocess.TemporaryCertificateEntity;
import org.apache.poi.hssf.usermodel.*;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
* @auther zhangyusheng
* 2019/2/12 15:44
*/
public class ExportExcel {
/**
* 导出错误邮寄信息
* @param personPostAbnormalEntities
* @return
*/
public static String exportPersonPostAbnormalExcel(List<PersonPostAbnormalEntity> personPostAbnormalEntities){
//第一步创建workbook
HSSFWorkbook wb = new HSSFWorkbook();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
HSSFSheet sheet = wb.createSheet("邮寄信息错误信息表");
sheet.setColumnWidth(0, 30 * 100);
sheet.setColumnWidth(1, 30 * 70);
sheet.setColumnWidth(2, 30 * 80);
sheet.setColumnWidth(3, 30 * 50);
sheet.setColumnWidth(4, 30 * 110);
sheet.setColumnWidth(5, 30 * 110);
sheet.setColumnWidth(6, 30 * 110);
sheet.setColumnWidth(7, 30 * 110);
sheet.setColumnWidth(8, 30 * 110);
sheet.setColumnWidth(9, 30 * 110);
sheet.setColumnWidth(10, 30 * 110);
sheet.setColumnWidth(11, 30 * 110);
sheet.setColumnWidth(12, 30 * 110);
sheet.setColumnWidth(13, 30 * 110);
sheet.setColumnWidth(14, 30 * 110);
sheet.setColumnWidth(15, 30 * 110);
sheet.setColumnWidth(16, 30 * 110);
sheet.setColumnWidth(17, 30 * 110);
sheet.setColumnWidth(18, 30 * 110);
sheet.setColumnWidth(19, 30 * 110);
sheet.setColumnWidth(20, 30 * 110);
sheet.setColumnWidth(21, 30 * 110);
sheet.setColumnWidth(22, 30 * 110);
sheet.setColumnWidth(23, 30 * 110);
sheet.setColumnWidth(24, 30 * 110);
//第三步创建行row:添加表头0行
HSSFRow row = sheet.createRow(0);
HSSFCellStyle style = wb.createCellStyle();//样式
style.setVerticalAlignment(HSSFCellStyle.ALIGN_LEFT); //设置垂直居中
style.setAlignment(HSSFCellStyle.ALIGN_LEFT);
style.setWrapText(true);//设置自动换行
HSSFFont font = wb.createFont();
font.setFontHeightInPoints((short) 12);
style.setFont(font);
row = sheet.createRow(0); //创建下标为0的单元格
row.setHeightInPoints(Short.parseShort("20"));//设置行高
HSSFCell cell = row.createCell(0); //设定值
cell.setCellValue("邮件号");
cell = row.createCell(1); //设定值
cell.setCellValue("反邮件号");
cell = row.createCell(2); //设定值
cell.setCellValue("订单号");
cell = row.createCell(3); //设定值
cell.setCellValue("订单生成时间");
cell = row.createCell(4); //设定值
cell.setCellValue("openid");
cell = row.createCell(5); //设定值
cell.setCellValue("微信支付订单号");
cell = row.createCell(6); //设定值
cell.setCellValue("支付状态");
cell = row.createCell(7); //设定值
cell.setCellValue("订单状态");
cell = row.createCell(8); //设定值
cell.setCellValue("申请人姓名");
cell = row.createCell(9); //设定值
cell.setCellValue("寄件人姓名");
cell = row.createCell(10); //设定值
cell.setCellValue("寄件人联系方式");
cell = row.createCell(1); //设定值
cell.setCellValue("寄件人地址");
cell = row.createCell(11); //设定值
cell.setCellValue("收件人姓名");
cell = row.createCell(12); //设定值
cell.setCellValue("收件人联系方式");
cell = row.createCell(13); //设定值
cell.setCellValue("收件人地址");
cell = row.createCell(14); //设定值
cell.setCellValue("配货单号");
cell = row.createCell(15); //设定值
cell.setCellValue("到件省/直辖市");
cell = row.createCell(16); //设定值
cell.setCellValue("到件城市");
cell = row.createCell(17); //设定值
cell.setCellValue("到件县/区");
cell = row.createCell(18); //设定值
cell.setCellValue("业务类型");
cell = row.createCell(19); //设定值
cell.setCellValue("格口信息");
cell = row.createCell(20); //设定值
cell.setCellValue("内件性质");
cell = row.createCell(21); //设定值
cell.setCellValue("内件信息");
cell = row.createCell(22); //设定值
cell.setCellValue("留白一");
cell = row.createCell(23); //设定值
cell.setCellValue("错误代码");
cell = row.createCell(24); //设定值
cell.setCellValue("检查日期");
for (int i =0;i<personPostAbnormalEntities.size();i++){
PersonPostAbnormalEntity personPostAbnormalEntity = personPostAbnormalEntities.get(i);
row = sheet.createRow(i + 1);
cell = row.createCell(0); //设定值
cell.setCellValue(personPostAbnormalEntity.getWaybillNumber());
cell = row.createCell(1); //设定值
cell.setCellValue(personPostAbnormalEntity.getBackWaybillNumber());
cell = row.createCell(2); //设定值
cell.setCellValue(personPostAbnormalEntity.getOrderNumber());
cell = row.createCell(3); //设定值
cell.setCellValue(personPostAbnormalEntity.getCreateDate());
cell = row.createCell(4); //设定值
cell.setCellValue(personPostAbnormalEntity.getOpenid());
cell = row.createCell(5); //设定值
cell.setCellValue(personPostAbnormalEntity.getWcPlayOrderNumber());
cell = row.createCell(6); //设定值
cell.setCellValue(personPostAbnormalEntity.getPlayState());
cell = row.createCell(7); //设定值
cell.setCellValue(personPostAbnormalEntity.getOrderState());
cell = row.createCell(8); //设定值
cell.setCellValue(personPostAbnormalEntity.getApplicantName());
cell = row.createCell(9); //设定值
cell.setCellValue(personPostAbnormalEntity.getSenderName());
cell = row.createCell(10); //设定值
cell.setCellValue(personPostAbnormalEntity.getSenderPhone());
cell = row.createCell(11); //设定值
cell.setCellValue(personPostAbnormalEntity.getRecipientName());
cell = row.createCell(12); //设定值
cell.setCellValue(personPostAbnormalEntity.getRecipientPhone());
cell = row.createCell(13); //设定值
cell.setCellValue(personPostAbnormalEntity.getRecipientAddress());
cell = row.createCell(14); //设定值
cell.setCellValue(personPostAbnormalEntity.getOrderBlankNumber());
cell = row.createCell(15); //设定值
cell.setCellValue(personPostAbnormalEntity.getGetToProvince());
cell = row.createCell(16); //设定值
cell.setCellValue(personPostAbnormalEntity.getGetToCity());
cell = row.createCell(17); //设定值
cell.setCellValue(personPostAbnormalEntity.getGetToCounty());
cell = row.createCell(18); //设定值
cell.setCellValue(personPostAbnormalEntity.getBusinessType());
cell = row.createCell(19); //设定值
cell.setCellValue(personPostAbnormalEntity.getLatticeMouthInformation());
cell = row.createCell(20); //设定值
cell.setCellValue(personPostAbnormalEntity.getNatureOfTheInternal());
cell = row.createCell(21); //设定值
cell.setCellValue(personPostAbnormalEntity.getNatureOfTheInformation());
cell = row.createCell(22); //设定值
cell.setCellValue(personPostAbnormalEntity.getFirstWhite());
cell = row.createCell(23); //设定值
cell.setCellValue(personPostAbnormalEntity.getErrCode());
cell = row.createCell(24); //设定值
cell.setCellValue(personPostAbnormalEntity.getCheckDate());
}
//第六步将生成excel文件保存到指定路径下
FileOutputStream fout = null;
try {
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "邮寄错误信息表" + ".xls");
wb.write(fout);
fout.close();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("Excel文件生成成功..." + new Date());
// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
return "D:\\Excel\\" + simpleDateFormat.format(new Date()) + "邮寄错误信息表" + ".xls";
}
/**
* 导出个人制证状态信息表
* @param personalProgressStatusEntities
* @return
*/
public static String exportPersonalProgressStatusExcel(List<PersonalProgressStatusEntity> personalProgressStatusEntities){
SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
//第一步创建workbook
HSSFWorkbook wb = new HSSFWorkbook();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
HSSFSheet sheet = wb.createSheet("个人制证状态信息表");
sheet.setColumnWidth(0, 30 * 110);
sheet.setColumnWidth(1, 30 * 110);
sheet.setColumnWidth(2, 30 * 110);
sheet.setColumnWidth(3, 30 * 110);
sheet.setColumnWidth(4, 30 * 110);
sheet.setColumnWidth(5, 30 * 110);
sheet.setColumnWidth(6, 30 * 110);
sheet.setColumnWidth(7, 30 * 110);
sheet.setColumnWidth(8, 30 * 110);
sheet.setColumnWidth(9, 30 * 110);
sheet.setColumnWidth(10, 30 * 110);
sheet.setColumnWidth(11, 30 * 110);
sheet.setColumnWidth(12, 30 * 110);
//第三步创建行row:添加表头0行
HSSFRow row = sheet.createRow(0);
HSSFCellStyle style = wb.createCellStyle();//样式
style.setVerticalAlignment(HSSFCellStyle.ALIGN_LEFT); //设置垂直居中
style.setAlignment(HSSFCellStyle.ALIGN_LEFT);
style.setWrapText(true);//设置自动换行
HSSFFont font = wb.createFont();
font.setFontHeightInPoints((short) 12);
style.setFont(font);
row = sheet.createRow(0); //创建下标为0的单元格
row.setHeightInPoints(Short.parseShort("20"));//设置行高
HSSFCell cell = row.createCell(0); //设定值
cell.setCellValue("上报受理编号");
cell = row.createCell(1); //设定值
cell.setCellValue("处理状态");
cell = row.createCell(2); //设定值
cell.setCellValue("备注");
cell = row.createCell(3); //设定值
cell.setCellValue("导入时间");
cell = row.createCell(4); //设定值
cell.setCellValue("生成任务单时间");
cell = row.createCell(5); //设定值
cell.setCellValue("数据核验时间");
cell = row.createCell(6); //设定值
cell.setCellValue("膜打印时间");
cell = row.createCell(7); //设定值
cell.setCellValue("预订位时间");
cell = row.createCell(8); //设定值
cell.setCellValue("分拣时间");
cell = row.createCell(9); //设定值
cell.setCellValue("质检时间");
cell = row.createCell(10); //设定值
cell.setCellValue("出库时间");
cell = row.createCell(11); //设定值
cell.setCellValue("下发时间");
cell = row.createCell(12); //设定值
cell.setCellValue("签收时间");
for (int i =0;i<personalProgressStatusEntities.size();i++){
PersonalProgressStatusEntity personalProgressStatusEntity = personalProgressStatusEntities.get(i);
row = sheet.createRow(i + 1);
cell = row.createCell(0); //设定值
cell.setCellValue(personalProgressStatusEntity.getUploadNo());
cell = row.createCell(1); //设定值
cell.setCellValue(personalProgressStatusEntity.getProgressStatus());
cell = row.createCell(2); //设定值
cell.setCellValue(personalProgressStatusEntity.getNote());
cell = row.createCell(3); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getImportDate()));
cell = row.createCell(4); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getCreateTaskDate()));
cell = row.createCell(5); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getDataCheckDate()));
cell = row.createCell(6); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getFilmPrintDate()));
cell = row.createCell(7); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getPositionDate()));
cell = row.createCell(8); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getSortDate()));
cell = row.createCell(9); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getQualityTestDate()));
cell = row.createCell(10); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getOutStorageDate()));
cell = row.createCell(11); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getHandOutDate()));
cell = row.createCell(12); //设定值
cell.setCellValue(formatter.format(personalProgressStatusEntity.getSignInDate()));
}
//第六步将生成excel文件保存到指定路径下
FileOutputStream fout = null;
try {
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "个人制证状态信息表" + ".xls");
wb.write(fout);
fout.close();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("Excel文件生成成功..." + new Date());
// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
return "D:\\Excel\\" + simpleDateFormat.format(new Date()) + "个人制证状态信息表" + ".xls";
}
/**
* 导出临时证件信息表
* @param temporaryCertificateEntities
* @return
*/
public static String exportTemporaryCertificateExcel(List<TemporaryCertificateEntity> temporaryCertificateEntities){
//第一步创建workbook
HSSFWorkbook wb = new HSSFWorkbook();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
HSSFSheet sheet = wb.createSheet("临时证件信息表");
sheet.setColumnWidth(0, 30 * 110);
sheet.setColumnWidth(1, 30 * 110);
sheet.setColumnWidth(2, 30 * 110);
sheet.setColumnWidth(3, 30 * 110);
sheet.setColumnWidth(4, 30 * 110);
sheet.setColumnWidth(5, 30 * 110);
sheet.setColumnWidth(6, 30 * 110);
sheet.setColumnWidth(7, 30 * 110);
sheet.setColumnWidth(8, 30 * 110);
sheet.setColumnWidth(9, 30 * 110);
//第三步创建行row:添加表头0行
HSSFRow row = sheet.createRow(0);
HSSFCellStyle style = wb.createCellStyle();//样式
style.setVerticalAlignment(HSSFCellStyle.ALIGN_LEFT); //设置垂直居中
style.setAlignment(HSSFCellStyle.ALIGN_LEFT);
style.setWrapText(true);//设置自动换行
HSSFFont font = wb.createFont();
font.setFontHeightInPoints((short) 12);
style.setFont(font);
row = sheet.createRow(0); //创建下标为0的单元格
row.setHeightInPoints(Short.parseShort("20"));//设置行高
HSSFCell cell = row.createCell(0); //设定值
cell.setCellValue("临时证件id");
cell = row.createCell(1); //设定值
cell.setCellValue("姓名");
cell = row.createCell(2); //设定值
cell.setCellValue("身份证号码");
cell = row.createCell(3); //设定值
cell.setCellValue("联系电话");
cell = row.createCell(4); //设定值
cell.setCellValue("上一个有效期");
cell = row.createCell(5); //设定值
cell.setCellValue("收到日期");
cell = row.createCell(6); //设定值
cell.setCellValue("交待日期");
cell = row.createCell(7); //设定值
cell.setCellValue("返给车间日期");
cell = row.createCell(8); //设定值
cell.setCellValue("交给当事人日期");
cell = row.createCell(9); //设定值
cell.setCellValue("备注");
for (int i =0;i<temporaryCertificateEntities.size();i++){
TemporaryCertificateEntity temporaryCertificateEntity = temporaryCertificateEntities.get(i);
row = sheet.createRow(i + 1);
cell = row.createCell(0); //设定值
cell.setCellValue(temporaryCertificateEntity.getTemporaryCertificateId());
cell = row.createCell(1); //设定值
cell.setCellValue(temporaryCertificateEntity.getName());
cell = row.createCell(2); //设定值
cell.setCellValue(temporaryCertificateEntity.getCardId());
cell = row.createCell(3); //设定值
cell.setCellValue(temporaryCertificateEntity.getPhone());
cell = row.createCell(4); //设定值
cell.setCellValue(temporaryCertificateEntity.getLastDurationOfStatus());
cell = row.createCell(5); //设定值
cell.setCellValue(temporaryCertificateEntity.getReceiptDate());
cell = row.createCell(6); //设定值
cell.setCellValue(temporaryCertificateEntity.getDateOfHandOverToTreat());
cell = row.createCell(7); //设定值
cell.setCellValue(temporaryCertificateEntity.getBackWorkshopDate());
cell = row.createCell(8); //设定值
cell.setCellValue(temporaryCertificateEntity.getDeliverToParty());
cell = row.createCell(9); //设定值
cell.setCellValue(temporaryCertificateEntity.getNote());
}
//第六步将生成excel文件保存到指定路径下
FileOutputStream fout = null;
try {
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "临时证件信息表" + ".xls");
wb.write(fout);
fout.close();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("Excel文件生成成功..." + new Date());
// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
return "D:\\Excel\\" + simpleDateFormat.format(new Date()) + "临时证件信息表" + ".xls";
}
/**
* 导出重做登记信息表
* @param redoRegistrationEntities
* @return
*/
public static String exportRedoRegistrationExcel(List<RedoRegistrationEntity> redoRegistrationEntities){
//第一步创建workbook
HSSFWorkbook wb = new HSSFWorkbook();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
HSSFSheet sheet = wb.createSheet("重做登记信息表");
sheet.setColumnWidth(0, 30 * 110);
sheet.setColumnWidth(1, 30 * 110);
sheet.setColumnWidth(2, 30 * 110);
sheet.setColumnWidth(3, 30 * 110);
sheet.setColumnWidth(4, 30 * 110);
sheet.setColumnWidth(5, 30 * 110);
sheet.setColumnWidth(6, 30 * 110);
sheet.setColumnWidth(7, 30 * 110);
sheet.setColumnWidth(8, 30 * 110);
sheet.setColumnWidth(9, 30 * 110);
//第三步创建行row:添加表头0行
HSSFRow row = sheet.createRow(0);
HSSFCellStyle style = wb.createCellStyle();//样式
style.setVerticalAlignment(HSSFCellStyle.ALIGN_LEFT); //设置垂直居中
style.setAlignment(HSSFCellStyle.ALIGN_LEFT);
style.setWrapText(true);//设置自动换行
HSSFFont font = wb.createFont();
font.setFontHeightInPoints((short) 12);
style.setFont(font);
row = sheet.createRow(0); //创建下标为0的单元格
row.setHeightInPoints(Short.parseShort("20"));//设置行高
HSSFCell cell = row.createCell(0); //设定值
cell.setCellValue("临时证件id");
cell = row.createCell(1); //设定值
cell.setCellValue("姓名");
cell = row.createCell(2); //设定值
cell.setCellValue("身份证号码");
cell = row.createCell(3); //设定值
cell.setCellValue("联系电话");
cell = row.createCell(4); //设定值
cell.setCellValue("上一个有效期");
cell = row.createCell(5); //设定值
cell.setCellValue("收到日期");
cell = row.createCell(6); //设定值
cell.setCellValue("交待日期");
cell = row.createCell(7); //设定值
cell.setCellValue("返给车间日期");
cell = row.createCell(8); //设定值
cell.setCellValue("交给当事人日期");
cell = row.createCell(9); //设定值
cell.setCellValue("备注");
for (int i =0;i<redoRegistrationEntities.size();i++){
RedoRegistrationEntity redoRegistrationEntity = redoRegistrationEntities.get(i);
row = sheet.createRow(i + 1);
cell = row.createCell(0); //设定值
cell.setCellValue(redoRegistrationEntity.getRedoRegistrationId());
cell = row.createCell(1); //设定值
cell.setCellValue(redoRegistrationEntity.getSubmitDate());
cell = row.createCell(2); //设定值
cell.setCellValue(redoRegistrationEntity.getCountyCode());
cell = row.createCell(3); //设定值
cell.setCellValue(redoRegistrationEntity.getPoliceCode());
cell = row.createCell(4); //设定值
cell.setCellValue(redoRegistrationEntity.getName());
cell = row.createCell(5); //设定值
cell.setCellValue(redoRegistrationEntity.getCardId());
cell = row.createCell(6); //设定值
cell.setCellValue(redoRegistrationEntity.getRedoReason());
cell = row.createCell(7); //设定值
cell.setCellValue(redoRegistrationEntity.getCallDate());
cell = row.createCell(8); //设定值
cell.setCellValue(redoRegistrationEntity.getBackDate());
cell = row.createCell(9); //设定值
cell.setCellValue(redoRegistrationEntity.getNote());
}
//第六步将生成excel文件保存到指定路径下
FileOutputStream fout = null;
try {
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "重做登记信息表" + ".xls");
wb.write(fout);
fout.close();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("Excel文件生成成功..." + new Date());
// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
return "D:\\Excel\\" + simpleDateFormat.format(new Date()) + "重做登记信息表" + ".xls";
}
}
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