Commit 031422eb2ba991eb66e223d669b2d77071309bd2
1 parent
bfae75b518
Exists in
master
and in
6 other branches
二维码获取类型抽取
Showing 1 changed file with 8 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CouponController.java
View file @
031422e
| ... | ... | @@ -6,12 +6,12 @@ |
| 6 | 6 | import com.lyms.platform.common.base.LoginContext; |
| 7 | 7 | import com.lyms.platform.common.result.BaseObjectResponse; |
| 8 | 8 | import com.lyms.platform.common.result.RespBuilder; |
| 9 | +import com.lyms.platform.common.utils.PropertiesUtil; | |
| 9 | 10 | import com.lyms.platform.operate.web.facade.AutoMatchFacade; |
| 10 | 11 | import com.lyms.platform.permission.service.CouponService; |
| 11 | 12 | import org.slf4j.Logger; |
| 12 | 13 | import org.slf4j.LoggerFactory; |
| 13 | 14 | import org.springframework.beans.factory.annotation.Autowired; |
| 14 | -import org.springframework.beans.factory.annotation.Value; | |
| 15 | 15 | import org.springframework.data.mongodb.core.MongoTemplate; |
| 16 | 16 | import org.springframework.stereotype.Controller; |
| 17 | 17 | import org.springframework.web.bind.annotation.PathVariable; |
| 18 | 18 | |
| ... | ... | @@ -36,11 +36,14 @@ |
| 36 | 36 | @Autowired |
| 37 | 37 | AutoMatchFacade autoMatchFacade; |
| 38 | 38 | |
| 39 | - @Value("${or.code.url}") | |
| 40 | - private String url; | |
| 39 | + private static String url; | |
| 40 | + private static String type; | |
| 41 | 41 | |
| 42 | - @Value("${or.code.create.type}") | |
| 43 | - private String type; | |
| 42 | + static { | |
| 43 | + type = PropertiesUtil.getInstance().getDefault("or.code.create.type"); | |
| 44 | + url = PropertiesUtil.getInstance().getDefault("or.code.url"); | |
| 45 | + } | |
| 46 | + | |
| 44 | 47 | |
| 45 | 48 | @Autowired |
| 46 | 49 | private MongoTemplate mongoTemplate; |