Commit c7c96d0b authored by jiaorz's avatar jiaorz

修改支付宝支付方式

parent 4adc7d46
...@@ -192,7 +192,7 @@ public class BaseOrderController extends CommonBaseController implements UserRes ...@@ -192,7 +192,7 @@ public class BaseOrderController extends CommonBaseController implements UserRes
List<Integer> userIds = list.stream().map(OrderListVo::getUserId).distinct().collect(Collectors.toList()); List<Integer> userIds = list.stream().map(OrderListVo::getUserId).distinct().collect(Collectors.toList());
if(userIds != null && userIds.size() >0) { if(userIds != null && userIds.size() >0) {
ObjectRestResponse<List<AppUserVo>> objectRestResponse = userFeign.getByUserIds(userIds); ObjectRestResponse<List<AppUserVo>> objectRestResponse = userFeign.getByUserIds(userIds);
log.info("获取用户信息:objectRestResponse = {}", objectRestResponse.getMessage()); log.info("获取用户信息:objectRestResponse = {}", objectRestResponse.getData());
Map<String, AppUserVo> appUserVoMap = objectRestResponse.getData() == null? new HashMap<String, AppUserVo>() Map<String, AppUserVo> appUserVoMap = objectRestResponse.getData() == null? new HashMap<String, AppUserVo>()
: objectRestResponse.getData().parallelStream().collect(Collectors.toMap(v -> v.getUserid().toString(), v -> v)); : objectRestResponse.getData().parallelStream().collect(Collectors.toMap(v -> v.getUserid().toString(), v -> v));
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
and (r.start_time between #{startTime} and #{endTime} and (r.start_time between #{startTime} and #{endTime}
or t.start_time between #{startTime} and #{endTime}) or t.start_time between #{startTime} and #{endTime})
</if> </if>
<if test="companyIds != null"> <if test="companyIds != null and companyIds.size > 0">
and (r.start_company_id in and (r.start_company_id in
<foreach collection="companyIds" item="id" open="(" separator="," close=")"> <foreach collection="companyIds" item="id" open="(" separator="," close=")">
#{id} #{id}
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
</foreach> </foreach>
) )
</if> </if>
<if test="zoneIds != null"> <if test="zoneIds != null and zoneIds.size > 0">
and (r.start_zone_id in and (r.start_zone_id in
<foreach collection="zoneIds" item="id" open="(" separator="," close=")"> <foreach collection="zoneIds" item="id" open="(" separator="," close=")">
#{id} #{id}
......
...@@ -95,7 +95,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany ...@@ -95,7 +95,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
map.put("zoneId", zoneId); map.put("zoneId", zoneId);
List<Integer> branchCompanies = Lists.newArrayList(); List<Integer> branchCompanies = Lists.newArrayList();
if(DATA_ALL_FALSE.equals(userDTO.getDataAll())) { //不能获取全部数据 if(DATA_ALL_FALSE.equals(userDTO.getDataAll())) { //不能获取全部数据
branchCompanies = vehicleBiz.dataCompany(userDTO.getDataCompany(), userDTO.getDataZone()); branchCompanies = vehicleBiz.dataCompany(userDTO.getDataZone(), userDTO.getDataCompany());
} }
map.put("ids", branchCompanies); map.put("ids", branchCompanies);
return mapper.selectByZoneId(map); return mapper.selectByZoneId(map);
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<select id="selectByZoneId" parameterType="java.util.Map" resultType="com.xxfc.platform.vehicle.entity.BranchCompany"> <select id="selectByZoneId" parameterType="java.util.Map" resultType="com.xxfc.platform.vehicle.entity.BranchCompany">
select * from branch_company select * from branch_company
where zone_id = #{zoneId} where zone_id = #{zoneId}
<if test="ids != null"> <if test="ids != null and ids > 0">
and id in and id in
<foreach collection="ids" item="id" open="(" separator="," close=")"> <foreach collection="ids" item="id" open="(" separator="," close=")">
#{id} #{id}
......
...@@ -395,19 +395,13 @@ ...@@ -395,19 +395,13 @@
<if test="bookType != null"> <if test="bookType != null">
and v1.book_type = #{bookType} and v1.book_type = #{bookType}
</if> </if>
<if test="companyIds != null"> <if test="companyIds != null and companyIds > 0">
and v1.lift_company in and v1.lift_company in
<foreach collection="companyIds" item="id" open="(" separator="," close=")"> <foreach collection="companyIds" item="id" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
</if> </if>
<if test="zoneIds != null">
and bc1.zone_id in
<foreach collection="zoneIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</if>
and v1.status between 1 and 2 and v1.status between 1 and 2
</where> </where>
...@@ -433,7 +427,7 @@ ...@@ -433,7 +427,7 @@
<if test="bookType != null"> <if test="bookType != null">
and v1.book_type = #{bookType} and v1.book_type = #{bookType}
</if> </if>
<if test="companyIds != null"> <if test="companyIds != null and companyIds > 0">
and (v1.lift_company in and (v1.lift_company in
<foreach collection="companyIds" item="id" open="(" separator="," close=")"> <foreach collection="companyIds" item="id" open="(" separator="," close=")">
#{id} #{id}
...@@ -443,12 +437,6 @@ ...@@ -443,12 +437,6 @@
#{id} #{id}
</foreach>) </foreach>)
</if> </if>
<if test="zoneIds != null">
and bc1.zone_id in
<foreach collection="zoneIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</if>
<if test="status != null"> <if test="status != null">
and v1.status = #{status} and v1.status = #{status}
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment