public List<MchNotify> getMchNotifyList(int offset, int limit, MchNotify mchNotify) { MchNotifyExample example = new MchNotifyExample(); example.setOrderByClause("createTime DESC"); example.setOffset(offset); example.setLimit(limit); MchNotifyExample.Criteria criteria = example.createCriteria(); setCriteria(criteria, mchNotify); return mchNotifyMapper.selectByExample(example); }
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
public Integer count(MchNotify mchNotify) { MchNotifyExample example = new MchNotifyExample(); MchNotifyExample.Criteria criteria = example.createCriteria(); setCriteria(criteria, mchNotify); return mchNotifyMapper.countByExample(example); }
public int baseUpdateMchNotifyFail(String orderId, String result, byte notifyCount) { MchNotify mchNotify = new MchNotify(); mchNotify.setStatus(PayConstant.MCH_NOTIFY_STATUS_FAIL); mchNotify.setResult(result); mchNotify.setNotifyCount(notifyCount); mchNotify.setLastNotifyTime(new Date()); MchNotifyExample example = new MchNotifyExample(); MchNotifyExample.Criteria criteria = example.createCriteria(); criteria.andOrderIdEqualTo(orderId); List values = new LinkedList<>(); values.add(PayConstant.MCH_NOTIFY_STATUS_NOTIFYING); values.add(PayConstant.MCH_NOTIFY_STATUS_FAIL); return mchNotifyMapper.updateByExampleSelective(mchNotify, example); }
public int baseUpdateMchNotifySuccess(String orderId, String result, byte notifyCount) { MchNotify mchNotify = new MchNotify(); mchNotify.setStatus(PayConstant.MCH_NOTIFY_STATUS_SUCCESS); mchNotify.setResult(result); mchNotify.setNotifyCount(notifyCount); mchNotify.setLastNotifyTime(new Date()); MchNotifyExample example = new MchNotifyExample(); MchNotifyExample.Criteria criteria = example.createCriteria(); criteria.andOrderIdEqualTo(orderId); List values = new LinkedList<>(); values.add(PayConstant.MCH_NOTIFY_STATUS_NOTIFYING); values.add(PayConstant.MCH_NOTIFY_STATUS_FAIL); criteria.andStatusIn(values); return mchNotifyMapper.updateByExampleSelective(mchNotify, example); }
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }