Commit 2b6cb45d by jiang'yun

修改问题

parent ad8fbe93
......@@ -3,6 +3,7 @@ package com.qianhe.service.impl;
import java.util.Iterator;
import java.util.List;
import cn.hutool.core.codec.Base64;
import com.qianhe.common.annotation.DataScope;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.common.utils.bean.BeanUtils;
......@@ -140,13 +141,15 @@ public class BzscSczhzxscZbServiceImpl implements IBzscSczhzxscZbService
bzscSczhzxscCb.setParentId(0L);
bzscSczhzxscCb.setDeptId(bzscSczhzxscZb.getDeptId());
bzscSczhzxscCb.setNd(bzscSczhzxscZb.getNd());
bzscSczhzxscCb.setNr(new String(Base64.decode(bzscSczhzxscCb.getNr())));
bzscSczhzxscZbMapper.insertBzscSczhzxscCb(bzscSczhzxscCb);
if(StringUtils.isNotNull(bzscSczhzxscCb.getChildList())){
for(BzscSczhzxscCb cb1:bzscSczhzxscCb.getChildList()){
cb1.setZbId(ID);
cb1.setParentId(bzscSczhzxscZb.getID());
cb1.setParentId(bzscSczhzxscCb.getID());
cb1.setDeptId(bzscSczhzxscZb.getDeptId());
cb1.setNd(bzscSczhzxscZb.getNd());
cb1.setNr(new String(Base64.decode(cb1.getNr())));
bzscSczhzxscZbMapper.insertBzscSczhzxscCb(cb1);
if(cb1.getChildList().size()>0){
for(BzscSczhzxscCb cb2:cb1.getChildList()){
......@@ -154,6 +157,7 @@ public class BzscSczhzxscZbServiceImpl implements IBzscSczhzxscZbService
cb2.setParentId(cb1.getID());
cb2.setDeptId(bzscSczhzxscZb.getDeptId());
cb2.setNd(bzscSczhzxscZb.getNd());
cb2.setNr(new String(Base64.decode(cb2.getNr())));
bzscSczhzxscZbMapper.insertBzscSczhzxscCb(cb2);
}
}else {
......@@ -164,6 +168,7 @@ public class BzscSczhzxscZbServiceImpl implements IBzscSczhzxscZbService
cb2.setParentId(cb1.getID());
cb2.setDeptId(bzscSczhzxscZb.getDeptId());
cb2.setNd(bzscSczhzxscZb.getNd());
cb2.setNr(new String(Base64.decode(cb2.getNr())));
bzscSczhzxscZbMapper.insertBzscSczhzxscCb(cb2);
}
}
......
......@@ -3,6 +3,7 @@ package com.qianhe.service.impl;
import java.util.Iterator;
import java.util.List;
import cn.hutool.core.codec.Base64;
import com.qianhe.common.annotation.DataScope;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.common.utils.SecurityUtils;
......@@ -142,6 +143,7 @@ public class BzscZczscZbServiceImpl implements IBzscZczscZbService
bzscZczscCb.setParentId(0L);
bzscZczscCb.setDeptId(bzscZczscZb.getDeptId());
bzscZczscCb.setNd(bzscZczscZb.getNd());
bzscZczscCb.setNr(new String(Base64.decode(bzscZczscCb.getNr())));
bzscZczscZbMapper.insertBzscZczscCb(bzscZczscCb);
if(StringUtils.isNotNull(bzscZczscCb.getChildList())){
for(BzscZczscCb cb1:bzscZczscCb.getChildList()){
......@@ -149,6 +151,7 @@ public class BzscZczscZbServiceImpl implements IBzscZczscZbService
cb1.setParentId(bzscZczscCb.getID());
cb1.setDeptId(bzscZczscZb.getDeptId());
cb1.setNd(bzscZczscZb.getNd());
cb1.setNr(new String(Base64.decode(cb1.getNr())));
bzscZczscZbMapper.insertBzscZczscCb(cb1);
if(cb1.getChildList().size()>0){
for(BzscZczscCb cb2:cb1.getChildList()){
......@@ -156,6 +159,7 @@ public class BzscZczscZbServiceImpl implements IBzscZczscZbService
cb2.setParentId(cb1.getID());
cb2.setDeptId(bzscZczscZb.getDeptId());
cb2.setNd(bzscZczscZb.getNd());
cb2.setNr(new String(Base64.decode(cb2.getNr())));
bzscZczscZbMapper.insertBzscZczscCb(cb2);
}
}else {
......@@ -166,6 +170,7 @@ public class BzscZczscZbServiceImpl implements IBzscZczscZbService
cb2.setParentId(cb1.getID());
cb2.setDeptId(bzscZczscZb.getDeptId());
cb2.setNd(bzscZczscZb.getNd());
cb2.setNr(new String(Base64.decode(cb2.getNr())));
bzscZczscZbMapper.insertBzscZczscCb(cb2);
}
}
......
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