Browse Source

通讯录新增烟台需求字段

master
lichao 2 years ago
parent
commit
d131fd9581
  1. 34
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/AddStaffV2FromDTO.java
  2. 33
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/StaffSubmitFromDTO.java
  3. 25
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/CustomerStaffDTO.java
  4. 28
      epmet-user/epmet-user-server/src/main/java/com/epmet/entity/CustomerStaffEntity.java
  5. 24
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

34
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/AddStaffV2FromDTO.java

@ -78,4 +78,38 @@ public class AddStaffV2FromDTO implements Serializable {
* 烟台用当前登录用户 * 烟台用当前登录用户
*/ */
private String currentUserId; private String currentUserId;
/**
* 烟台需求党组织职务
*/
private String partyPosition;
/**
* 烟台需求村居委员职务
*/
private String viliagePosition;
/**
* 烟台需求工作职责
*/
private String duty;
/**
* 烟台需求备注
*/
private String remark;
/**
* 文化程度
*/
private String culture;
/**
* 身份证
*/
private String idCard;
/**
* 居住地址
*/
private String address;
} }

33
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/StaffSubmitFromDTO.java

@ -74,4 +74,37 @@ public class StaffSubmitFromDTO implements Serializable {
* 社会自组织: community_org * 社会自组织: community_org
*/ */
private String deptType; private String deptType;
/**
* 烟台需求党组织职务
*/
private String partyPosition;
/**
* 烟台需求村居委员职务
*/
private String viliagePosition;
/**
* 烟台需求工作职责
*/
private String duty;
/**
* 烟台需求备注
*/
private String remark;
/**
* 文化程度
*/
private String culture;
/**
* 身份证
*/
private String idCard;
/**
* 居住地址
*/
private String address;
} }

25
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/CustomerStaffDTO.java

@ -150,4 +150,29 @@ public class CustomerStaffDTO implements Serializable {
*/ */
private String idCard; private String idCard;
/**
* 烟台需求党组织职务
*/
private String partyPosition;
/**
* 烟台需求村居委员职务
*/
private String viliagePosition;
/**
* 烟台需求工作职责
*/
private String duty;
/**
* 烟台需求备注
*/
private String remark;
/**
* 文化程度
*/
private String culture;
} }

28
epmet-user/epmet-user-server/src/main/java/com/epmet/entity/CustomerStaffEntity.java

@ -111,4 +111,32 @@ public class CustomerStaffEntity extends BaseEpmetEntity {
* 身份证号 * 身份证号
*/ */
private String idCard; private String idCard;
/**
* 烟台需求党组织职务
*/
private String partyPosition;
/**
* 烟台需求村居委员职务
*/
private String viliagePosition;
/**
* 烟台需求工作职责
*/
private String duty;
/**
* 烟台需求备注
*/
private String remark;
/**
* 文化程度
*/
private String culture;
} }

24
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

@ -370,6 +370,30 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao,
staffEntity.setWorkType(fromDTO.getWorkType()); staffEntity.setWorkType(fromDTO.getWorkType());
staffEntity.setEnableFlag(CustomerStaffConstant.ENABLE); staffEntity.setEnableFlag(CustomerStaffConstant.ENABLE);
staffEntity.setPassword(PasswordUtils.encode("12345678")); staffEntity.setPassword(PasswordUtils.encode("12345678"));
if (StringUtils.isNotBlank(fromDTO.getRemark())){
staffEntity.setRemark(fromDTO.getRemark());
}
if (StringUtils.isNotBlank(fromDTO.getAddress())){
staffEntity.setAddress(fromDTO.getAddress());
}
if (StringUtils.isNotBlank(fromDTO.getPartyPosition())){
staffEntity.setPartyPosition(fromDTO.getPartyPosition());
}
if (StringUtils.isNotBlank(fromDTO.getViliagePosition())){
staffEntity.setViliagePosition(fromDTO.getViliagePosition());
}
if (StringUtils.isNotBlank(fromDTO.getDuty())){
staffEntity.setDelFlag(fromDTO.getDuty());
}
if (StringUtils.isNotBlank(fromDTO.getIdCard())){
staffEntity.setIdCard(fromDTO.getIdCard());
}
if (StringUtils.isNotBlank(fromDTO.getCulture())){
staffEntity.setCulture(fromDTO.getCulture());
}
baseDao.insert(staffEntity); baseDao.insert(staffEntity);
//工作人员角色关联表 //工作人员角色关联表

Loading…
Cancel
Save