|
|
@@ -8,19 +8,15 @@ import com.java110.core.context.DataFlowContext;
|
|
|
import com.java110.core.factory.GenerateCodeFactory;
|
|
|
import com.java110.dto.CommunityMemberDto;
|
|
|
import com.java110.dto.community.CommunityDto;
|
|
|
+import com.java110.dto.workflow.WorkflowDto;
|
|
|
+import com.java110.intf.common.IWorkflowInnerServiceSMO;
|
|
|
import com.java110.intf.community.ICommunityInnerServiceSMO;
|
|
|
import com.java110.po.community.CommunityMemberPo;
|
|
|
import com.java110.po.community.CommunityPo;
|
|
|
import com.java110.po.fee.PayFeeConfigPo;
|
|
|
+import com.java110.po.workflow.WorkflowPo;
|
|
|
import com.java110.utils.cache.MappingCache;
|
|
|
-import com.java110.utils.constant.BusinessTypeConstant;
|
|
|
-import com.java110.utils.constant.CommonConstant;
|
|
|
-import com.java110.utils.constant.CommunityMemberTypeConstant;
|
|
|
-import com.java110.utils.constant.FeeTypeConstant;
|
|
|
-import com.java110.utils.constant.MappingConstant;
|
|
|
-import com.java110.utils.constant.ResponseConstant;
|
|
|
-import com.java110.utils.constant.StateConstant;
|
|
|
-import com.java110.utils.constant.StatusConstant;
|
|
|
+import com.java110.utils.constant.*;
|
|
|
import com.java110.utils.exception.ListenerExecuteException;
|
|
|
import com.java110.utils.util.Assert;
|
|
|
import com.java110.utils.util.BeanConvertUtil;
|
|
|
@@ -47,6 +43,10 @@ public class CommunityBMOImpl extends ApiBaseBMO implements ICommunityBMO {
|
|
|
@Autowired
|
|
|
private ICommunityInnerServiceSMO communityInnerServiceSMOImpl;
|
|
|
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IWorkflowInnerServiceSMO workflowInnerServiceSMOImpl;
|
|
|
+
|
|
|
/**
|
|
|
* 添加小区信息
|
|
|
*
|
|
|
@@ -118,6 +118,35 @@ public class CommunityBMOImpl extends ApiBaseBMO implements ICommunityBMO {
|
|
|
return business;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 添加小区成员
|
|
|
+ *
|
|
|
+ * @param paramInJson 接口请求数据封装
|
|
|
+ * @return 封装好的 data数据
|
|
|
+ */
|
|
|
+ public JSONObject updateComplaint(JSONObject paramInJson) {
|
|
|
+ WorkflowDto workflowDto = new WorkflowDto();
|
|
|
+ workflowDto.setCommunityId(paramInJson.getString("communityId"));
|
|
|
+ workflowDto.setFlowType(WorkflowDto.FLOW_TYPE_COMPLAINT);
|
|
|
+ List<WorkflowDto> workflowDtos = workflowInnerServiceSMOImpl.queryWorkflows(workflowDto);
|
|
|
+
|
|
|
+ if (workflowDtos == null || workflowDtos.size() < 1) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ JSONObject business = JSONObject.parseObject("{\"datas\":{}}");
|
|
|
+ business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_UPDATE_WORKFLOW);
|
|
|
+ business.put(CommonConstant.HTTP_SEQ, 2);
|
|
|
+ business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S);
|
|
|
+ JSONObject businessCommunityMember = new JSONObject();
|
|
|
+ businessCommunityMember.put("flowId", workflowDtos.get(0).getFlowId());
|
|
|
+ businessCommunityMember.put("communityId", paramInJson.getString("communityId"));
|
|
|
+ businessCommunityMember.put("storeId", paramInJson.getString("storeId"));
|
|
|
+ JSONArray data = new JSONArray();
|
|
|
+ data.add(businessCommunityMember);
|
|
|
+ business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put(WorkflowPo.class.getSimpleName(), data);
|
|
|
+ return business;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 添加小区成员
|
|
|
*
|