| | |
| | | import com.java110.api.bmo.ApiBaseBMO; |
| | | import com.java110.api.bmo.auditUser.IAuditUserBMO; |
| | | import com.java110.core.context.DataFlowContext; |
| | | import com.java110.po.audit.AuditUserPo; |
| | | import com.java110.utils.constant.BusinessTypeConstant; |
| | | import com.java110.utils.constant.CommonConstant; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | * @param dataFlowContext 数据上下文 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public JSONObject deleteAuditUser(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | |
| | | |
| | | JSONObject business = JSONObject.parseObject("{\"datas\":{}}"); |
| | | business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_DELETE_AUDIT_USER); |
| | | business.put(CommonConstant.HTTP_SEQ, DEFAULT_SEQ); |
| | | business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S); |
| | | JSONObject businessAuditUser = new JSONObject(); |
| | | businessAuditUser.putAll(paramInJson); |
| | | //计算 应收金额 |
| | | business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessAuditUser", businessAuditUser); |
| | | return business; |
| | | public void deleteAuditUser(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | AuditUserPo auditUserPo = BeanConvertUtil.covertBean(paramInJson, AuditUserPo.class); |
| | | super.delete(dataFlowContext, auditUserPo, BusinessTypeConstant.BUSINESS_TYPE_DELETE_AUDIT_USER); |
| | | } |
| | | |
| | | |
| | |
| | | * @param dataFlowContext 数据上下文 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public JSONObject addAuditUser(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | public void addAuditUser(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | |
| | | paramInJson.put("auditUserId", "-1"); |
| | | |
| | | JSONObject business = JSONObject.parseObject("{\"datas\":{}}"); |
| | | business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_SAVE_AUDIT_USER); |
| | | business.put(CommonConstant.HTTP_SEQ, DEFAULT_SEQ); |
| | | business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S); |
| | | JSONObject businessAuditUser = new JSONObject(); |
| | | businessAuditUser.putAll(paramInJson); |
| | | businessAuditUser.put("auditUserId", "-1"); |
| | | //计算 应收金额 |
| | | business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessAuditUser", businessAuditUser); |
| | | return business; |
| | | AuditUserPo auditUserPo = BeanConvertUtil.covertBean(paramInJson, AuditUserPo.class); |
| | | |
| | | super.insert(dataFlowContext, auditUserPo, BusinessTypeConstant.BUSINESS_TYPE_SAVE_AUDIT_USER); |
| | | } |
| | | } |