Commit 0e943ec8 by dengtt

对账单信息新增userId及userType字段.

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@25860 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 1e1cf65c
......@@ -11,6 +11,10 @@ public class ReconciliationVO {
private String reconciliationSn; //对账单号
private Integer userId; // 安装方Id
private Integer userType;
private String name; // 技工姓名或服务商名称 安装方
private String phone; //手机号
......@@ -54,6 +58,22 @@ public class ReconciliationVO {
this.reconciliationSn = reconciliationSn;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getUserType() {
return userType;
}
public void setUserType(Integer userType) {
this.userType = userType;
}
public String getName() {
return name;
}
......
......@@ -24,6 +24,8 @@ public interface ReconciliationBaseService {
String getUserPhone(Integer userId);
Integer getUserType(Integer userId);
/**
* 根据服务项的code列表,获取对应的服务项map集合(key:code,value:name)
*/
......
......@@ -114,6 +114,13 @@ public class ReconciliationBaseServiceImpl implements ReconciliationBaseService
return StringUtils.defaultString(user == null ? "" : user.getPhoneNumber());
}
@Override
public Integer getUserType(Integer userId) {
SysUser user = userMapper.selectByPrimaryKey(userId);
if (user != null && user.getUserType() != null) return user.getUserType().intValue();
return null;
}
/**
* 根据服务项的code列表,获取对应的服务项的map集合——key:code;value:name.
*/
......
......@@ -104,6 +104,8 @@ public class ReconciliationServiceImpl implements ReconciliationService {
vo.setIDCard(reconciliationBaseService.getUserIdCard(rawData.getUserId()));
// 设置手机号
vo.setPhone(reconciliationBaseService.getUserPhone(rawData.getUserId()));
// 设置用户类型
vo.setUserType(reconciliationBaseService.getUserType(rawData.getUserId()));
// 设置对账周期
SysReconciliationMonthly monthly = reconciliationMonthlyMapper.selectByPrimaryKey(rawData.getReconciliationMonthlyId());
String cycle = DateUtil.getMonthStart(DateUtil.parseDate(monthly.getReconciliationCycle(), "yyyy-MM")) + "~" + DateUtil.getMonthEnd(DateUtil.parseDate(monthly.getReconciliationCycle(), "yyyy-MM"));
......@@ -229,6 +231,7 @@ public class ReconciliationServiceImpl implements ReconciliationService {
vo.setBankAreaInfo(rawData.getProvince() + rawData.getCity() + rawData.getDistrict());
vo.setGenerateTime(rawData.getGenerateTime());
vo.setId(rawData.getId());
vo.setUserId(rawData.getUserId());
vo.setName(rawData.getName());
vo.setQuasiSettlementAmount(rawData.getQuasiSettlementAmount());
vo.setSettlementAmount(rawData.getSettlementAmount());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!