领悦修改制单人参数

This commit is contained in:
Harryxzy 2025-04-17 16:44:40 +08:00
parent 9addd39bf0
commit 56d4ef206c
1 changed files with 12 additions and 3 deletions

View File

@ -990,8 +990,18 @@ public class LyPZServiceImpl extends Service implements LyPZService {
// 制单日期 非空
lyNCVoucher.setPrepareddate(SalaryDateUtil.getFormatLocalDateTime(cal.getTime()));
// 制单人 非空 用户
String pkPrepared = baseBean.getPropValue("lySalaryNCVoucherPushParam", "pk_prepared");
lyNCVoucher.setPkPrepared(pkPrepared);
// String pkPrepared = baseBean.getPropValue("lySalaryNCVoucherPushParam", "pk_prepared");
// 获取当前登录人的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("201");
@ -1009,7 +1019,6 @@ public class LyPZServiceImpl extends Service implements LyPZService {
}
});
ArrayList<LyNCVoucherDetail> lyNCVoucherDetailList = new ArrayList<>();
RecordSet rs = new RecordSet();
// 借方分录
for (int i = 0; i < jfDetailList.size(); i++) {
LyVoucherDetailPushParam detailParam = jfDetailList.get(i);