| | |
| | | mapList.add(map); |
| | | } |
| | | } |
| | | }else { |
| | | mapList = mapList1; |
| | | } |
| | | if (mapList.size() > 0){ |
| | | for (Map<String, Object> stringObjectMap : mapList) { |
| | |
| | | result.add(map); |
| | | } |
| | | } |
| | | }else { |
| | | result=result1; |
| | | } |
| | | if (result.size() > 0){ |
| | | for (Map<String, Object> stringObjectMap : result) { |
| | |
| | | try { |
| | | Integer pointMerchandiseId = (Integer) map.get("pointMerchandiseId"); |
| | | PointsMerchandise byId1 = pmdsService.getById(pointMerchandiseId); |
| | | |
| | | if(Integer.valueOf(map.get("type").toString())!=1){ |
| | | byId1.setStatus(2); |
| | | } |
| | | Integer quantityIssued = (Integer) map.get("quantityIssued"); |
| | | Integer pickUpQuantity = (Integer) map.get("pickUpQuantity"); |
| | | String redemptionInstructions = (String) map.get("redemptionInstructions"); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/base/pointMerchars/add") |
| | | public Integer add(@RequestBody PointsMerchandise pointsMerchandise){ |
| | | Integer storeId = pointsMerchandise.getShelves(); |
| | |
| | | |
| | | |
| | | |
| | | |
| | | @PostMapping("/base/pointMerchars/addOther") |
| | | public Boolean addOther(@RequestBody String pam){ |
| | | Boolean save =false; |
| | |
| | | re.setPhone(appUser.getPhone()); |
| | | re.setStoreName(store.getName()); |
| | | // 在这里添加条件来删除不满足要求的元素 |
| | | if (appUser.getInsertType() != query.getInsertType()) { |
| | | |
| | | if (query.getInsertType() !=null && appUser.getInsertType() != query.getInsertType()) { |
| | | iterator.remove(); // 使用迭代器的 remove 方法删除元素 |
| | | } |
| | | } |
| | |
| | | import com.dsh.course.util.*; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import io.swagger.models.auth.In; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpHeaders; |
| | | import org.springframework.http.MediaType; |
| | |
| | | and t1.payStatus = #{query.payStatus} |
| | | </if> |
| | | <if test="query.ids !=null and query.ids.size >0"> |
| | | and t2.storeId in <foreach collection="query.ids" close=")" item="id" open="(" separator=","> |
| | | and t2.id in <foreach collection="query.ids" close=")" item="id" open="(" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | |
| | | <select id="queryDiscountList" resultType="com.dsh.course.model.DiscountList"> |
| | | select t1.id,t1.type,t1.status,t2.province pName,t2.city cName,t2.name,t2.storeId,t2.id courseId from t_course_package_discount t1 left join t_course_package t2 on t1.coursePackageId = t2.id |
| | | where t2.storeId in <foreach collection="ids" close=")" item="id" open="(" separator=","> |
| | | #{id} and t1.auditStatus =2 |
| | | </foreach> |
| | | #{id} |
| | | </foreach> and t1.auditStatus =2 |
| | | <if test="pCode !=null and pCode !=''"> |
| | | and t2.provinceCode =#{pCode} |
| | | </if> |
| | |
| | | @TableField("cardType") |
| | | private Integer cardType; |
| | | |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | |
| | | model.addAttribute("list",list); |
| | | Integer roleType = UserExt.getUser().getObjectType(); |
| | | model.addAttribute("roleType",roleType); |
| | | if(UserExt.getUser().getObjectType()==3){ |
| | | List<TStore> list1 = storeService.list(new LambdaQueryWrapper<TStore>().eq(TStore::getId, UserExt.getUser().getObjectId())); |
| | | model.addAttribute("stores",list1); |
| | | }else { |
| | | model.addAttribute("stores",new ArrayList<>()); |
| | | } |
| | | return PREFIX + "cpPayment_add.html"; |
| | | } |
| | | /** |
| | |
| | | vo.setCity(cityManager.getCity()); |
| | | vo.setCityCode(cityManager.getCityCode()); |
| | | }else if (roleType == 3){ |
| | | TStoreStaff storeByStoreStaffId = storeStaffClient.getStoreByStoreStaffId(cityManagerId); |
| | | Store storeById = storeClient.getStoreById(storeByStoreStaffId.getStoreId()); |
| | | // TStoreStaff storeByStoreStaffId = storeStaffClient.getStoreByStoreStaffId(cityManagerId); |
| | | Store storeById = storeClient.getStoreById(cityManagerId); |
| | | vo.setProvince(storeById.getProvince()); |
| | | vo.setProvinceCode(storeById.getProvinceCode()); |
| | | vo.setCity(storeById.getCity()); |
| | | vo.setCityCode(storeById.getCityCode()); |
| | | vo.setStoreId(cityManagerId); |
| | | } |
| | | bodySideAppointmentClient.addBodySideAppointments(vo); |
| | | return ResultUtil.success("添加成功"); |
| | |
| | | public String income(Model model) { |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | model.addAttribute("roleType",objectType); |
| | | return PREFIX + "income.html"; |
| | | return PREFIX + "Income.html"; |
| | | } |
| | | /** |
| | | * 获取收入管理列表 |
| | |
| | | if (userIds.size()==0){ |
| | | return new ArrayList<>(); |
| | | } |
| | | List<RegisterOrderVO> registerOrderVOS = coursePackagePaymentClient.listAllRegister(query); |
| | | |
| | | return coursePackagePaymentClient.listAllRegister(query); |
| | | return registerOrderVOS; |
| | | } |
| | | |
| | | |
| | |
| | | stringObjectHashMap.put("cover",cover); |
| | | stringObjectHashMap.put("productImages",productImages); |
| | | stringObjectHashMap.put("sort",sort); |
| | | stringObjectHashMap.put("type",UserExt.getUser().getObjectType()); |
| | | System.out.println(stringObjectHashMap); |
| | | pointMercharsClient.updateGoodsDetail(stringObjectHashMap); |
| | | return new SuccessTip<>(); |
| | |
| | | pointsMerchandise.setState(1); |
| | | pointsMerchandise.setInsertTime(new Date()); |
| | | pointsMerchandise.setCoursePackageConfigId(coursePackageConfigId); |
| | | if(UserExt.getUser().getObjectType()!=1){ |
| | | pointsMerchandise.setStatus(2); |
| | | } |
| | | // 代替storeId |
| | | pointsMerchandise.setShelves(1); |
| | | if(typeAll!=2){ |
| | |
| | | import groovyjarjarpicocli.CommandLine; |
| | | import net.bytebuddy.asm.Advice; |
| | | import org.apache.http.HttpResponse; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.aspectj.weaver.ast.Var; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpRequest; |
| | |
| | | List<TStore> operatorId = storeService.list(new QueryWrapper<TStore>().eq("operatorId", objectId)); |
| | | model.addAttribute("stores",operatorId); |
| | | }else if(objectType == 3){ |
| | | stores= storeClient.getStoreByStoreStaffId(objectId); |
| | | model.addAttribute("stores",stores); |
| | | List<TStore> list = storeService.list(new LambdaQueryWrapper<TStore>().eq(TStore::getId, objectId)); |
| | | model.addAttribute("stores",list); |
| | | }else { |
| | | model.addAttribute("stores",storeService.list(new QueryWrapper<TStore>().eq("operatorId", 0))); |
| | | } |
| | | List<TOperator> list = tOperatorService.list(); |
| | | model.addAttribute("yysList",list); |
| | |
| | | <#button name="开启" icon="fa-refresh" clickFun="TStudent.editCoursePackageState(0)" space="true"/> |
| | | <#button name="关闭" icon="fa-warning" clickFun="TStudent.editCoursePackageState(1)" space="true"/> |
| | | <#button name="查看详情" icon="fa-edit" clickFun="TStudent.openTStudentDetail3()" space="true"/> |
| | | |
| | | @if(role =='1'){ |
| | | <#button name="介绍管理" icon="fa-edit" clickFun="TStudent.openTStudentDetail1()" space="true"/> |
| | | @} |
| | | <#button name="数据统计" icon="fa-edit" clickFun="TStudent.openTStudentDetail5()" space="true"/> |
| | | |
| | | @if(shiro.hasPermission("/tStudent/delete")){ |
| | |
| | | </div> |
| | | </div> |
| | | @} |
| | | @if(roleType !=3){ |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">*所属门店:</label> |
| | | <div class="col-sm-9"> |
| | | <select style="width: 300px" class="form-control" id="store" name="store" onchange="TCompetition.nextStore(this)" > |
| | | <option value="">选择门店</option> |
| | | @for(obj in stores){ |
| | | <option value="${obj.id}">${obj.name}</option> |
| | | @} |
| | | </select> |
| | | </div> |
| | | </div> |
| | | @} |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">*课包类型:</label> |
| | | <div class="col-sm-9"> |
| | |
| | | <div class="ibox float-e-margins"> |
| | | <input hidden id="roleType" value="${roleType}"> |
| | | <div class="ibox-title"> |
| | | <h5>报名订单</h5> |
| | | <h5>收入管理</h5> |
| | | </div> |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | |
| | | <button class="btn btn-outline btn-success" type="file" onclick="UploadFileFn()"><i class="fa fa-upload"></i>上传文件</button> |
| | | </div> |
| | | </div> |
| | | @if(objectType==1){ |
| | | <div class="row" id="app1"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label head-scu-label">*实景图片(请上传不超过五张图片): </label> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | @} |
| | | @if(objectType==1){ |
| | | <#input style="width: 300px" id="ids" name="*添加闸机:" placeholder="请输入闸机ID" type="text"/> |
| | | @} |
| | | @if(objectType==1){ |
| | | <div class="form-group" style=" margin-left: 17%;" > |
| | | <label class="col-sm-1 control-label">场地说明:</label> |
| | | <div class="col-sm-5"> |
| | | <textarea type="text/plain" id="editor" style="height: 300px;width: 800px;"></textarea> |
| | | </div> |
| | | </div> |
| | | @} |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5" > |
| | | <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="TSite.addSubmit()"/> |
| | |
| | | <button class="btn btn-outline btn-success" type="file" onclick="UploadFileFn()"><i class="fa fa-upload"></i>上传文件</button> |
| | | </div> |
| | | </div> |
| | | @if(objectType ==1){ |
| | | <div class="row" id="app1"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label head-scu-label">*实景图片(请上传不超过五张图片): </label> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | @} |
| | | </div> |
| | | @if(objectType==1){ |
| | | <div class="form-group" style="margin-left: 205px;"> |
| | | <label class="col-sm-1 control-label">*添加闸机:</label> |
| | | <div class="col-sm-9"> |
| | | <input class="form-control" id="ids" name="ids" value="${list.ids}" type="text" style="width: 300px" placeholder="请输入闸机ID"> |
| | | </div> |
| | | </div> |
| | | @} |
| | | <div class="form-group" style="margin-left: 13%;display: inline-flex;margin-top: 16px;" > |
| | | <label class="col-sm-2 control-label">场地说明:</label> |
| | | <div class="col-sm-5" style="margin-left: -35px;"> |