| | |
| | | import com.java110.api.bmo.ApiBaseBMO; |
| | | import com.java110.api.bmo.notice.INoticeBMO; |
| | | import com.java110.core.context.DataFlowContext; |
| | | import com.java110.po.notice.NoticePo; |
| | | 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 deleteNotice(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | |
| | | |
| | | JSONObject business = JSONObject.parseObject("{\"datas\":{}}"); |
| | | business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_DELETE_NOTICE); |
| | | business.put(CommonConstant.HTTP_SEQ, DEFAULT_SEQ); |
| | | business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S); |
| | | public void deleteNotice(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | JSONObject businessNotice = new JSONObject(); |
| | | businessNotice.putAll(paramInJson); |
| | | //计算 应收金额 |
| | | business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessNotice", businessNotice); |
| | | return business; |
| | | NoticePo noticePo = BeanConvertUtil.covertBean(paramInJson, NoticePo.class); |
| | | super.delete(dataFlowContext, noticePo, BusinessTypeConstant.BUSINESS_TYPE_DELETE_NOTICE); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param dataFlowContext 数据上下文 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public JSONObject addNotice(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | public void addNotice(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | |
| | | |
| | | JSONObject business = JSONObject.parseObject("{\"datas\":{}}"); |
| | | business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_SAVE_NOTICE); |
| | | business.put(CommonConstant.HTTP_SEQ, DEFAULT_SEQ); |
| | | business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S); |
| | | JSONObject businessNotice = new JSONObject(); |
| | | businessNotice.putAll(paramInJson); |
| | | businessNotice.put("noticeId", "-1"); |
| | | //计算 应收金额 |
| | | business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessNotice", businessNotice); |
| | | return business; |
| | | NoticePo noticePo = BeanConvertUtil.covertBean(businessNotice, NoticePo.class); |
| | | super.insert(dataFlowContext, noticePo, BusinessTypeConstant.BUSINESS_TYPE_SAVE_NOTICE); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param dataFlowContext 数据上下文 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public JSONObject updateNotice(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | public void updateNotice(JSONObject paramInJson, DataFlowContext dataFlowContext) { |
| | | |
| | | |
| | | JSONObject business = JSONObject.parseObject("{\"datas\":{}}"); |
| | | business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_UPDATE_NOTICE); |
| | | business.put(CommonConstant.HTTP_SEQ, DEFAULT_SEQ); |
| | | business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S); |
| | | JSONObject businessNotice = new JSONObject(); |
| | | businessNotice.putAll(paramInJson); |
| | | //计算 应收金额 |
| | | business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessNotice", businessNotice); |
| | | return business; |
| | | NoticePo noticePo = BeanConvertUtil.covertBean(paramInJson, NoticePo.class); |
| | | super.update(dataFlowContext, noticePo, BusinessTypeConstant.BUSINESS_TYPE_UPDATE_NOTICE); |
| | | } |
| | | } |