dev-discount
胡锐 3 years ago
commit 2fcdf91dd3
  1. 8
      hai-bweb/src/main/java/com/bweb/controller/HighOrderController.java
  2. 3
      hai-service/src/main/java/com/hai/dao/OutRechargeOrderMapperExt.java
  3. 2
      hai-service/src/main/java/com/hai/service/impl/BsCompanyServiceImpl.java

@ -182,7 +182,13 @@ public class HighOrderController {
map.put("companyId", companyId); map.put("companyId", companyId);
} else if (userInfoModel.getSecUser().getObjectType() == 1) { } else if (userInfoModel.getSecUser().getObjectType() == 1) {
map.put("companyId", userInfoModel.getBsCompany().getId());
if (userInfoModel.getBsCompany().getId() == 3) {
map.put("companyId", 23);
} else {
map.put("companyId", userInfoModel.getBsCompany().getId());
}
map.put("merchantId", merchantId); map.put("merchantId", merchantId);
} else if (userInfoModel.getSecUser().getObjectType() == 2) { } else if (userInfoModel.getSecUser().getObjectType() == 2) {

@ -96,8 +96,9 @@ public interface OutRechargeOrderMapperExt {
"<if test='map.createTimeE != null'> <![CDATA[ and a.create_timed <= #{map.createTimeE} ]]> </if>", "<if test='map.createTimeE != null'> <![CDATA[ and a.create_timed <= #{map.createTimeE} ]]> </if>",
"<if test='map.payTimeS != null'> <![CDATA[ and a.pay_time >= #{map.payTimeS} ]]> </if>", "<if test='map.payTimeS != null'> <![CDATA[ and a.pay_time >= #{map.payTimeS} ]]> </if>",
"<if test='map.payTimeE != null'> <![CDATA[ and a.pay_time <= #{map.payTimeE} ]]> </if>", "<if test='map.payTimeE != null'> <![CDATA[ and a.pay_time <= #{map.payTimeE} ]]> </if>",
" group by pay_time " +
" ORDER BY" + " ORDER BY" +
" a.create_timed DESC" + " a.create_timed DESC " +
"</script>" "</script>"
}) })
List<OutRechargeOrderModel> selectOrderCount(@Param("map") Map<String,Object> map); List<OutRechargeOrderModel> selectOrderCount(@Param("map") Map<String,Object> map);

@ -75,7 +75,7 @@ public class BsCompanyServiceImpl implements BsCompanyService {
bsOrganizationMapper.updateByPrimaryKey(secOrganization); bsOrganizationMapper.updateByPrimaryKey(secOrganization);
// 保存用户角色 // 保存用户角色
SecUserRoleRel userRole = new SecUserRoleRel(); SecUserRoleRel userRole = new SecUserRoleRel();
userRole.setUserId(secUser.getId()); userRole.setUserId(secUser.getId());
userRole.setRoleId(5L); userRole.setRoleId(5L);
secUserRoleRelMapper.insert(userRole); secUserRoleRelMapper.insert(userRole);
} }

Loading…
Cancel
Save