| | |
| | | import com.matrix.core.pojo.PaginationVO; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.constance.Dictionary; |
| | | import com.matrix.system.hive.action.util.QueryUtil; |
| | | import com.matrix.system.hive.bean.SysShopInfo; |
| | |
| | | QueryUtil.setQueryLimitCom(shopInfo); |
| | | return new AjaxResult(AjaxResult.STATUS_SUCCESS, currentService.findByModel(shopInfo), null); |
| | | } |
| | | |
| | | @RequestMapping(value = "/findAllWithPermi" ) |
| | | public @ResponseBody AjaxResult findAllWithPermi(SysShopInfo shopInfo) { |
| | | QueryUtil.setQueryLimitCom(shopInfo); |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | shopInfo.setId(sysUsers.getShopId()); |
| | | } |
| | | return new AjaxResult(AjaxResult.STATUS_SUCCESS, currentService.findByModel(shopInfo), null); |
| | | } |
| | | /** |
| | | * 查询非总店 商城店铺的门店 |
| | | * TODO 微商城不应该调用这里的接口 |
| | |
| | | |
| | | private String day; |
| | | |
| | | private String vipQueryKey; |
| | | |
| | | |
| | | /** |
| | | * 订单编号 |
| | |
| | | @Extend |
| | | private Double achieveMoney; |
| | | |
| | | public String getVipQueryKey() { |
| | | return vipQueryKey; |
| | | } |
| | | |
| | | public void setVipQueryKey(String vipQueryKey) { |
| | | this.vipQueryKey = vipQueryKey; |
| | | } |
| | | |
| | | public Long getCompanyId() { |
| | | return companyId; |
| | |
| | | <if test="(record.endTime!=null )"> |
| | | and a.datatime <![CDATA[ < ]]> #{record.endTime} |
| | | </if> |
| | | <if test="record.beaultId != null and record.beaultId !='' "> |
| | | and a.beault_id = #{record.beaultId} |
| | | </if> |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and a.company_id = #{record.companyId} |
| | | </if> |
| | | <if test="record.beaultId != null and record.beaultId !='' "> |
| | | and a.beault_id = #{record.beaultId} |
| | | </if> |
| | | <if test="record.vipQueryKey != null and record.vipQueryKey != '' "> |
| | | and c.VIP_NAME like concat('%',#{record.vipQueryKey},'%') |
| | | or (c.VIP_NO like concat('%',#{record.vipQueryKey},'%') |
| | | or c.PHONE like concat('%',#{record.vipQueryKey},'%') |
| | | ) |
| | | </if> |
| | | </if> |
| | | </where> |
| | |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and a.company_id = #{record.companyId} |
| | | </if> |
| | | <if test="record.beaultId != null and record.beaultId !='' "> |
| | | and a.beault_id = #{record.beaultId} |
| | | </if> |
| | | <if test="record.vipQueryKey != null and record.vipQueryKey != '' "> |
| | | and c.VIP_NAME like concat('%',#{record.vipQueryKey},'%') |
| | | or (c.VIP_NO like concat('%',#{record.vipQueryKey},'%') |
| | | or c.PHONE like concat('%',#{record.vipQueryKey},'%') |
| | | ) |
| | | </if> |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | and c.shop_id =#{shopId} |
| | | </if> |
| | | <if test="vipQueryKey != null and vipQueryKey != '' "> |
| | | and e.VIP_NAME like concat('%',#{vipQueryKey},'%') |
| | | or (e.VIP_NO like concat('%',#{vipQueryKey},'%') |
| | | or e.PHONE like concat('%',#{vipQueryKey},'%') |
| | | and c.VIP_NAME like concat('%',#{vipQueryKey},'%') |
| | | or (c.VIP_NO like concat('%',#{vipQueryKey},'%') |
| | | or c.PHONE like concat('%',#{vipQueryKey},'%') |
| | | ) |
| | | </if> |
| | | <if test="goodsName != null and goodsName != '' "> |
| | |
| | | <input name="beginTime" type="text" class="form-control datetimepicker" id="beginTime">- |
| | | <input name="endTime" type="text" class="form-control datetimepicker" id="endTime"> |
| | | </div> |
| | | |
| | | <div class="form-group mr-20"> |
| | | <label>会员</label> |
| | | <input autocomplete="off" placeholder="姓名/编号/电话" name="vipQueryKey" type="text" class="form-control" > |
| | | </div> |
| | | |
| | | <div class="form-group mr-20"> |
| | | <label>美疗师</label> |
| | | <select class="form-control autoFull select2" |
| | | th:data-url="@{/admin/getShopStaffByRoleName?roleName=美疗师}" |
| | | data-value="suId" |
| | | data-filed="suName" |
| | | name="beaultId" |
| | | id="beaultId"> |
| | | <option value="">--请选择美容师--</option> |
| | | </select> |
| | | </div> |
| | | |
| | | <div class="form-group mr-20"> |
| | | <label>门店</label> |
| | | <select class="form-control autoFull" data-filed="shopName" name="shopId" id="shopId" |
| | | th:data-url="@{/admin/shopInfo/findAllWithPermi}"> |
| | | <option value=''>--请选择部所属门店--</option> |
| | | </select> |
| | | </div> |
| | | </form> |
| | | |
| | | |