Commit 39ce3c94 authored by 赵啸非's avatar 赵啸非

添加根据区域编码查询基础事项

parent b3bb0953
......@@ -172,10 +172,10 @@ export default {
let res = await getPubdatumList({
page: this.current,
size: this.size,
materialName:this.searchVal
materialName:this.searchVal,
deptCode: this.department,
});
this.loading = false;
console.log("res",res)
if (res.data.code === 1) {
let { data, total } = res.data.data;
this.tableData = data;
......
......@@ -90,8 +90,8 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
}
private MatterEntity updateOrSave(SheetMatterEntity sheetMatterEntity, Long siteId, Context context) {
MatterEntity siteMatterEntity = this.selectOne(new MatterQuery().siteId(siteId).matterNo(sheetMatterEntity.getMatterNo()));
if (ObjectUtils.isEmpty(siteMatterEntity)) {
int count = this.count(new MatterQuery().siteId(siteId).matterNo(sheetMatterEntity.getMatterNo()), context);
if (count==0) {
MatterEntity matterEntity = new MatterEntity();
matterEntity.initAttrValue();
matterEntity.setSiteId(siteId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment