Commit 97eb18bf by 叶立庆

Merge branch 'v5.8.2' into 'master'

上线合并

See merge request !3
2 parents 4aecbc43 9b33ff4e
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<name>rpc-scrm-shopmall-api</name> <name>rpc-scrm-shopmall-api</name>
<properties> <properties>
<deploy.scanPackage>cn.com.glsx.shopmall.remote</deploy.scanPackage> <deploy.scanPackage>cn.com.glsx.shopmall.remote</deploy.scanPackage>
<shopmall.api.version>5.6.4-SNAPSHOT</shopmall.api.version> <shopmall.api.version>5.8.2-SNAPSHOT</shopmall.api.version>
<stoassistant.api.version>5.6.4-SNAPSHOT</stoassistant.api.version> <stoassistant.api.version>5.6.4-SNAPSHOT</stoassistant.api.version>
</properties> </properties>
<dependencies> <dependencies>
......
...@@ -105,6 +105,11 @@ public class ShopmallStaffMotivationDTO extends ShopmallStaffMotivation implemen ...@@ -105,6 +105,11 @@ public class ShopmallStaffMotivationDTO extends ShopmallStaffMotivation implemen
@Transient @Transient
private String deliveryEmployeeName; private String deliveryEmployeeName;
/**
* 订单编号集合
*/
private List<String> orderCodeList;
public ShopmallStaffMotivationDTO(Integer merchantId, String staffUuid, String orderCode) { public ShopmallStaffMotivationDTO(Integer merchantId, String staffUuid, String orderCode) {
super(); super();
this.setMerchantId(merchantId); this.setMerchantId(merchantId);
......
...@@ -4,11 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -4,11 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.*; import lombok.*;
import javax.persistence.Column; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
...@@ -331,4 +327,12 @@ public class ShopmallStaffMotivation implements Serializable { ...@@ -331,4 +327,12 @@ public class ShopmallStaffMotivation implements Serializable {
@ApiModelProperty(notes = "退款子项") @ApiModelProperty(notes = "退款子项")
private String refundSubOrderCode; private String refundSubOrderCode;
/**
* sunshineType 阳光积分类型
* 1-阳光激励1 2-阳光激励2
*/
@Column(name = "sunshine_type")
@ApiModelProperty(notes = "阳光积分类型 1-阳光激励1 2-阳光激励2")
private Integer sunshineType;
} }
\ No newline at end of file \ No newline at end of file
...@@ -61,4 +61,8 @@ public interface StaffMotivationRemote { ...@@ -61,4 +61,8 @@ public interface StaffMotivationRemote {
@ApiMethod("变更手机号(积分迁移)") @ApiMethod("变更手机号(积分迁移)")
RpcResponse<Boolean> changeStaffScore(ShopmallStaffScoreChangeDTO dto); RpcResponse<Boolean> changeStaffScore(ShopmallStaffScoreChangeDTO dto);
@ApiMethod("订单编号阳光积分详情")
RpcResponse<List<ShopmallStaffMotivationDTO>> getOrderCodeMotivationList(ShopmallStaffMotivationDTO requestDTO);
} }
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
</parent> </parent>
<groupId>cn.com.glsx.scrm</groupId> <groupId>cn.com.glsx.scrm</groupId>
<artifactId>rpc-scrm-shopmall</artifactId> <artifactId>rpc-scrm-shopmall</artifactId>
<version>4.56.0-SNAPSHOT</version> <version>5.8.2-SNAPSHOT</version>
<name>rpc-scrm-shopmall</name> <name>rpc-scrm-shopmall</name>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>
<stoassistant.api.version>5.6.4-SNAPSHOT</stoassistant.api.version> <stoassistant.api.version>5.6.4-SNAPSHOT</stoassistant.api.version>
<shopmall.api.version>5.6.4-SNAPSHOT</shopmall.api.version> <shopmall.api.version>5.8.2-SNAPSHOT</shopmall.api.version>
<smartcarlife.api.version>5.6.4-SNAPSHOT</smartcarlife.api.version> <smartcarlife.api.version>5.6.4-SNAPSHOT</smartcarlife.api.version>
<platform-payment.api.version>5.6.4-SNAPSHOT</platform-payment.api.version> <platform-payment.api.version>5.6.4-SNAPSHOT</platform-payment.api.version>
</properties> </properties>
......
...@@ -23,4 +23,6 @@ public interface ShopmallStaffMotivationMapper extends OreMapper<ShopmallStaffMo ...@@ -23,4 +23,6 @@ public interface ShopmallStaffMotivationMapper extends OreMapper<ShopmallStaffMo
void deleteById(@Param("id")Integer id); void deleteById(@Param("id")Integer id);
List<ShopmallStaffMotivationDTO> findByOrderCodeAndStatus(@Param("orderCode") String orderCode, @Param("status") Integer status, @Param("generateType") Integer generateType); List<ShopmallStaffMotivationDTO> findByOrderCodeAndStatus(@Param("orderCode") String orderCode, @Param("status") Integer status, @Param("generateType") Integer generateType);
List<ShopmallStaffMotivationDTO> getOrderCodeMotivationList(@Param("orderCodeList") List<String> orderCodeList);
} }
\ No newline at end of file \ No newline at end of file
...@@ -133,4 +133,14 @@ public class StaffMotivationRemoteImpl implements StaffMotivationRemote { ...@@ -133,4 +133,14 @@ public class StaffMotivationRemoteImpl implements StaffMotivationRemote {
return RpcResponse.error(e); return RpcResponse.error(e);
} }
} }
@Override
public RpcResponse<List<ShopmallStaffMotivationDTO>> getOrderCodeMotivationList(ShopmallStaffMotivationDTO requestDTO) {
try {
return RpcResponse.success(staffMotivationService.getOrderCodeMotivationList(requestDTO));
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
} }
...@@ -799,4 +799,12 @@ public class StaffMotivationService { ...@@ -799,4 +799,12 @@ public class StaffMotivationService {
// 审批记录是否需要迁移(因为订单绑定的受益人也没变,审批记录作为快照数据理应不变) // 审批记录是否需要迁移(因为订单绑定的受益人也没变,审批记录作为快照数据理应不变)
return true; return true;
} }
public List<ShopmallStaffMotivationDTO> getOrderCodeMotivationList(ShopmallStaffMotivationDTO requestDTO) {
List<String> orderCodeList = requestDTO.getOrderCodeList();
if (CollectionUtils.isEmpty(orderCodeList)){
return new ArrayList<>();
}
return staffMotivationMapper.getOrderCodeMotivationList(orderCodeList);
}
} }
...@@ -253,4 +253,20 @@ ...@@ -253,4 +253,20 @@
<update id="deleteById"> <update id="deleteById">
update shopmall_staff_motivation set deleted_flag = 'D', updated_date = now() where id = #{id} update shopmall_staff_motivation set deleted_flag = 'D', updated_date = now() where id = #{id}
</update> </update>
<select id="getOrderCodeMotivationList" resultType="cn.com.glsx.scrm.shopmall.dto.integral.motivation.ShopmallStaffMotivationDTO">
select order_code as orderCode, status as status, refund_type as refundType, sunshine_type as sunshineType
from shopmall_staff_motivation
where deleted_flag = 'N'
<if test="orderCodeList != null and orderCodeList.size() > 0">
and order_code in
<foreach collection="orderCodeList" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
and generate_type = 0
and (status = 1 or (status = 2 and refund_type = 1))
</select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!