Merge remote-tracking branch 'origin/test' into test
| | |
| | | </update> |
| | | <select id="pageMcsGame" |
| | | resultType="com.panzhihua.common.model.vos.community.microCommercialStreet.McsGameVO"> |
| | | (SELECT t1.id, t1.`name`, t1.`type`, t1.coupons, t1.surplus_coupons, |
| | | (SELECT t1.id, t1.`name`, t1.`type`, t1.coupons, t1.surplus_coupons, t1.award_type, |
| | | t1.publish_at, t1.expire_at, t1.`status`, t1.merchant_id, t2.`name` AS merchantName, t1.is_popular, t1.cover |
| | | FROM mcs_game t1 |
| | | LEFT JOIN mcs_merchant t2 ON t1.merchant_id = t2.id |
| | |
| | | </if> |
| | | ORDER BY t1.created_at DESC LIMIT 99999) |
| | | UNION ALL |
| | | (SELECT t1.id, t1.`name`, t1.`type`, t1.coupons, t1.surplus_coupons, |
| | | (SELECT t1.id, t1.`name`, t1.`type`, t1.coupons, t1.surplus_coupons, t1.award_type, |
| | | t1.publish_at, t1.expire_at, t1.`status`, t1.merchant_id, t2.`name` AS merchantName, t1.is_popular, t1.cover |
| | | FROM mcs_game t1 |
| | | LEFT JOIN mcs_merchant t2 ON t1.merchant_id = t2.id |
| | |
| | | sftp.login(); |
| | | for (MultipartFile f : file) { |
| | | String fileExtension = FilenameUtils.getExtension(f.getOriginalFilename()); |
| | | String name = UUID.randomUUID().toString().replaceAll("-", "") + fileExtension; |
| | | String name = UUID.randomUUID().toString().replaceAll("-", "") + "." + fileExtension; |
| | | try { |
| | | InputStream is = f.getInputStream(); |
| | | String fileName = |
| | | UUID.randomUUID().toString().replace("-", "") + fileExtension; |
| | | UUID.randomUUID().toString().replace("-", "") + "." + fileExtension; |
| | | File file1 = new File(fileName); |
| | | f.transferTo(file1); |
| | | boolean delete = file1.delete(); |
| | |
| | | boolean mcsBindPhone = uri.contains("/microcommercialstreet/bindPhone"); |
| | | boolean wxNotify = uri.contains("/wxNotify"); |
| | | boolean getConfig = uri.contains("/config/all"); |
| | | boolean isUpload = "/convenient/upload/file".equals(uri); |
| | | boolean isUpload = uri.contains("upload"); |
| | | |
| | | List<String> noLoginUrl = new ArrayList<>(); |
| | | |
| | |
| | | noLoginUrl.add("/api/applets/convenient/merchant/incr-view"); |
| | | noLoginUrl.add("/api/applets/convenient/product/incr-view"); |
| | | noLoginUrl.add("/api/shopbackstage/convenient/upload/file"); |
| | | noLoginUrl.add("/api/shopbackstage/convenient/upload/files"); |
| | | noLoginUrl.add("/api/applets/warehouse/donates/page"); |
| | | noLoginUrl.add("/api/applets/warehouse/donates/get"); |
| | | noLoginUrl.add("/api/applets/property/publicity/page"); |