SVN r1014

SVN-Revision: r1014
This commit is contained in:
tdx
2025-10-13 09:56:53 +00:00
parent 6b797dde6b
commit e8adfe2380
+11 -18
View File
@@ -167,7 +167,7 @@ namespace Lskj.QueryEssentialInfo
StringBuilder sqlBuilder = new StringBuilder();
string peopleName = item["peopleName"] + "";
string idNumber = item["idNumber"] + "";
sqlBuilder.AppendLine($"delete from p_gszxfjkctab where idnumber = '{idNumber}' and itemid = '{ysyf}';");
sqlBuilder.AppendLine($"delete from p_gszxfjkctab where idnumber = '{idNumber}' and itemid = '{ysyf}' and type <> '个人养老金';");
string sylrAccumulate = item["sylrAccumulate"] + "";
sqlBuilder.AppendLine($"insert into p_gszxfjkctab (employeename,type,money,bak,idnumber,itemid) values ('{peopleName}','赡养老人','{sylrAccumulate}','','{idNumber}','{ysyf}');");
string znjyAccumulate = item["znjyAccumulate"] + "";
@@ -479,23 +479,16 @@ namespace Lskj.QueryEssentialInfo
foreach (JObject item in yljDataJArray)
{
StringBuilder sqlBuilder = new StringBuilder();
//string peopleName = item["peopleName"] + "";
//string idNumber = item["idNumber"] + "";
//sqlBuilder.AppendLine($"delete from p_gszxfjkctab where idnumber = '{idNumber}' and itemid = '{ysyf}';");
//string sylrAccumulate = item["sylrAccumulate"] + "";
//sqlBuilder.AppendLine($"insert into p_gszxfjkctab (employeename,type,money,bak,idnumber,itemid) values ('{peopleName}','赡养老人','{sylrAccumulate}','','{idNumber}','{ysyf}');");
//string znjyAccumulate = item["znjyAccumulate"] + "";
//sqlBuilder.AppendLine($"insert into p_gszxfjkctab (employeename,type,money,bak,idnumber,itemid) values ('{peopleName}','子女教育','{znjyAccumulate}','','{idNumber}','{ysyf}');");
//string xljxjyAccumulate = item["xljxjyAccumulate"] + "";
//sqlBuilder.AppendLine($"insert into p_gszxfjkctab (employeename,type,money,bak,idnumber,itemid) values ('{peopleName}','学历继续教育','{xljxjyAccumulate}','','{idNumber}','{ysyf}');");
//string zyzgjxjyAccumulate = item["zyzgjxjyAccumulate"] + "";
//sqlBuilder.AppendLine($"insert into p_gszxfjkctab (employeename,type,money,bak,idnumber,itemid) values ('{peopleName}','专业资格继续教育','{zyzgjxjyAccumulate}','','{idNumber}','{ysyf}');");
//string zfdklxAccumulate = item["zfdklxAccumulate"] + "";
//sqlBuilder.AppendLine($"insert into p_gszxfjkctab (employeename,type,money,bak,idnumber,itemid) values ('{peopleName}','住房贷款利息','{zfdklxAccumulate}','','{idNumber}','{ysyf}');");
//string zfzjAccumulate = item["zfzjAccumulate"] + "";
//sqlBuilder.AppendLine($"insert into p_gszxfjkctab (employeename,type,money,bak,idnumber,itemid) values ('{peopleName}','租房租金','{zfzjAccumulate}','','{idNumber}','{ysyf}');");
//string yyezhfAccumulate = item["yyezhfAccumulate"] + "";
//sqlBuilder.AppendLine($"insert into p_gszxfjkctab (employeename,type,money,bak,idnumber,itemid) values ('{peopleName}','婴幼儿照护','{yyezhfAccumulate}','','{idNumber}','{ysyf}');");
string ysyf = QueryApiUtil.mainRow["ysyf"] + "";
string name = item["name"] + "";
string zjhm = item["zjhm"] + "";
string sypzbh = item["sypzbh"] + "";
string pzlbDm = item["pzlbDm"] + "";
string jcje = item["jcje"] + "";
string jcsj = item["jcsj"] + "";
string xgrq = item["xgrq"] + "";
sqlBuilder.AppendLine($"delete from p_gszxfjkctab where idnumber = '{zjhm}' and itemid = '{ysyf}' and type = '个人养老金';");
sqlBuilder.AppendLine($"insert into p_gszxfjkctab (employeename,type,money,bak,idnumber,itemid) values ('{name}','个人养老金','{jcje}','','{zjhm}','{ysyf}');");
if (!string.IsNullOrEmpty(sqlBuilder.ToString()))
{
BaseImpl.ExecSqlValue(sqlBuilder.ToString());