Commit 1c9312a9 authored by yff's avatar yff

修改BUG

parent 89ea4438
......@@ -959,7 +959,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
GphyCondition hyCondition =new GphyCondition();
hyCondition.setMid(curFkVo.getId());
curFkVo = gpfkDao.queryKwellGpfkByWosnAndGxid(fkCondition);
if(gphyDao.queryIfZpwc(hyCondition)!=0) {
if(gphyDao.queryIfZpwc(hyCondition)==0) {
curFkVo.setZpbz(SmCodeEnum.OKBZ.getPrefix());
}
}
......@@ -1019,7 +1019,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
gphy.setHylx(HzGylxEnum.ZP.getId());
gphyService.insert(gphy);
}
if(gphyDao.queryIfZpwc(hyCondition)!=0) {
if(gphyDao.queryIfZpwc(hyCondition)==0) {
curFkVo.setZpbz(SmCodeEnum.OKBZ.getPrefix());
Wogylx wogylx = (Wogylx) GavelSql.selectEntityByKey(Wogylx.class, gpfkVo.getWogylx());
if(wogylx!=null&&StringUtils.isNotEmpty(wogylx.getGxbz())&&(wogylx.getGxbz().equals("D")||wogylx.getGxbz().equals("M"))) {
......
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