|
@@ -888,8 +888,8 @@ public class JdhxpZdwxyBadjController extends BaseController {
|
|
|
public BusinessContext doHxPass(Boolean ifPass, GqnwxydjbabEntity ba,
|
|
|
GqnwxydjbabFlowEntity baFlow, String shyj, Date shsj) {
|
|
|
if (djbaFlowService.getCandidateTaskByUserAndBusKey(Utils.getCurrentUser()
|
|
|
- .getId().toString(), ba.getId().toString()) != null) {
|
|
|
- djbaFlowService.claim(ba.getId().toString(), Utils.getCurrentUser()
|
|
|
+ .getId().toString(), baFlow.getId().toString()) != null) {
|
|
|
+ djbaFlowService.claim(baFlow.getId().toString(), Utils.getCurrentUser()
|
|
|
.getId().toString());
|
|
|
}
|
|
|
BusinessContext bc = createBusinessContext();
|
|
@@ -906,10 +906,22 @@ public class JdhxpZdwxyBadjController extends BaseController {
|
|
|
djbaFlowService.logicDelete(baFlow.getId());
|
|
|
if (Constants.DEPLOY_MODE_CITY.equals(GlobalData.DEPLOY_MODE)
|
|
|
&& Constants.YES.equals(GlobalData.JAXWS_SYNC)) {
|
|
|
- JdwxphzdwxybaWebService webService = djbaService
|
|
|
- .getWebService();
|
|
|
- if (null != webService) {
|
|
|
- webService.delete(ba.getId());
|
|
|
+ try {
|
|
|
+ JdwxphzdwxybaWebService webService = djbaService
|
|
|
+ .getWebService();
|
|
|
+ ba = djbaService.findById(ba.getId());
|
|
|
+ if (null != webService) {
|
|
|
+ webService.delete(ba.getId());
|
|
|
+ ba.setTbzt(Constants.YES);
|
|
|
+ djbaService.save(ba);
|
|
|
+ } else {
|
|
|
+ ba.setTbzt(Constants.NO);
|
|
|
+ djbaService.save(ba);
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ ba.setTbzt(Constants.NO);
|
|
|
+ djbaService.save(ba);
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
} else {
|