提交 c8a2cfd7 作者: zhenjie

商户-客户订单数据隔离

上级 2871b233
...@@ -35,6 +35,9 @@ public class UavOrderQO implements Serializable { ...@@ -35,6 +35,9 @@ public class UavOrderQO implements Serializable {
@ApiModelProperty(value = "商家id", hidden = true) @ApiModelProperty(value = "商家id", hidden = true)
private Integer thirdBackUserAccountId; private Integer thirdBackUserAccountId;
@ApiModelProperty(value = "订单类型", hidden = true)
private Integer orderType;
@ApiModelProperty(value = "订单是否展示给用户", hidden = true) @ApiModelProperty(value = "订单是否展示给用户", hidden = true)
private Integer showUserPort; private Integer showUserPort;
......
...@@ -316,6 +316,7 @@ public class UavOrderServiceImpl implements UavOrderService { ...@@ -316,6 +316,7 @@ public class UavOrderServiceImpl implements UavOrderService {
public ResultBody list(UavOrderQO uavOrderQO, BaseAccountDTO currentAccount) { public ResultBody list(UavOrderQO uavOrderQO, BaseAccountDTO currentAccount) {
if (!currentAccount.getRoleInfo().getSuperAdmin().equals(1)){ if (!currentAccount.getRoleInfo().getSuperAdmin().equals(1)){
uavOrderQO.setThirdBackUserAccountId(currentAccount.getUserAccountId()); uavOrderQO.setThirdBackUserAccountId(currentAccount.getUserAccountId());
uavOrderQO.setOrderType(UavOrderType.SIGN.getCode());
} }
int count = uavOrderDao.countList(uavOrderQO); int count = uavOrderDao.countList(uavOrderQO);
if (count == 0) { if (count == 0) {
......
...@@ -205,6 +205,9 @@ ...@@ -205,6 +205,9 @@
<if test="thirdBackUserAccountId != null"> <if test="thirdBackUserAccountId != null">
and third_back_user_account_id = #{thirdBackUserAccountId} and third_back_user_account_id = #{thirdBackUserAccountId}
</if> </if>
<if test="orderType != null">
and uo.order_type = #{orderType}
</if>
<if test="startTime != null"> <if test="startTime != null">
and create_time >= #{startTime} and create_time >= #{startTime}
</if> </if>
...@@ -236,6 +239,9 @@ ...@@ -236,6 +239,9 @@
<if test="thirdBackUserAccountId != null"> <if test="thirdBackUserAccountId != null">
and uo.third_back_user_account_id = #{thirdBackUserAccountId} and uo.third_back_user_account_id = #{thirdBackUserAccountId}
</if> </if>
<if test="orderType != null">
and uo.order_type = #{orderType}
</if>
<if test="startTime != null"> <if test="startTime != null">
and uo.create_time >= #{startTime} and uo.create_time >= #{startTime}
</if> </if>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论