部分工具类实现改用hutool工具包

This commit is contained in:
macro
2019-04-29 20:31:52 +08:00
parent 0e347c3efe
commit ea0b1a0f82
8 changed files with 23 additions and 142 deletions

View File

@@ -1,11 +1,11 @@
package com.macro.mall;
import cn.hutool.json.JSONUtil;
import com.macro.mall.dao.PmsMemberPriceDao;
import com.macro.mall.dao.PmsProductDao;
import com.macro.mall.dto.PmsProductResult;
import com.macro.mall.model.PmsMemberPrice;
import com.macro.mall.util.JsonUtil;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -48,7 +48,7 @@ public class PmsDaoTests {
@Test
public void testGetProductUpdateInfo(){
PmsProductResult productResult = productDao.getUpdateInfo(7L);
String json = JsonUtil.objectToJson(productResult);
String json = JSONUtil.parse(productResult).toString();
LOGGER.info(json);
}
}