parent
8dc5084dd8
commit
aed5235578
@ -0,0 +1,26 @@ |
|||||||
|
package com.hai.service; |
||||||
|
|
||||||
|
import com.hai.entity.HighDiscountInventoryRecord; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* @serviceName HighDiscountInventoryRecordService.java |
||||||
|
* @author Sum1Dream |
||||||
|
* @version 1.0.0 |
||||||
|
* @Description // 优惠券包库存记录接口
|
||||||
|
* @createTime 4:35 下午 2021/12/8 |
||||||
|
**/ |
||||||
|
public interface HighDiscountInventoryRecordService { |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @name getDiscountInventoryRecordServList.java |
||||||
|
* @Description //查询优惠券包库存记录列表
|
||||||
|
* @Date 4:36 下午 2021/12/8 |
||||||
|
* @Param [java.util.Map<java.lang.String,java.lang.Object>] |
||||||
|
* @return java.util.List<com.hai.entity.HighDiscountInventoryRecord> |
||||||
|
*/ |
||||||
|
List<HighDiscountInventoryRecord> getDiscountInventoryRecordServList(Map<String , Object> map); |
||||||
|
} |
@ -0,0 +1,49 @@ |
|||||||
|
package com.hai.service; |
||||||
|
|
||||||
|
import com.hai.entity.HighDiscountPackageActual; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* @serviceName HighDiscountPackageActualService.java |
||||||
|
* @author Sum1Dream |
||||||
|
* @version 1.0.0 |
||||||
|
* @Description // 优惠券包实际库存接口
|
||||||
|
* @createTime 3:02 下午 2021/12/8 |
||||||
|
**/ |
||||||
|
public interface HighDiscountPackageActualService { |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @name insertHighDiscountPackageActual.java |
||||||
|
* @Description // 新增优惠券包实际库存
|
||||||
|
* @Date 3:03 下午 2021/12/8 |
||||||
|
* @Param [com.hai.entity.HighDiscountPackageActual] |
||||||
|
* @return void |
||||||
|
*/ |
||||||
|
void insertHighDiscountPackageActual(HighDiscountPackageActual highDiscountPackageActual); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @name updateHighDiscountPackageActual.java |
||||||
|
* @Description // 修改优惠券包实际库存
|
||||||
|
* @Date 3:04 下午 2021/12/8 |
||||||
|
* @Param [com.hai.entity.HighDiscountPackageActual] |
||||||
|
* @return void |
||||||
|
*/ |
||||||
|
void updateHighDiscountPackageActual(HighDiscountPackageActual highDiscountPackageActual); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @name getHighDiscountPackageActualList.java |
||||||
|
* @Description // 查询优惠券包列表;
|
||||||
|
* @Date 3:05 下午 2021/12/8 |
||||||
|
* @Param [java.util.Map<java.lang.String,java.lang.Object>] |
||||||
|
* @return java.util.List<com.hai.entity.HighDiscountPackageActual> |
||||||
|
*/ |
||||||
|
List<HighDiscountPackageActual> getHighDiscountPackageActualList(Integer discountPackageId); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,47 @@ |
|||||||
|
package com.hai.service; |
||||||
|
|
||||||
|
import com.hai.entity.HighDiscountPackageDiscountActual; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @serviceName HighDiscountPackageDiscountActualService.java |
||||||
|
* @author Sum1Dream |
||||||
|
* @version 1.0.0 |
||||||
|
* @Description // 优惠券包实际库存优惠券实际
|
||||||
|
* @createTime 3:13 下午 2021/12/8 |
||||||
|
**/ |
||||||
|
public interface HighDiscountPackageDiscountActualService { |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @name insertHighDiscountPackageDiscountActual.java |
||||||
|
* @Description // 新增优惠券包实际库存
|
||||||
|
* @Date 3:03 下午 2021/12/8 |
||||||
|
* @Param [com.hai.entity.HighDiscountPackageDiscountActual] |
||||||
|
* @return void |
||||||
|
*/ |
||||||
|
void insertHighDiscountPackageDiscountActual(HighDiscountPackageDiscountActual highDiscountPackageDiscountActual); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @name updateHighDiscountPackageDiscountActual.java |
||||||
|
* @Description // 修改优惠券包实际库存
|
||||||
|
* @Date 3:04 下午 2021/12/8 |
||||||
|
* @Param [com.hai.entity.HighDiscountPackageDiscountActual] |
||||||
|
* @return void |
||||||
|
*/ |
||||||
|
void updateHighDiscountPackageDiscountActual(HighDiscountPackageDiscountActual highDiscountPackageDiscountActual); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @name getHighDiscountPackageDiscountActualList.java |
||||||
|
* @Description // 查询优惠券包列表;
|
||||||
|
* @Date 3:05 下午 2021/12/8 |
||||||
|
* @Param [java.util.Map<java.lang.String,java.lang.Object>] |
||||||
|
* @return java.util.List<com.hai.entity.HighDiscountPackageDiscountActual> |
||||||
|
*/ |
||||||
|
List<HighDiscountPackageDiscountActual> getHighDiscountPackageDiscountActualList(Integer discountPackageActualId); |
||||||
|
} |
@ -0,0 +1,34 @@ |
|||||||
|
package com.hai.service.impl; |
||||||
|
|
||||||
|
import com.hai.dao.HighDiscountInventoryRecordMapper; |
||||||
|
import com.hai.entity.HighDiscountInventoryRecord; |
||||||
|
import com.hai.entity.HighDiscountInventoryRecordExample; |
||||||
|
import com.hai.service.HighDiscountInventoryRecordService; |
||||||
|
import org.apache.commons.collections4.MapUtils; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import javax.annotation.Resource; |
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
@Service("highDiscountInventoryRecordService") |
||||||
|
public class HighDiscountInventoryRecordServiceImpl implements HighDiscountInventoryRecordService { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private HighDiscountInventoryRecordMapper discountInventoryRecordMapper; |
||||||
|
|
||||||
|
@Override |
||||||
|
public List<HighDiscountInventoryRecord> getDiscountInventoryRecordServList(Map<String, Object> map) { |
||||||
|
|
||||||
|
HighDiscountInventoryRecordExample example = new HighDiscountInventoryRecordExample(); |
||||||
|
HighDiscountInventoryRecordExample.Criteria criteria = example.createCriteria(); |
||||||
|
|
||||||
|
if (MapUtils.getInteger(map , "companyId") != null) { |
||||||
|
criteria.andCompanyIdEqualTo(MapUtils.getInteger(map , "companyId")); |
||||||
|
} |
||||||
|
|
||||||
|
example.setOrderByClause("created_time"); |
||||||
|
|
||||||
|
return discountInventoryRecordMapper.selectByExample(example); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,48 @@ |
|||||||
|
package com.hai.service.impl; |
||||||
|
|
||||||
|
import com.hai.dao.HighDiscountPackageActualMapper; |
||||||
|
import com.hai.dao.HighDiscountPackageDiscountActualMapper; |
||||||
|
import com.hai.entity.HighDiscountPackageActual; |
||||||
|
import com.hai.entity.HighDiscountPackageActualExample; |
||||||
|
import com.hai.service.HighDiscountPackageActualService; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import javax.annotation.Resource; |
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* @serviceName HighDiscountPackageActualServiceImpl.java |
||||||
|
* @author Sum1Dream |
||||||
|
* @version 1.0.0 |
||||||
|
* @Description // 优惠券包实际库存
|
||||||
|
* @createTime 3:06 下午 2021/12/8 |
||||||
|
**/ |
||||||
|
@Service("highDiscountPackageActualService") |
||||||
|
public class HighDiscountPackageActualServiceImpl implements HighDiscountPackageActualService { |
||||||
|
|
||||||
|
|
||||||
|
@Resource |
||||||
|
private HighDiscountPackageActualMapper discountPackageActualMapper; |
||||||
|
|
||||||
|
@Override |
||||||
|
public void insertHighDiscountPackageActual(HighDiscountPackageActual highDiscountPackageActual) { |
||||||
|
discountPackageActualMapper.insert(highDiscountPackageActual); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void updateHighDiscountPackageActual(HighDiscountPackageActual highDiscountPackageActual) { |
||||||
|
discountPackageActualMapper.updateByPrimaryKey(highDiscountPackageActual); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public List<HighDiscountPackageActual> getHighDiscountPackageActualList(Integer discountPackageId) { |
||||||
|
|
||||||
|
HighDiscountPackageActualExample example = new HighDiscountPackageActualExample(); |
||||||
|
HighDiscountPackageActualExample.Criteria criteria = example.createCriteria(); |
||||||
|
|
||||||
|
criteria.andDiscountPackageIdEqualTo(discountPackageId).andStatusEqualTo(1); |
||||||
|
|
||||||
|
return discountPackageActualMapper.selectByExample(example); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,45 @@ |
|||||||
|
package com.hai.service.impl; |
||||||
|
|
||||||
|
import com.hai.dao.HighDiscountPackageDiscountActualMapper; |
||||||
|
import com.hai.entity.HighDiscountPackageDiscountActual; |
||||||
|
import com.hai.entity.HighDiscountPackageDiscountActualExample; |
||||||
|
import com.hai.service.HighDiscountPackageDiscountActualService; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import javax.annotation.Resource; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @serviceName HighDiscountPackageDiscountActualServiceImpl.java |
||||||
|
* @author Sum1Dream |
||||||
|
* @version 1.0.0 |
||||||
|
* @Description // 优惠券包实际库存优惠券实际接口
|
||||||
|
* @createTime 3:15 下午 2021/12/8 |
||||||
|
**/ |
||||||
|
@Service("highDiscountPackageDiscountActualService") |
||||||
|
public class HighDiscountPackageDiscountActualServiceImpl implements HighDiscountPackageDiscountActualService { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private HighDiscountPackageDiscountActualMapper discountPackageDiscountActualMapper; |
||||||
|
|
||||||
|
@Override |
||||||
|
public void insertHighDiscountPackageDiscountActual(HighDiscountPackageDiscountActual highDiscountPackageDiscountActual) { |
||||||
|
discountPackageDiscountActualMapper.insert(highDiscountPackageDiscountActual); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void updateHighDiscountPackageDiscountActual(HighDiscountPackageDiscountActual highDiscountPackageDiscountActual) { |
||||||
|
discountPackageDiscountActualMapper.updateByPrimaryKey(highDiscountPackageDiscountActual); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public List<HighDiscountPackageDiscountActual> getHighDiscountPackageDiscountActualList(Integer discountPackageActualId) { |
||||||
|
|
||||||
|
HighDiscountPackageDiscountActualExample example = new HighDiscountPackageDiscountActualExample(); |
||||||
|
HighDiscountPackageDiscountActualExample.Criteria criteria = example.createCriteria(); |
||||||
|
|
||||||
|
criteria.andDiscountPackageActualIdEqualTo(discountPackageActualId).andStatusEqualTo(1); |
||||||
|
|
||||||
|
return discountPackageDiscountActualMapper.selectByExample(example); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue