后管新增 运营商分润组页面

This commit is contained in:
Lemon
2024-09-18 11:07:47 +08:00
parent 89af8426ab
commit 33c1cc0b70
8 changed files with 178 additions and 57 deletions

View File

@@ -3,6 +3,7 @@ package com.jsowell.pile.mapper;
import java.util.List;
import com.jsowell.pile.domain.shareprofit.ShareprofitGroup;
import com.jsowell.pile.vo.web.ShareprofitGroupVO;
import org.springframework.stereotype.Repository;
/**
@@ -60,4 +61,10 @@ public interface ShareprofitGroupMapper {
* @return 结果
*/
public int deleteShareprofitGroupByIds(Long[] ids);
/**
* 查询运营商分润组列表VO
* @param shareprofitGroup
*/
List<ShareprofitGroupVO> getShareprofitGroupVOList(ShareprofitGroup shareprofitGroup);
}

View File

@@ -3,6 +3,7 @@ package com.jsowell.pile.service;
import java.util.List;
import com.jsowell.pile.domain.shareprofit.ShareprofitGroup;
import com.jsowell.pile.vo.web.ShareprofitGroupVO;
/**
* 运营商分润组Service接口
@@ -27,6 +28,13 @@ public interface IShareprofitGroupService {
*/
public List<ShareprofitGroup> selectShareprofitGroupList(ShareprofitGroup shareprofitGroup);
/**
* 查询运营商分润组列表VOList
* @param shareprofitGroup
* @return
*/
List<ShareprofitGroupVO> getShareprofitGroupVOList(ShareprofitGroup shareprofitGroup);
/**
* 新增运营商分润组
*

View File

@@ -3,6 +3,7 @@ package com.jsowell.pile.service.impl;
import java.util.List;
import com.jsowell.common.util.DateUtils;
import com.jsowell.pile.vo.web.ShareprofitGroupVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jsowell.pile.mapper.ShareprofitGroupMapper;
@@ -42,6 +43,11 @@ public class ShareprofitGroupServiceImpl implements IShareprofitGroupService {
return shareprofitGroupMapper.selectShareprofitGroupList(shareprofitGroup);
}
@Override
public List<ShareprofitGroupVO> getShareprofitGroupVOList(ShareprofitGroup shareprofitGroup){
return shareprofitGroupMapper.getShareprofitGroupVOList(shareprofitGroup);
}
/**
* 新增运营商分润组
*

View File

@@ -0,0 +1,37 @@
package com.jsowell.pile.vo.web;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 分润组VO
*
* @author Lemon
* @Date 2024/9/14 13:41:09
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ShareprofitGroupVO {
private String merchantId;
private String merchantName;
private String stationId;
private String stationName;
private String memberPhoneNumber;
private String electricityFeeScale;
private String serviceFeeScale;
private String undertakeHandlingCharge;
}

View File

@@ -103,4 +103,27 @@
#{id}
</foreach>
</delete>
<select id="getShareprofitGroupVOList" resultType="com.jsowell.pile.vo.web.ShareprofitGroupVO">
SELECT
t1.merchant_id AS merchantId,
t2.merchant_name AS merchantName,
t1.station_id AS stationId,
t3.station_name AS stationName,
t1.member_phone_number AS memberPhoneNumber,
t1.electricity_fee_scale AS electricityFeeScale,
t1.service_fee_scale AS serviceFeeScale,
t1.undertake_handling_charge AS undertakeHandlingCharge
FROM
shareprofit_group t1
JOIN pile_merchant_info t2 ON t1.merchant_id = t2.id
AND t1.del_flag = '0'
JOIN pile_station_info t3 ON t1.station_id = t3.id
AND t1.del_flag = '0'
<where>
<if test="merchantId != null"> and t1.merchant_id = #{merchantId}</if>
<if test="stationId != null"> and t1.station_id = #{stationId}</if>
<if test="memberPhoneNumber != null"> and t1.member_phone_number = #{memberPhoneNumber}</if>
</where>
</select>
</mapper>