Commit b080dab9 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 58f3fced
package com.yxproject.start.api; 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 com.yxproject.start.utils.ExportExcel;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -12,25 +9,6 @@ import java.util.List; ...@@ -12,25 +9,6 @@ import java.util.List;
@RestController @RestController
@RequestMapping("exportExcel") @RequestMapping("exportExcel")
public class ExportExcelApi { 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;
public class ReadXMLApi {
}
package com.yxproject.start.api; package com.yxproject.start.api;
import com.yxproject.start.entity.Preprocess.PreproPersonEntity; import com.yxproject.start.entity.PreproPersonEntity;
import com.yxproject.start.service.ImportXmlService; import com.yxproject.start.service.ImportXmlService;
import org.dom4j.Document; import org.dom4j.Document;
import org.dom4j.Element; import org.dom4j.Element;
...@@ -72,7 +72,6 @@ public class YingxinApi { ...@@ -72,7 +72,6 @@ public class YingxinApi {
preproPersonEntity.setSjrYzbm(fooElement.elementText("sjrYzbm")); preproPersonEntity.setSjrYzbm(fooElement.elementText("sjrYzbm"));
preproPersonEntity.setSjrTxdz(fooElement.elementText("sjrTxdz")); preproPersonEntity.setSjrTxdz(fooElement.elementText("sjrTxdz"));
preproPersonEntity.setSid(fooElement.elementText("sid")); preproPersonEntity.setSid(fooElement.elementText("sid"));
preproPersonEntity.setFile_name("fileName");
list.add(preproPersonEntity); list.add(preproPersonEntity);
} }
importXmlService.importPersonXml(list); importXmlService.importPersonXml(list);
......
//package com.yxproject.start.config; package com.yxproject.start.config;
//
//import com.yxproject.start.service.UserInfoService; import com.yxproject.start.entity.SysPermission;
//import org.apache.shiro.authc.AuthenticationException; import com.yxproject.start.entity.SysRole;
//import org.apache.shiro.authc.AuthenticationInfo; import com.yxproject.start.entity.UserInfo;
//import org.apache.shiro.authc.AuthenticationToken; import com.yxproject.start.service.UserInfoService;
//import org.apache.shiro.authc.SimpleAuthenticationInfo; import org.apache.shiro.authc.AuthenticationException;
//import org.apache.shiro.authc.credential.HashedCredentialsMatcher; import org.apache.shiro.authc.AuthenticationInfo;
//import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.authc.AuthenticationToken;
//import org.apache.shiro.authz.SimpleAuthorizationInfo; import org.apache.shiro.authc.SimpleAuthenticationInfo;
//import org.apache.shiro.realm.AuthorizingRealm; import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
//import org.apache.shiro.subject.PrincipalCollection; import org.apache.shiro.authz.AuthorizationInfo;
//import org.apache.shiro.util.ByteSource; import org.apache.shiro.authz.SimpleAuthorizationInfo;
//import org.springframework.beans.factory.annotation.Autowired; 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 { /**
// * @author Administrator
// @Autowired */
// private UserInfoService userInfoService; public class MyShiroRealm extends AuthorizingRealm {
//
// //告诉shiro如何根据获取到的用户信息中的密码和盐值来校验密码 @Autowired
// { private UserInfoService userInfoService;
// //设置用于匹配密码的CredentialsMatcher
// HashedCredentialsMatcher hashMatcher = new HashedCredentialsMatcher(); //告诉shiro如何根据获取到的用户信息中的密码和盐值来校验密码
// hashMatcher.setHashAlgorithmName("md5"); {
// hashMatcher.setHashIterations(1024); //设置用于匹配密码的CredentialsMatcher
// this.setCredentialsMatcher(hashMatcher); HashedCredentialsMatcher hashMatcher = new HashedCredentialsMatcher();
// } hashMatcher.setHashAlgorithmName("md5");
// hashMatcher.setHashIterations(1024);
// @Override this.setCredentialsMatcher(hashMatcher);
// protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { }
// System.out.println("权限配置-->MyShiroRealm.doGetAuthorizationInfo()");
// SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo(); @Override
// UserInfo userInfo = (UserInfo) principals.getPrimaryPrincipal(); protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
// for (SysRole role : userInfo.getRoleList()) { System.out.println("权限配置-->MyShiroRealm.doGetAuthorizationInfo()");
// authorizationInfo.addRole(role.getRole()); SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo();
// for (SysPermission p : role.getPermissions()) { UserInfo userInfo = (UserInfo) principals.getPrimaryPrincipal();
// authorizationInfo.addStringPermission(p.getPermission()); for (SysRole role : userInfo.getRoleList()) {
// } authorizationInfo.addRole(role.getRole());
// } for (SysPermission p : role.getPermissions()) {
// return authorizationInfo; authorizationInfo.addStringPermission(p.getPermission());
// } }
// }
// /** return authorizationInfo;
// * @param token }
// * @return
// * @throws AuthenticationException /**
// */ * @param token
// @Override * @return
// protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) * @throws AuthenticationException
// throws AuthenticationException { */
// System.out.println("MyShiroRealm.doGetAuthenticationInfo()"); @Override
// //获取用户的输入的账号. protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token)
// String username = (String) token.getPrincipal(); throws AuthenticationException {
// System.out.println(username); System.out.println("MyShiroRealm.doGetAuthenticationInfo()");
// System.out.println(token.getCredentials().toString()); //获取用户的输入的账号.
// //通过username从数据库中查找 User对象,如果找到,没找到. String username = (String) token.getPrincipal();
// //实际项目中,这里可以根据实际情况做缓存,如果不做,Shiro自己也是有时间间隔机制,2分钟内不会重复执行该方法 System.out.println(username);
// UserInfo user = userInfoService.findByUsername(username); System.out.println(token.getCredentials().toString());
// if (user == null || user.getState() == 1) { //通过username从数据库中查找 User对象,如果找到,没找到.
// return null; //实际项目中,这里可以根据实际情况做缓存,如果不做,Shiro自己也是有时间间隔机制,2分钟内不会重复执行该方法
// } UserInfo user = userInfoService.findByUsername(username);
// SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo( if (user == null || user.getState() == 1) {
// user, return null;
// user.getPassword(), }
// ByteSource.Util.bytes(user.getSalt()), SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo(
// getName() user,
// ); user.getPassword(),
// return authenticationInfo; ByteSource.Util.bytes(user.getSalt()),
// } getName()
// );
//} return authenticationInfo;
\ No newline at end of file }
}
\ No newline at end of file
//package com.yxproject.start.config; package com.yxproject.start.config;
//
//import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition; import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
//import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition; import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
//import org.apache.shiro.web.mgt.DefaultWebSecurityManager; import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
//import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator; import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator;
//import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
//
///** /**
// * @author Administrator * @author Administrator
// */ */
//@Configuration @Configuration
//public class ShiroConfig { public class ShiroConfig {
//
// @Autowired @Autowired
// private MyShiroRealm realm; private MyShiroRealm realm;
//
// @Bean @Bean
// public MyShiroRealm customRealm() { public MyShiroRealm customRealm() {
// return new MyShiroRealm(); return new MyShiroRealm();
// } }
//
// @Bean @Bean
// public DefaultWebSecurityManager securityManager() { public DefaultWebSecurityManager securityManager() {
// System.out.println("添加了DefaultWebSecurityManager"); System.out.println("添加了DefaultWebSecurityManager");
// DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager(); DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
// securityManager.setRealm(realm); securityManager.setRealm(realm);
// return securityManager; return securityManager;
// } }
//
// @Bean @Bean
// public static DefaultAdvisorAutoProxyCreator getDefaultAdvisorAutoProxyCreator() { public static DefaultAdvisorAutoProxyCreator getDefaultAdvisorAutoProxyCreator() {
//
// DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator(); DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator();
// defaultAdvisorAutoProxyCreator.setUsePrefix(true); defaultAdvisorAutoProxyCreator.setUsePrefix(true);
//
// return defaultAdvisorAutoProxyCreator; return defaultAdvisorAutoProxyCreator;
// } }
//
// @Bean @Bean
// public ShiroFilterChainDefinition shiroFilterChainDefinition() { public ShiroFilterChainDefinition shiroFilterChainDefinition() {
// System.out.println("添加了过滤器链"); System.out.println("添加了过滤器链");
// DefaultShiroFilterChainDefinition chainDefinition = new DefaultShiroFilterChainDefinition(); DefaultShiroFilterChainDefinition chainDefinition = new DefaultShiroFilterChainDefinition();
//
// chainDefinition.addPathDefinition("/admin/**", "authc"); chainDefinition.addPathDefinition("/admin/**", "authc");
// chainDefinition.addPathDefinition("/admin/**", "roles[admin]"); chainDefinition.addPathDefinition("/admin/**", "roles[admin]");
// chainDefinition.addPathDefinition("/user/login", "anon"); chainDefinition.addPathDefinition("/user/login", "anon");
// chainDefinition.addPathDefinition("/user/logout", "anon"); chainDefinition.addPathDefinition("/user/logout", "anon");
// chainDefinition.addPathDefinition("/user/**", "authc"); chainDefinition.addPathDefinition("/user/**", "authc");
// chainDefinition.addPathDefinition("/**", "anon"); chainDefinition.addPathDefinition("/**", "anon");
//
// return chainDefinition; return chainDefinition;
// } }
//} }
package com.yxproject.start.entity;
import javax.persistence.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; package com.yxproject.start.entity;
import javax.persistence.Basic; import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Time; import java.sql.Time;
import java.util.Objects; import java.util.Objects;
...@@ -47,7 +44,7 @@ public class PersonPostEntity { ...@@ -47,7 +44,7 @@ public class PersonPostEntity {
private Time formStartTime; private Time formStartTime;
private Time formDeadline; private Time formDeadline;
@Basic @Id
@Column(name = "WAYBILL_NUMBER") @Column(name = "WAYBILL_NUMBER")
public String getWaybillNumber() { public String getWaybillNumber() {
return waybillNumber; return waybillNumber;
......
package com.yxproject.start.entity.Preprocess;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "FILES", schema = "PREPROCESS", catalog = "")
public class FilesEntity {
private String bbh;
private String dwdm;
private String dwmc;
private Long jls;
private String scsj;
private String sjbbh;
@Basic
@Column(name = "BBH")
public String getBbh() {
return bbh;
}
public void setBbh(String bbh) {
this.bbh = bbh;
}
@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 = "JLS")
public Long getJls() {
return jls;
}
public void setJls(Long jls) {
this.jls = jls;
}
@Basic
@Column(name = "SCSJ")
public String getScsj() {
return scsj;
}
public void setScsj(String scsj) {
this.scsj = scsj;
}
@Id
@Column(name = "SJBBH")
public String getSjbbh() {
return sjbbh;
}
public void setSjbbh(String sjbbh) {
this.sjbbh = sjbbh;
}
@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(bbh, that.bbh) &&
Objects.equals(dwdm, that.dwdm) &&
Objects.equals(dwmc, that.dwmc) &&
Objects.equals(jls, that.jls) &&
Objects.equals(scsj, that.scsj) &&
Objects.equals(sjbbh, that.sjbbh);
}
@Override
public int hashCode() {
return Objects.hash(bbh, dwdm, dwmc, jls, scsj, sjbbh);
}
}
package com.yxproject.start.entity.Preprocess;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
@Entity
@Table(name = "PERSON_POST_ABNORMAL", schema = "PREPROCESS")
public class PersonPostAbnormalEntity {
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 String errCode;
private String checkDate;
@Id
@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 = "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 lattice_Mouth_Information) {
this.latticeMouthInformation = lattice_Mouth_Information;
}
@Basic
@Column(name = "NATURE_OF_THE_INFORMATION")
public String getNatureOfTheInternal() {
return natureOfTheInternal;
}
public void setNatureOfTheInternal(String nature_Of_The_Internal) {
this.natureOfTheInternal = nature_Of_The_Internal;
}
@Basic
@Column(name = "NATURE_OF_THE_INTERNAL")
public String getNatureOfTheInformation() {
return natureOfTheInformation;
}
public void setNatureOfTheInformation(String nature_Of_The_Information) {
this.natureOfTheInformation = nature_Of_The_Information;
}
@Basic
@Column(name = "FIRST_WHITE")
public String getFirstWhite() {
return firstWhite;
}
public void setFirstWhite(String first_White) {
this.firstWhite = first_White;
}
@Basic
@Column(name = "ERR_CODE")
public String getErrCode() {
return errCode;
}
public void setErrCode(String err_Code) {
this.errCode = err_Code;
}
@Basic
@Column(name = "OPENID")
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
@Basic
@Column(name = "CHECK_DATE")
public String getCheckDate() {
return checkDate;
}
public void setCheckDate(String check_Date) {
this.checkDate = check_Date;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PersonPostAbnormalEntity that = (PersonPostAbnormalEntity) 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(errCode, that.errCode) &&
Objects.equals(checkDate, that.checkDate);
}
@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, errCode, checkDate);
}
}
package com.yxproject.start.entity.Preprocess;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
/**
* @auther zhangyusheng
* 2019/2/18 15:16
*/
@Entity
@Table(name = "PERSON_POST", schema = "PREPROCESS")
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;
@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;
}
@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);
}
@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);
}
private String id;
@Id
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
package com.yxproject.start.entity.Preprocess;
import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;
/**
* @auther zhangyusheng
* 2019/2/18 15:16
*/
@Entity
@Table(name = "PERSONAL_PROGRESS_STATUS", schema = "PREPROCESS", catalog = "")
public class PersonalProgressStatusEntity {
private String uploadNo;
private Long progressStatus;
private String note;
private String importDate;
private Time createTaskDate;
private Time dataCheckDate;
private Time filmPrintDate;
private Time positionDate;
private Time sortDate;
private Time qualityTestDate;
private Time outStorageDate;
private Time handOutDate;
private Time signInDate;
@Id
@Column(name = "UPLOAD_NO")
public String getUploadNo() {
return uploadNo;
}
public void setUploadNo(String uploadNo) {
this.uploadNo = uploadNo;
}
@Basic
@Column(name = "PROGRESS_STATUS")
public Long getProgressStatus() {
return progressStatus;
}
public void setProgressStatus(Long progressStatus) {
this.progressStatus = progressStatus;
}
@Basic
@Column(name = "NOTE")
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
@Basic
@Column(name = "IMPORT_DATE")
public String getImportDate() {
return importDate;
}
public void setImportDate(String importDate) {
this.importDate = importDate;
}
@Basic
@Column(name = "CREATE_TASK_DATE")
public Time getCreateTaskDate() {
return createTaskDate;
}
public void setCreateTaskDate(Time createTaskDate) {
this.createTaskDate = createTaskDate;
}
@Basic
@Column(name = "DATA_CHECK_DATE")
public Time getDataCheckDate() {
return dataCheckDate;
}
public void setDataCheckDate(Time dataCheckDate) {
this.dataCheckDate = dataCheckDate;
}
@Basic
@Column(name = "FILM_PRINT_DATE")
public Time getFilmPrintDate() {
return filmPrintDate;
}
public void setFilmPrintDate(Time filmPrintDate) {
this.filmPrintDate = filmPrintDate;
}
@Basic
@Column(name = "POSITION_DATE")
public Time getPositionDate() {
return positionDate;
}
public void setPositionDate(Time positionDate) {
this.positionDate = positionDate;
}
@Basic
@Column(name = "SORT_DATE")
public Time getSortDate() {
return sortDate;
}
public void setSortDate(Time sortDate) {
this.sortDate = sortDate;
}
@Basic
@Column(name = "QUALITY_TEST_DATE")
public Time getQualityTestDate() {
return qualityTestDate;
}
public void setQualityTestDate(Time qualityTestDate) {
this.qualityTestDate = qualityTestDate;
}
@Basic
@Column(name = "OUT_STORAGE_DATE")
public Time getOutStorageDate() {
return outStorageDate;
}
public void setOutStorageDate(Time outStorageDate) {
this.outStorageDate = outStorageDate;
}
@Basic
@Column(name = "HAND_OUT_DATE")
public Time getHandOutDate() {
return handOutDate;
}
public void setHandOutDate(Time handOutDate) {
this.handOutDate = handOutDate;
}
@Basic
@Column(name = "SIGN_IN_DATE")
public Time getSignInDate() {
return signInDate;
}
public void setSignInDate(Time signInDate) {
this.signInDate = signInDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PersonalProgressStatusEntity that = (PersonalProgressStatusEntity) o;
return Objects.equals(uploadNo, that.uploadNo) &&
Objects.equals(progressStatus, that.progressStatus) &&
Objects.equals(note, that.note) &&
Objects.equals(importDate, that.importDate) &&
Objects.equals(createTaskDate, that.createTaskDate) &&
Objects.equals(dataCheckDate, that.dataCheckDate) &&
Objects.equals(filmPrintDate, that.filmPrintDate) &&
Objects.equals(positionDate, that.positionDate) &&
Objects.equals(sortDate, that.sortDate) &&
Objects.equals(qualityTestDate, that.qualityTestDate) &&
Objects.equals(outStorageDate, that.outStorageDate) &&
Objects.equals(handOutDate, that.handOutDate) &&
Objects.equals(signInDate, that.signInDate);
}
@Override
public int hashCode() {
return Objects.hash(uploadNo, progressStatus, note, importDate, createTaskDate, dataCheckDate, filmPrintDate, positionDate, sortDate, qualityTestDate, outStorageDate, handOutDate, signInDate);
}
}
package com.yxproject.start.entity.Preprocess;
import javax.persistence.*;
import java.util.Objects;
/**
* @auther zhangyusheng
* 2019/2/25 11:00
*/
@Entity
@Table(name = "PREPRO_PERSON", schema = "PREPROCESS", 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 file_name;
private Long isPost;
@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 getFile_name() {
return file_name;
}
public void setFile_name(String file_name) {
this.file_name = file_name;
}
@Basic
@Column(name = "IS_POST")
public Long getIsPost() {
return isPost;
}
public void setIsPost(Long isPost) {
this.isPost = isPost;
}
@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(file_name, that.file_name) &&
Objects.equals(isPost, that.isPost);
}
@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,file_name, isPost);
}
}
package com.yxproject.start.entity.Preprocess;
import javax.persistence.*;
import java.util.Objects;
/**
* @auther zhangyusheng
* 2019/2/18 15:17
*/
@Entity
@Table(name = "REDO_REGISTRATION", schema = "PREPROCESS", catalog = "")
public class RedoRegistrationEntity {
private String redoRegistrationId;
private String submitDate;
private String countyCode;
private String policeCode;
private String name;
private String cardId;
private String redoReason;
private String callDate;
private String backDate;
private String note;
@Id
@Column(name = "REDO_REGISTRATION_ID")
public String getRedoRegistrationId() {
return redoRegistrationId;
}
public void setRedoRegistrationId(String redoRegistrationId) {
this.redoRegistrationId = redoRegistrationId;
}
@Basic
@Column(name = "SUBMIT_DATE")
public String getSubmitDate() {
return submitDate;
}
public void setSubmitDate(String submitDate) {
this.submitDate = submitDate;
}
@Basic
@Column(name = "NAME")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CARD_ID")
public String getCardId() {
return cardId;
}
public void setCardId(String cardId) {
this.cardId = cardId;
}
@Basic
@Column(name = "REDO_REASON")
public String getRedoReason() {
return redoReason;
}
public void setRedoReason(String redoReason) {
this.redoReason = redoReason;
}
@Basic
@Column(name = "CALL_DATE")
public String getCallDate() {
return callDate;
}
public void setCallDate(String callDate) {
this.callDate = callDate;
}
@Basic
@Column(name = "BACK_DATE")
public String getBackDate() {
return backDate;
}
public void setBackDate(String backDate) {
this.backDate = backDate;
}
@Basic
@Column(name = "COUNTY_CODE")
public String getCountyCode() {
return countyCode;
}
public void setCountyCode(String countyCode) {
this.countyCode = countyCode;
}
@Basic
@Column(name = "POLICE_CODE")
public String getPoliceCode() {
return policeCode;
}
public void setPoliceCode(String policeCode) {
this.policeCode = policeCode;
}
@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;
RedoRegistrationEntity that = (RedoRegistrationEntity) o;
return Objects.equals(redoRegistrationId, that.redoRegistrationId) &&
Objects.equals(submitDate, that.submitDate) &&
Objects.equals(name, that.name) &&
Objects.equals(cardId, that.cardId) &&
Objects.equals(redoReason, that.redoReason) &&
Objects.equals(callDate, that.callDate) &&
Objects.equals(backDate, that.backDate) &&
Objects.equals(countyCode, that.countyCode) &&
Objects.equals(policeCode, that.policeCode) &&
Objects.equals(note, that.note);
}
@Override
public int hashCode() {
return Objects.hash(redoRegistrationId,countyCode,policeCode, submitDate, name, cardId, redoReason, callDate, backDate, note);
}
}
package com.yxproject.start.entity.Preprocess;
import javax.persistence.*;
import java.util.Objects;
/**
* @auther zhangyusheng
* 2019/2/18 15:17
*/
@Entity
@Table(name = "TEMPORARY_CERTIFICATE", schema = "PREPROCESS", catalog = "")
public class TemporaryCertificateEntity {
private String temporaryCertificateId;
private String name;
private String cardId;
private String phone;
private String lastDurationOfStatus;
private String receiptDate;
private String dateOfHandOverToTreat;
private String backWorkshopDate;
private String deliverToParty;
private String note;
@Id
@Column(name = "TEMPORARY_CERTIFICATE_ID")
public String getTemporaryCertificateId() {
return temporaryCertificateId;
}
public void setTemporaryCertificateId(String temporaryCertificateId) {
this.temporaryCertificateId = temporaryCertificateId;
}
@Basic
@Column(name = "NAME")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CARD_ID")
public String getCardId() {
return cardId;
}
public void setCardId(String cardId) {
this.cardId = cardId;
}
@Basic
@Column(name = "PHONE")
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
@Basic
@Column(name = "LAST_DURATION_OF_STATUS")
public String getLastDurationOfStatus() {
return lastDurationOfStatus;
}
public void setLastDurationOfStatus(String lastDurationOfStatus) {
this.lastDurationOfStatus = lastDurationOfStatus;
}
@Basic
@Column(name = "RECEIPT_DATE")
public String getReceiptDate() {
return receiptDate;
}
public void setReceiptDate(String receiptDate) {
this.receiptDate = receiptDate;
}
@Basic
@Column(name = "DATE_OF_HAND_OVER_TO_TREAT")
public String getDateOfHandOverToTreat() {
return dateOfHandOverToTreat;
}
public void setDateOfHandOverToTreat(String dateOfHandOverToTreat) {
this.dateOfHandOverToTreat = dateOfHandOverToTreat;
}
@Basic
@Column(name = "BACK_WORKSHOP_DATE")
public String getBackWorkshopDate() {
return backWorkshopDate;
}
public void setBackWorkshopDate(String backWorkshopDate) {
this.backWorkshopDate = backWorkshopDate;
}
@Basic
@Column(name = "DELIVER_TO_PARTY")
public String getDeliverToParty() {
return deliverToParty;
}
public void setDeliverToParty(String deliverToParty) {
this.deliverToParty = deliverToParty;
}
@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;
TemporaryCertificateEntity that = (TemporaryCertificateEntity) o;
return Objects.equals(temporaryCertificateId, that.temporaryCertificateId) &&
Objects.equals(name, that.name) &&
Objects.equals(cardId, that.cardId) &&
Objects.equals(phone, that.phone) &&
Objects.equals(lastDurationOfStatus, that.lastDurationOfStatus) &&
Objects.equals(receiptDate, that.receiptDate) &&
Objects.equals(dateOfHandOverToTreat, that.dateOfHandOverToTreat) &&
Objects.equals(backWorkshopDate, that.backWorkshopDate) &&
Objects.equals(deliverToParty, that.deliverToParty) &&
Objects.equals(note, that.note);
}
@Override
public int hashCode() {
return Objects.hash(temporaryCertificateId, name, cardId, phone, lastDurationOfStatus, receiptDate, dateOfHandOverToTreat, backWorkshopDate, deliverToParty, note);
}
}
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.mapper;
import com.yxproject.start.entity.Preprocess.PersonPostAbnormalEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* @auther zhangyusheng
* 2019/2/13 9:07
*/
@Mapper
public interface PersonPostAbnormalMapper {
/**
* 查询某天的邮寄信息错误
* @return
*/
@Select("select * from PERSON_POST_ABNORMAL where CHECK_DATE = #{date} ")
public List<PersonPostAbnormalEntity> selectAllPersonPostAbnormalEntity(String date);
}
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.Preprocess.PersonPostEntity; import com.yxproject.start.entity.PersonPostEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update; import org.apache.ibatis.annotations.Update;
......
package com.yxproject.start.mapper;
import com.yxproject.start.entity.Preprocess.PersonalProgressStatusEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* @auther zhangyusheng
* 2019/2/14 10:33
*/
@Mapper
public interface PersonalProgressStatusMapper {
/**
* 查询某天的个人制证状态信息
* @return
*/
@Select("select * from PERSONAL_PROGRESS_STATUS where to_char(SIGN_IN_DATE,'yyyyMMdd') = #{date} or SIGN_IN_DATE is null ")
public List<PersonalProgressStatusEntity> selectAllPersonalProgressStatusEntity(String date);
}
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.Preprocess.PreproPersonEntity; import com.yxproject.start.entity.PreproPersonEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update; import org.apache.ibatis.annotations.Update;
......
package com.yxproject.start.mapper;
import com.yxproject.start.entity.Preprocess.RedoRegistrationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
/**
* @auther zhangyusheng
* 2019/2/14 11:36
*/
@Mapper
public interface RedoRegistrationMapper {
/**
* 查询某天的重做登记信息
* @return
*/
@Select("select * from REDO_REGISTRATION where BACK_DATE = #{date} or BACK_DATE is null")
public List<RedoRegistrationEntity> selectAllRedoRegistrationEntity(String date);
@Update("update REDO_REGISTRATION set REDO_REGISTRATION_ID=#{redoRegistrationId},SUBMIT_DATE=#{submitDate},COUNTY_CODE=#{countyCode},POLICE_CODE=#{countyCode},POLICE_CODE=#{policeCode},NAME=#{name},CARD_ID=#{cardId},REDO_REASON=#{redoReason},CALL_DATE=#{callDate},BACK_DATE=#{backDate},NOTE=#{note}")
public boolean updateRedoRegistration(RedoRegistrationEntity redoRegistration);
}
package com.yxproject.start.mapper;
import com.yxproject.start.entity.Preprocess.TemporaryCertificateEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
/**
* @auther zhangyusheng
* 2019/2/14 11:39
*/
@Mapper
public interface TemporaryCertificateMapper {
/**
* 查询某天的临时证件信息
* @return
*/
@Select("select * from TEMPORARY_CERTIFICATE where DELIVER_TO_PARTY = #{date} or DELIVER_TO_PARTY is null")
public List<TemporaryCertificateEntity> selectAllTemporaryCertificateEntity(String date);
/**
* 导入临时证件信息
* @param TemporaryCertificate
*/
@Update("update TEMPORARY_CERTIFICATE set TEMPORARY_CERTIFICATE_ID=#{temporaryCertificateId},NAME=#{name},CARD_ID=#{cardId},PHONE=#{phone},LAST_DURATION_OF_STATUS=#{lastDurationOfStatus},RECEIPT_DATE=#{receiptDate},DATE_OF_HAND_OVER_TO_TREAT=#{dateOfHandOverToTreat},BACK_WORKSHOP_DATE=#{backWorkshopDate},DELIVER_TO_PARTY=#{deliverToParty},NOTE=#{note}")
public boolean updateTemporaryCertificate(TemporaryCertificateEntity TemporaryCertificate);
}
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.Preprocess.PreproPersonEntity; import com.yxproject.start.entity.PreproPersonEntity;
import java.util.List; import java.util.List;
......
package com.yxproject.start.service;
import com.yxproject.start.entity.PersonPostEntity;
import java.util.List;
/**
* @auther zhangyusheng
* 2019/2/19 15:01
*/
public interface PersonPostService {
/**
* 导入个人邮寄异常信息
*/
public boolean updatePersonPost(List<PersonPostEntity> personPostEntities);
}
package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
import com.yxproject.start.entity.Preprocess.PreproPersonEntity; import com.yxproject.start.entity.PreproPersonEntity;
import com.yxproject.start.mapper.PreproPersonMapper; import com.yxproject.start.mapper.PreproPersonMapper;
import com.yxproject.start.service.ImportXmlService; import com.yxproject.start.service.ImportXmlService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
package com.yxproject.start.service.impl;
import com.yxproject.start.entity.PersonPostEntity;
import com.yxproject.start.entity.PreproPersonEntity;
import com.yxproject.start.mapper.PersonPostMapper;
import com.yxproject.start.mapper.PreproPersonMapper;
import com.yxproject.start.service.PersonPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* @auther zhangyusheng
* 2019/2/19 15:01
*/
@Service
public class PersonPostServiceImpl implements PersonPostService {
@Autowired
private PersonPostMapper personPostMapper;
@Autowired
private PreproPersonMapper preproPersonMapper;
@Override
@Transactional(rollbackFor = Exception.class)
public boolean updatePersonPost(List<PersonPostEntity> personPostEntities) {
for (PersonPostEntity personPostEntity: personPostEntities) {
boolean b = personPostMapper.updatePersonPost(personPostEntity);
PreproPersonEntity preproPersonEntity = new PreproPersonEntity();
preproPersonEntity.setJmsfzslh(personPostEntity.getFirstWhite());
preproPersonEntity.setIsPost((long)1);
preproPersonMapper.updatePreproPersonEntity(preproPersonEntity);
}
return true;
}
}
//package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
//
//import com.yxproject.start.mapper.SysPermissionMapper; import com.yxproject.start.entity.SysPermission;
//import com.yxproject.start.service.SysPermissionService; import com.yxproject.start.mapper.SysPermissionMapper;
//import org.springframework.beans.factory.annotation.Autowired; import com.yxproject.start.service.SysPermissionService;
//import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired;
// import org.springframework.stereotype.Service;
//import java.util.List;
// import java.util.List;
///**
// * @author Administrator /**
// */ * @author Administrator
//@Service */
//public class SysPermissionServiceImpl implements SysPermissionService{ @Service
// public class SysPermissionServiceImpl implements SysPermissionService{
// @Autowired
// private SysPermissionMapper sysPermissionMapper; @Autowired
// private SysPermissionMapper sysPermissionMapper;
// @Override
// public boolean addPermission(SysPermission sysPermission) { @Override
// sysPermissionMapper.addPermissionByMap(sysPermission); public boolean addPermission(SysPermission sysPermission) {
// return true; sysPermissionMapper.addPermissionByMap(sysPermission);
// } return true;
// }
// @Override
// public List<SysPermission> getAllActivePermission() { @Override
// List<SysPermission> list = sysPermissionMapper.selectAllActivePermission(); public List<SysPermission> getAllActivePermission() {
// return list; List<SysPermission> list = sysPermissionMapper.selectAllActivePermission();
// } return list;
// @Override }
// public List<SysPermission> getAllPermission() { @Override
// List<SysPermission> list = sysPermissionMapper.selectAllPermission(); public List<SysPermission> getAllPermission() {
// return list; List<SysPermission> list = sysPermissionMapper.selectAllPermission();
// } return list;
// }
//
// @Override
// public boolean deletePermission(Integer permissionId) { @Override
// sysPermissionMapper.delPermission(permissionId); public boolean deletePermission(Integer permissionId) {
// return true; sysPermissionMapper.delPermission(permissionId);
// } return true;
// }
// @Override
// public boolean backPermission(Integer permissionId) { @Override
// sysPermissionMapper.backPermission(permissionId); public boolean backPermission(Integer permissionId) {
// return true; sysPermissionMapper.backPermission(permissionId);
// } return true;
// }
// @Override
// public SysPermission getPermissionByPId(Integer permissionId) { @Override
// SysPermission sysPermission = sysPermissionMapper.selectPermissionByPid(permissionId); public SysPermission getPermissionByPId(Integer permissionId) {
// return sysPermission; SysPermission sysPermission = sysPermissionMapper.selectPermissionByPid(permissionId);
// } return sysPermission;
// }
// @Override
// public String getParentNameByParentId(Long parentId) { @Override
// String parentName = sysPermissionMapper.selectParentNameById(parentId); public String getParentNameByParentId(Long parentId) {
// return parentName; String parentName = sysPermissionMapper.selectParentNameById(parentId);
// } return parentName;
// }
// @Override
// public boolean updatePermission(SysPermission sysPermission) { @Override
// sysPermissionMapper.updatePermission(sysPermission); public boolean updatePermission(SysPermission sysPermission) {
// return true; sysPermissionMapper.updatePermission(sysPermission);
// } return true;
// }
//
//}
}
//package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
//
//import com.yxproject.start.mapper.SysRoleMapper; import com.yxproject.start.entity.SysRole;
//import com.yxproject.start.service.SysRoleService; import com.yxproject.start.mapper.SysRoleMapper;
//import net.sf.json.JSONArray; import com.yxproject.start.service.SysRoleService;
//import org.springframework.beans.factory.annotation.Autowired; import net.sf.json.JSONArray;
//import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.transaction.annotation.Transactional; import org.springframework.stereotype.Service;
// import org.springframework.transaction.annotation.Transactional;
//import java.util.List;
// import java.util.List;
///**
// * @author liboyang /**
// */ * @author liboyang
//@Service */
//public class SysRoleServiceImpl implements SysRoleService { @Service
// @Autowired public class SysRoleServiceImpl implements SysRoleService {
// private SysRoleMapper sysRoleMapper; @Autowired
// @Override private SysRoleMapper sysRoleMapper;
// @Transactional(rollbackFor=Exception.class) @Override
// public boolean addRole(SysRole sysRole, JSONArray jsonArray) { @Transactional(rollbackFor=Exception.class)
// sysRoleMapper.addRoleByMap(sysRole); public boolean addRole(SysRole sysRole, JSONArray jsonArray) {
// Integer roleId = sysRole.getId(); sysRoleMapper.addRoleByMap(sysRole);
// for (Object object:jsonArray){ Integer roleId = sysRole.getId();
// sysRoleMapper.addRolePermission(roleId,Integer.parseInt(object.toString())); for (Object object:jsonArray){
// } sysRoleMapper.addRolePermission(roleId,Integer.parseInt(object.toString()));
// return true; }
// } return true;
// }
// @Override
// @Transactional(rollbackFor=Exception.class) @Override
// public boolean updateRole(SysRole sysRole, JSONArray ids, JSONArray oldIds) { @Transactional(rollbackFor=Exception.class)
// sysRoleMapper.updateSysRole(sysRole); public boolean updateRole(SysRole sysRole, JSONArray ids, JSONArray oldIds) {
// for (Object object:oldIds){ sysRoleMapper.updateSysRole(sysRole);
// sysRoleMapper.delRolePermission(sysRole.getId(),Integer.parseInt(object.toString())); for (Object object:oldIds){
// } sysRoleMapper.delRolePermission(sysRole.getId(),Integer.parseInt(object.toString()));
// for (Object object:ids){ }
// sysRoleMapper.addRolePermission(sysRole.getId(),Integer.parseInt(object.toString())); for (Object object:ids){
// } sysRoleMapper.addRolePermission(sysRole.getId(),Integer.parseInt(object.toString()));
// return true; }
// } return true;
// }
//
// @Override
// public List<SysRole> getAllRoleInfo() { @Override
// List<SysRole> list = sysRoleMapper.selectAllRole(); public List<SysRole> getAllRoleInfo() {
// return list; List<SysRole> list = sysRoleMapper.selectAllRole();
// } return list;
// }
// @Override
// public List<SysRole> getAllActiveRoleInfo() { @Override
// List<SysRole> list = sysRoleMapper.selectAllActiveRole(); public List<SysRole> getAllActiveRoleInfo() {
// return list; List<SysRole> list = sysRoleMapper.selectAllActiveRole();
// } return list;
// }
// @Override
// public boolean deleteRole(Integer roleId) { @Override
// sysRoleMapper.delRole(roleId); public boolean deleteRole(Integer roleId) {
// return true; sysRoleMapper.delRole(roleId);
// } return true;
// }
// @Override
// public boolean backRole(Integer roleId) { @Override
// sysRoleMapper.backRole(roleId); public boolean backRole(Integer roleId) {
// return true; sysRoleMapper.backRole(roleId);
// } return true;
// }
// @Override
// public SysRole getRoleByRoleId(Integer roleId) { @Override
// SysRole sysRole = sysRoleMapper.selectRoleByRoleId(roleId); public SysRole getRoleByRoleId(Integer roleId) {
// return sysRole; SysRole sysRole = sysRoleMapper.selectRoleByRoleId(roleId);
// } return sysRole;
// }
//
//}
}
...@@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
import java.util.Map;
@Service @Service
public class TaskListServiceImpl implements TaskListService { public class TaskListServiceImpl implements TaskListService {
......
//package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
//
//import com.yxproject.start.mapper.SysRoleMapper; import com.yxproject.start.entity.UserInfo;
//import com.yxproject.start.mapper.UserInfoMapper; import com.yxproject.start.mapper.SysRoleMapper;
//import com.yxproject.start.service.UserInfoService; import com.yxproject.start.mapper.UserInfoMapper;
//import org.springframework.beans.factory.annotation.Autowired; import com.yxproject.start.service.UserInfoService;
//import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.transaction.annotation.Transactional; import org.springframework.stereotype.Service;
// import org.springframework.transaction.annotation.Transactional;
//import java.util.List;
// import java.util.List;
///**
// * @author liboyang /**
// */ * @author liboyang
//@Service */
// @Service
//public class UserInfoServiceImpl implements UserInfoService {
// public class UserInfoServiceImpl implements UserInfoService {
// @Autowired
// private UserInfoMapper userInfoMapper; @Autowired
// @Autowired private UserInfoMapper userInfoMapper;
// private SysRoleMapper sysRoleMapper; @Autowired
// private SysRoleMapper sysRoleMapper;
// @Override
// public UserInfo findByUsername(String username) { @Override
// public UserInfo findByUsername(String username) {
// UserInfo user = userInfoMapper.findUserByUsername(username);
// UserInfo user = userInfoMapper.findUserByUsername(username);
// return user;
// } return user;
// }
// @Override
// @Transactional(rollbackFor=Exception.class) @Override
// public boolean addUser(UserInfo userinfo, Integer roleId) { @Transactional(rollbackFor=Exception.class)
// userInfoMapper.saveUserInfo(userinfo); public boolean addUser(UserInfo userinfo, Integer roleId) {
// if(roleId==-1){ userInfoMapper.saveUserInfo(userinfo);
// return true; if(roleId==-1){
// } return true;
// userInfoMapper.saveUserRole(userinfo.getId(),roleId); }
// return true; userInfoMapper.saveUserRole(userinfo.getId(),roleId);
// } return true;
// }
// @Override
// public List<UserInfo> getAllUserInfo() { @Override
// List<UserInfo> list = userInfoMapper.selectAllUserInfo(); public List<UserInfo> getAllUserInfo() {
// return list; List<UserInfo> list = userInfoMapper.selectAllUserInfo();
// } return list;
// }
// @Override
// public boolean deleteUserInfo(Integer userId) { @Override
// userInfoMapper.delUserInfo(userId); public boolean deleteUserInfo(Integer userId) {
// return true; userInfoMapper.delUserInfo(userId);
// } return true;
// }
// @Override
// public boolean BackUserInfo(Integer userId) { @Override
// userInfoMapper.backUserInfo(userId); public boolean BackUserInfo(Integer userId) {
// return true; userInfoMapper.backUserInfo(userId);
// } return true;
// }
// @Override
// public UserInfo getUserInfoByUserId(Integer userId) { @Override
// UserInfo userInfo = userInfoMapper.selectUserInfoByUserId(userId); public UserInfo getUserInfoByUserId(Integer userId) {
// return userInfo; UserInfo userInfo = userInfoMapper.selectUserInfoByUserId(userId);
// } return userInfo;
// }
// @Override
// @Transactional(rollbackFor=Exception.class) @Override
// public boolean updateUser(UserInfo userInfo, Integer roleId, Integer oldRoleId) { @Transactional(rollbackFor=Exception.class)
// userInfoMapper.updateUserInfo(userInfo); public boolean updateUser(UserInfo userInfo, Integer roleId, Integer oldRoleId) {
// if(roleId.equals(oldRoleId)){ userInfoMapper.updateUserInfo(userInfo);
// return true; if(roleId.equals(oldRoleId)){
// } return true;
// sysRoleMapper.updateUserRole(userInfo.getId(),roleId); }
// return true; sysRoleMapper.updateUserRole(userInfo.getId(),roleId);
// } return true;
// }
//
//
//}
}
package com.yxproject.start.utils; package com.yxproject.start.utils;
import com.yxproject.start.entity.Preprocess.FilesEntity; import com.yxproject.start.entity.FilesEntity;
import com.yxproject.start.entity.Preprocess.PreproPersonEntity; import com.yxproject.start.entity.PreproPersonEntity;
import org.dom4j.Document; import org.dom4j.Document;
import org.dom4j.DocumentHelper; import org.dom4j.DocumentHelper;
import org.dom4j.Element; import org.dom4j.Element;
...@@ -25,18 +25,13 @@ public class ExportXml { ...@@ -25,18 +25,13 @@ public class ExportXml {
document.setRootElement(PACKAGE); document.setRootElement(PACKAGE);
Element PACKAGEHEAD = PACKAGE.addElement("PACKAGEHEAD"); Element PACKAGEHEAD = PACKAGE.addElement("PACKAGEHEAD");
Element DATA = PACKAGE.addElement("DATA"); Element DATA = PACKAGE.addElement("DATA");
Element BBH = PACKAGEHEAD.addElement("BBH");
BBH.setText(filesEntity.getBbh());
Element DWDM = PACKAGEHEAD.addElement("DWDM"); Element DWDM = PACKAGEHEAD.addElement("DWDM");
DWDM.setText(filesEntity.getDwdm()); DWDM.setText(filesEntity.getDwdm());
Element DWMC = PACKAGEHEAD.addElement("DWMC"); Element DWMC = PACKAGEHEAD.addElement("DWMC");
DWMC.setText(filesEntity.getDwmc()); DWMC.setText(filesEntity.getDwmc());
Element JLS = PACKAGEHEAD.addElement("JLS"); Element JLS = PACKAGEHEAD.addElement("JLS");
JLS.setText(preproPersonEntities.size()+""); JLS.setText(preproPersonEntities.size()+"");
Element SCSJ = PACKAGEHEAD.addElement("SCSJ");
SCSJ.setText(filesEntity.getScsj());
Element SJBBH = PACKAGEHEAD.addElement("SJBBH");
SJBBH.setText(filesEntity.getSjbbh());
int NO=1; int NO=1;
for (PreproPersonEntity preproPersonEntity : preproPersonEntities) { for (PreproPersonEntity preproPersonEntity : preproPersonEntities) {
Element RECORD = DATA.addElement("RECORD"); Element RECORD = DATA.addElement("RECORD");
...@@ -89,7 +84,7 @@ public class ExportXml { ...@@ -89,7 +84,7 @@ public class ExportXml {
Element SJR_TXDZ = RECORD.addElement("SJR_TXDZ"); Element SJR_TXDZ = RECORD.addElement("SJR_TXDZ");
SJR_TXDZ.setText(replaceNullString(preproPersonEntity.getSjrTxdz())); SJR_TXDZ.setText(replaceNullString(preproPersonEntity.getSjrTxdz()));
} }
YXStringUtils.saveDom2File(document, url + "\\" + "ZAGL_ZZJH_" + filesEntity.getSjbbh() + ".xml"); YXStringUtils.saveDom2File(document, url + "\\" + "ZAGL_ZZJH_" + ".xml");
} }
......
...@@ -4,9 +4,9 @@ server: ...@@ -4,9 +4,9 @@ server:
spring: spring:
datasource: datasource:
driver-class-name: oracle.jdbc.driver.OracleDriver driver-class-name: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@192.168.1.108:1521:yingxin url: jdbc:oracle:thin:@192.168.1.197:1521:orcl
username: yingxin username: yx
password: yingxin password: yx
mybatis: mybatis:
type-aliases-package: com.yxproject.start.entity type-aliases-package: com.yxproject.start.entity
......
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