|
@@ -26,9 +26,6 @@ import com.xt.jygl.gkjygl.cghzyxxgl.dcsb.service.DcsbService;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrbw.service.BwService;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.entity.BwEntity;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.entity.GkjyrEntity;
|
|
|
-import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.service.GkjyrService;
|
|
|
-import com.xt.jygl.set.user.client.UserService;
|
|
|
-import com.xtframe.core.support.SecurityMgr;
|
|
|
import com.xtframe.sec.code.entity.CodeEntity;
|
|
|
import com.xtframe.sec.common.BaseEntity;
|
|
|
import com.xtframe.sec.common.PredicateModel;
|
|
@@ -136,19 +133,24 @@ public class DcsbWebService extends BaseWebCtl {
|
|
|
return list.getContent();
|
|
|
}
|
|
|
|
|
|
- public DcsbEntity submit(DcsbEntity entity) {
|
|
|
+ public boolean submit(DcsbEntity entity) {
|
|
|
UserEntity user = getWebServiceUser();
|
|
|
if (user == null) {
|
|
|
- return null;
|
|
|
+ return false;
|
|
|
}
|
|
|
GkjyrEntity jyr = user.getSsjyr();
|
|
|
if (jyr == null) {
|
|
|
- return null;
|
|
|
+ return false;
|
|
|
}
|
|
|
entity.setSsjyr(jyr);
|
|
|
entity.setSzgk(jyr.getSzgk());
|
|
|
entity.setSzgq(jyr.getSzgq());
|
|
|
- return dcsbService.submit(entity);
|
|
|
+ try {
|
|
|
+ entity = dcsbService.submit(entity);
|
|
|
+ } catch (Exception e) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
public boolean audit(String shyj, String dcsbId, boolean flag) {
|