修改了协议关联的数据字典错误的问题
This commit is contained in:
parent
f7de34c4da
commit
8ffeaeaec6
@ -179,7 +179,7 @@ public interface IPackageOrderService {
|
||||
*/
|
||||
SuccessResultList<List<PackageOrderDTO>> listPage(ListPage page);
|
||||
|
||||
List<PackageOrderDTO> list(String packageInfoId, String userId);
|
||||
List<PackageOrderDTO> listByUserAndInfo(String packageInfoId, String userId);
|
||||
|
||||
/**
|
||||
* 套餐包-订单统计
|
||||
|
@ -176,9 +176,10 @@ public class PackageOrderServiceImpl extends DefaultBaseService implements IPack
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PackageOrderDTO> list(String packageInfoId, String userId) {
|
||||
public List<PackageOrderDTO> listByUserAndInfo(String packageInfoId, String userId) {
|
||||
Map<String, Object> params = super.getHashMap(2);
|
||||
params.put("packageInfoId", packageInfoId);
|
||||
params.put("notCheckStatus", "不校验删除状态");
|
||||
params.put("userId", userId);
|
||||
return packageOrderDao.list(params);
|
||||
}
|
||||
@ -200,7 +201,7 @@ public class PackageOrderServiceImpl extends DefaultBaseService implements IPack
|
||||
PackageInfoAppDTO infoAppDTO = orderDTO.getPackageInfoAppDTO();
|
||||
// 仅限购买1次的
|
||||
if(infoAppDTO.getPackageMode().equals("single")) {
|
||||
List<PackageOrderDTO> list = list(orderDTO.getPackageInfoId(), orderDTO.getCreator());
|
||||
List<PackageOrderDTO> list = listByUserAndInfo(orderDTO.getPackageInfoId(), orderDTO.getCreator());
|
||||
Boolean exists = false;
|
||||
for(PackageOrderDTO dto : list) {
|
||||
if(dto.getPackagePayStatus().equals("1")) {
|
||||
@ -232,7 +233,7 @@ public class PackageOrderServiceImpl extends DefaultBaseService implements IPack
|
||||
PackageInfoAppDTO infoAppDTO = orderDTO.getPackageInfoAppDTO();
|
||||
// 仅限购买1次的
|
||||
if(infoAppDTO.getPackageMode().equals("single")) {
|
||||
List<PackageOrderDTO> list = list(orderDTO.getPackageInfoId(), orderDTO.getCreator());
|
||||
List<PackageOrderDTO> list = listByUserAndInfo(orderDTO.getPackageInfoId(), orderDTO.getCreator());
|
||||
Boolean exists = false;
|
||||
for(PackageOrderDTO dto : list) {
|
||||
if(dto.getPackagePayStatus().equals("1")) {
|
||||
|
@ -301,7 +301,10 @@
|
||||
ON
|
||||
t1.package_info_id = t4.package_info_id
|
||||
WHERE
|
||||
t1.is_delete = 0
|
||||
1 = 1
|
||||
<if test="notCheckStatus == null">
|
||||
AND t1.is_delete = 0
|
||||
</if>
|
||||
<if test="keYong != null and keYong != ''">
|
||||
AND t1.package_total_surplus_count > 0
|
||||
</if>
|
||||
|
Loading…
Reference in New Issue
Block a user