Commit c1e5f807 by 唐功亮

厂商认证第一步时 修改存储状态

parent 0ff95c9e
...@@ -328,6 +328,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm ...@@ -328,6 +328,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
tycpdmFirm.setFId(fid); tycpdmFirm.setFId(fid);
Integer fId = tycpdmFirm.getFId(); Integer fId = tycpdmFirm.getFId();
if (fId==0){//新增数据 if (fId==0){//新增数据
tycpdmFirm.setLogoutFlag(-1);
save(tycpdmFirm); save(tycpdmFirm);
id = tycpdmFirm.getFId(); id = tycpdmFirm.getFId();
return id; return id;
...@@ -376,10 +377,12 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm ...@@ -376,10 +377,12 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
tycpdmFirmChangeEntity.setFId(fId); tycpdmFirmChangeEntity.setFId(fId);
if (type==1){ if (type==1){
tycpdmFirmChangeEntity.setLogoutFlag(-1);
tycpdmFirmChangeService.save(tycpdmFirmChangeEntity); tycpdmFirmChangeService.save(tycpdmFirmChangeEntity);
id = tycpdmFirmChangeEntity.getId(); id = tycpdmFirmChangeEntity.getId();
}else if (type==2){ }else if (type==2){
if (tycpdmFirmChangeEntity.getId()==null){ if (tycpdmFirmChangeEntity.getId()==null){
tycpdmFirmChangeEntity.setLogoutFlag(-1);
tycpdmFirmChangeService.save(tycpdmFirmChangeEntity); tycpdmFirmChangeService.save(tycpdmFirmChangeEntity);
id = tycpdmFirmChangeEntity.getId(); id = tycpdmFirmChangeEntity.getId();
} }
...@@ -391,6 +394,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm ...@@ -391,6 +394,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
}else if (logoutFlag==0){ }else if (logoutFlag==0){
throw new RRException("信息已提交,等待管理员审核!"); throw new RRException("信息已提交,等待管理员审核!");
}else if (logoutFlag==1){ }else if (logoutFlag==1){
tycpdmFirmChangeEntity.setLogoutFlag(-1);
tycpdmFirmChangeService.save(tycpdmFirmChangeEntity); tycpdmFirmChangeService.save(tycpdmFirmChangeEntity);
id = tycpdmFirmChangeEntity.getId(); id = tycpdmFirmChangeEntity.getId();
}else if (logoutFlag==2){ }else if (logoutFlag==2){
......
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