|
@@ -200,19 +200,37 @@ public class WODispatchPlanTmDoBizFun {
|
|
|
return oRes;
|
|
|
}
|
|
|
try{
|
|
|
- Map<String,Object> map = getThisDBService().viewInfo("","",oJsonParam.getPlanId());
|
|
|
- if(map!=null||map.size()>0){
|
|
|
+ Map<String,Object> map = getThisDBService().getOne(oJsonParam.getPlanId());
|
|
|
+ if(map!=null||map.keySet().size()>0){
|
|
|
DispatchPlanInfoDetailsModel model = FastJsonUtil.map2Obj(map,DispatchPlanInfoDetailsModel.class,true);
|
|
|
+ if (model!=null) {
|
|
|
+ //TODO 查询相关联规则和标签
|
|
|
+ Map<String, Object> andWheresRuls = new HashMap<>();
|
|
|
+ andWheresRuls.put("plan_id", oJsonParam.getPlanId());
|
|
|
+ List<Map<String,Object>> rulsModels = getThisDBService().selectAllRuls("","",
|
|
|
+ andWheresRuls,new HashMap<>(),"","");
|
|
|
+ Map<String, Object> andWheresTags = new HashMap<>();
|
|
|
+ andWheresTags.put("plan_id", oJsonParam.getPlanId());
|
|
|
+ List<Map<String,Object>> tagModels = getThisDBService().selectAllTags("","",
|
|
|
+ andWheresTags,new HashMap<>(),"","");
|
|
|
+ //TODO 查询相关联的排班项信息
|
|
|
+ Map<String, Object> andWheres = new HashMap<>();
|
|
|
+ andWheres.put("plan_id", oJsonParam.getPlanId());
|
|
|
+ List<DispatchCmdBatchItemModel> itemModels = getItemDBService()
|
|
|
+ .listAllWithsExByDispoal("", "", andWheres, new HashMap<>(), "handle_start_time", "");
|
|
|
+
|
|
|
+ if(!CollectionUtils.isEmpty(rulsModels)){
|
|
|
+ model.setRulsModels(FastJsonUtil.batchMap2Obj(rulsModels,DispatchPlanInfoRuleModel.class,true));
|
|
|
+ }
|
|
|
+ if(!CollectionUtils.isEmpty(tagModels)){
|
|
|
+ model.setItemModels(FastJsonUtil.batchMap2Obj(tagModels,DispatchCmdBatchItemModel.class,true));
|
|
|
+ }
|
|
|
+ if(!CollectionUtils.isEmpty(itemModels)) {
|
|
|
+ model.setItemModels(itemModels);
|
|
|
+ }
|
|
|
|
|
|
- //TODO 查询相关联的排班项信息
|
|
|
- Map<String,Object> andWheres = new HashMap<>();
|
|
|
- andWheres.put("plan_id",oJsonParam.getPlanId());
|
|
|
- List<DispatchCmdBatchItemModel> itemModels = getItemDBService()
|
|
|
- .listAllWithsExByDispoal("","",andWheres,new HashMap<>(),"handle_start_time","");
|
|
|
-
|
|
|
- model.setItemModels(itemModels);
|
|
|
-
|
|
|
- oRes.setResdata(FastJsonUtil.toJSON(model));
|
|
|
+ oRes.setResdata(FastJsonUtil.toJSON(model));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
oRes.setRescode(ResponseCode.RESULT_NORMAL.toStrCode());
|