|
@@ -40,7 +40,7 @@ public class DataStaticService extends Ops {
|
|
|
|
|
|
//修改汇总表中的数据
|
|
|
Query query = new Query();
|
|
|
- query.addCriteria(Criteria.where("id").is(staticInput.getLineId()));
|
|
|
+ query.addCriteria(Criteria.where("_id").is(staticInput.getLineId()));
|
|
|
Update update = new Update();
|
|
|
if(StringUtils.isNotBlank(staticInput.getJyzthm())){
|
|
|
update.set("交易主体户名", PublicStatic.specialFormatStr(staticInput.getJyzthm()));
|
|
@@ -86,7 +86,7 @@ public class DataStaticService extends Ops {
|
|
|
queryjyzthm.addCriteria(Criteria.where("fileId").in(fileIds).and("交易主体账号").is(jyztzh));
|
|
|
Update updatejy = new Update();
|
|
|
updatejy.set("交易主体户名", PublicStatic.specialFormatStr(staticInput.getJyzthm()));
|
|
|
- mongoTemplate.updateMulti(query, update, DataMap.class);
|
|
|
+ mongoTemplate.updateMulti(queryjyzthm, updatejy, DataMap.class);
|
|
|
}
|
|
|
}
|
|
|
return Mapped.OK();
|