Commit b9bdc03e authored by Junling Bu's avatar Junling Bu
Browse files

update: 原名称zmall统一修改litemall。

parent 303ada8c
...@@ -76,12 +76,12 @@ public class OrderController { ...@@ -76,12 +76,12 @@ public class OrderController {
return ResponseUtil.badArgument(); return ResponseUtil.badArgument();
} }
LitemallOrder zmallOrder = orderService.findById(orderId); LitemallOrder litemallOrder = orderService.findById(orderId);
if(zmallOrder == null){ if(litemallOrder == null){
return ResponseUtil.badArgumentValue(); return ResponseUtil.badArgumentValue();
} }
if(OrderUtil.isPayStatus(zmallOrder) || OrderUtil.isShipStatus(zmallOrder)){ if(OrderUtil.isPayStatus(litemallOrder) || OrderUtil.isShipStatus(litemallOrder)){
LitemallOrder newOrder = new LitemallOrder(); LitemallOrder newOrder = new LitemallOrder();
newOrder.setId(orderId); newOrder.setId(orderId);
newOrder.setShipChannel(order.getShipChannel()); newOrder.setShipChannel(order.getShipChannel());
...@@ -95,8 +95,8 @@ public class OrderController { ...@@ -95,8 +95,8 @@ public class OrderController {
return ResponseUtil.badArgumentValue(); return ResponseUtil.badArgumentValue();
} }
zmallOrder = orderService.findById(orderId); litemallOrder = orderService.findById(orderId);
return ResponseUtil.ok(zmallOrder); return ResponseUtil.ok(litemallOrder);
} }
@PostMapping("/delete") @PostMapping("/delete")
......
...@@ -55,7 +55,7 @@ const devWebpackConfig = merge(baseWebpackConfig, { ...@@ -55,7 +55,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
template: 'index.html', template: 'index.html',
inject: true, inject: true,
favicon: resolve('favicon.ico'), favicon: resolve('favicon.ico'),
title: 'zmall-admin', title: 'litemall-admin',
path: config.dev.assetsPublicPath + config.dev.assetsSubDirectory path: config.dev.assetsPublicPath + config.dev.assetsSubDirectory
}), }),
] ]
......
...@@ -5,7 +5,7 @@ import org.springframework.boot.SpringApplication; ...@@ -5,7 +5,7 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication @SpringBootApplication
@MapperScan("org.linlinjava.zmall.db.dao") @MapperScan("org.linlinjava.litemall.db.dao")
public class Application { public class Application {
public static void main(String[] args) { public static void main(String[] args) {
......
...@@ -142,11 +142,11 @@ public class OrderUtil { ...@@ -142,11 +142,11 @@ public class OrderUtil {
} }
public static boolean isPayStatus(LitemallOrder zmallOrder) { public static boolean isPayStatus(LitemallOrder litemallOrder) {
return OrderUtil.STATUS_PAY == zmallOrder.getOrderStatus().shortValue(); return OrderUtil.STATUS_PAY == litemallOrder.getOrderStatus().shortValue();
} }
public static boolean isShipStatus(LitemallOrder zmallOrder) { public static boolean isShipStatus(LitemallOrder litemallOrder) {
return OrderUtil.STATUS_SHIP == zmallOrder.getOrderStatus().shortValue(); return OrderUtil.STATUS_SHIP == litemallOrder.getOrderStatus().shortValue();
} }
} }
...@@ -28,7 +28,7 @@ public class StorageController { ...@@ -28,7 +28,7 @@ public class StorageController {
@Autowired @Autowired
private StorageService storageService; private StorageService storageService;
@Autowired @Autowired
private LitemallStorageService zmallStorageService; private LitemallStorageService litemallStorageService;
@Autowired @Autowired
private ObjectStorageConfig osConfig; private ObjectStorageConfig osConfig;
...@@ -43,7 +43,7 @@ public class StorageController { ...@@ -43,7 +43,7 @@ public class StorageController {
do{ do{
key = CharUtil.getRandomString(20); key = CharUtil.getRandomString(20);
storageInfo = zmallStorageService.findByKey(key); storageInfo = litemallStorageService.findByKey(key);
} }
while(storageInfo != null); while(storageInfo != null);
...@@ -55,8 +55,8 @@ public class StorageController { ...@@ -55,8 +55,8 @@ public class StorageController {
@RequestParam(value = "page", defaultValue = "1") Integer page, @RequestParam(value = "page", defaultValue = "1") Integer page,
@RequestParam(value = "limit", defaultValue = "10") Integer limit, @RequestParam(value = "limit", defaultValue = "10") Integer limit,
String sort, String order){ String sort, String order){
List<LitemallStorage> storageList = zmallStorageService.querySelective(key, name, page, limit, sort, order); List<LitemallStorage> storageList = litemallStorageService.querySelective(key, name, page, limit, sort, order);
int total = zmallStorageService.countSelective(key, name, page, limit, sort, order); int total = litemallStorageService.countSelective(key, name, page, limit, sort, order);
Map<String, Object> data = new HashMap<>(); Map<String, Object> data = new HashMap<>();
data.put("total", total); data.put("total", total);
data.put("items", storageList); data.put("items", storageList);
...@@ -86,7 +86,7 @@ public class StorageController { ...@@ -86,7 +86,7 @@ public class StorageController {
storageInfo.setModified(LocalDateTime.now()); storageInfo.setModified(LocalDateTime.now());
storageInfo.setKey(key); storageInfo.setKey(key);
storageInfo.setUrl(url); storageInfo.setUrl(url);
zmallStorageService.add(storageInfo); litemallStorageService.add(storageInfo);
return ResponseUtil.ok(storageInfo); return ResponseUtil.ok(storageInfo);
} }
...@@ -95,7 +95,7 @@ public class StorageController { ...@@ -95,7 +95,7 @@ public class StorageController {
if(id == null){ if(id == null){
return ResponseUtil.badArgument(); return ResponseUtil.badArgument();
} }
LitemallStorage storageInfo = zmallStorageService.findById(id); LitemallStorage storageInfo = litemallStorageService.findById(id);
if(storageInfo == null){ if(storageInfo == null){
return ResponseUtil.badArgumentValue(); return ResponseUtil.badArgumentValue();
} }
...@@ -105,13 +105,13 @@ public class StorageController { ...@@ -105,13 +105,13 @@ public class StorageController {
@PostMapping("/update") @PostMapping("/update")
public Object update(@RequestBody LitemallStorage litemallStorage) { public Object update(@RequestBody LitemallStorage litemallStorage) {
zmallStorageService.update(litemallStorage); litemallStorageService.update(litemallStorage);
return ResponseUtil.ok(litemallStorage); return ResponseUtil.ok(litemallStorage);
} }
@PostMapping("/delete") @PostMapping("/delete")
public Object delete(@RequestBody LitemallStorage litemallStorage) { public Object delete(@RequestBody LitemallStorage litemallStorage) {
zmallStorageService.deleteByKey(litemallStorage.getKey()); litemallStorageService.deleteByKey(litemallStorage.getKey());
storageService.delete(litemallStorage.getKey()); storageService.delete(litemallStorage.getKey());
return ResponseUtil.ok(); return ResponseUtil.ok();
} }
......
...@@ -67,15 +67,15 @@ public class WxOrderController { ...@@ -67,15 +67,15 @@ public class WxOrderController {
public WxOrderController() { public WxOrderController() {
} }
private String detailedAddress(LitemallAddress zmallAddress) { private String detailedAddress(LitemallAddress litemallAddress) {
Integer provinceId = zmallAddress.getProvinceId(); Integer provinceId = litemallAddress.getProvinceId();
Integer cityId = zmallAddress.getCityId(); Integer cityId = litemallAddress.getCityId();
Integer areaId = zmallAddress.getAreaId(); Integer areaId = litemallAddress.getAreaId();
String provinceName = regionService.findById(provinceId).getName(); String provinceName = regionService.findById(provinceId).getName();
String cityName = regionService.findById(cityId).getName(); String cityName = regionService.findById(cityId).getName();
String areaName = regionService.findById(areaId).getName(); String areaName = regionService.findById(areaId).getName();
String fullRegion = provinceName + " " + cityName + " " + areaName; String fullRegion = provinceName + " " + cityName + " " + areaName;
return fullRegion + " " + zmallAddress.getAddress(); return fullRegion + " " + litemallAddress.getAddress();
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment