领悦修改制单人参数
This commit is contained in:
parent
9addd39bf0
commit
56d4ef206c
|
|
@ -990,8 +990,18 @@ public class LyPZServiceImpl extends Service implements LyPZService {
|
||||||
// 制单日期 非空
|
// 制单日期 非空
|
||||||
lyNCVoucher.setPrepareddate(SalaryDateUtil.getFormatLocalDateTime(cal.getTime()));
|
lyNCVoucher.setPrepareddate(SalaryDateUtil.getFormatLocalDateTime(cal.getTime()));
|
||||||
// 制单人 非空 (用户)
|
// 制单人 非空 (用户)
|
||||||
String pkPrepared = baseBean.getPropValue("lySalaryNCVoucherPushParam", "pk_prepared");
|
// String pkPrepared = baseBean.getPropValue("lySalaryNCVoucherPushParam", "pk_prepared");
|
||||||
lyNCVoucher.setPkPrepared(pkPrepared);
|
// 获取当前登录人的nc账号
|
||||||
|
String zdr = "";
|
||||||
|
RecordSet rs = new RecordSet();
|
||||||
|
rs.executeQuery("select field64 from cus_fielddata where scopeid = 3 and id = ?", new Object[]{user.getUID()});
|
||||||
|
if (rs.next()) {
|
||||||
|
zdr = rs.getString(1);
|
||||||
|
}
|
||||||
|
if (StringUtils.isBlank(zdr)) {
|
||||||
|
throw new SalaryRunTimeException("制单人为空");
|
||||||
|
}
|
||||||
|
lyNCVoucher.setPkPrepared(zdr);
|
||||||
//所属组织 非空 (组织)
|
//所属组织 非空 (组织)
|
||||||
lyNCVoucher.setPkOrg(pushParam.getZbbm().split("-")[0]);
|
lyNCVoucher.setPkOrg(pushParam.getZbbm().split("-")[0]);
|
||||||
// lyNCVoucher.setPkOrg("201");
|
// lyNCVoucher.setPkOrg("201");
|
||||||
|
|
@ -1009,7 +1019,6 @@ public class LyPZServiceImpl extends Service implements LyPZService {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
ArrayList<LyNCVoucherDetail> lyNCVoucherDetailList = new ArrayList<>();
|
ArrayList<LyNCVoucherDetail> lyNCVoucherDetailList = new ArrayList<>();
|
||||||
RecordSet rs = new RecordSet();
|
|
||||||
// 借方分录
|
// 借方分录
|
||||||
for (int i = 0; i < jfDetailList.size(); i++) {
|
for (int i = 0; i < jfDetailList.size(); i++) {
|
||||||
LyVoucherDetailPushParam detailParam = jfDetailList.get(i);
|
LyVoucherDetailPushParam detailParam = jfDetailList.get(i);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue