Commit 068e1d7c by 陶光胜

门店保存修改

parent 9c0e5a67
package com.gic.store.utils;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.enterprise.exception.CommonException;
/**
* controller端统一返回工具方法
* @ClassName: CommonResultControllerUtils

* @Description: 

* @author guojuxing

* @date 2019/8/7 10:12 AM

*/
public class CommonResultControllerUtils {
public static Object commonResult(ServiceResponse response) {
if (response.isSuccess()) {
return response.getResult();
} else {
throw new CommonException(response.getCode(), response.getMessage());
}
}
}
package com.gic.store.utils;
import com.gic.enterprise.utils.CreateRandomUtils;
/**
* 创建流水号
* @ClassName: CreateSerialNumberUtils

* @Description: 

* @author guojuxing

* @date 2019/8/9 4:10 PM

*/
public class CreateSerialNumberUtils {
/**
* 创建流水号(2个随机数+时间+4个随机数)
* @Title: createSerialNumber

* @Description:

 * @author guojuxing
* @return java.lang.String


 */
public static String createSerialNumber() {
//2个随机数+时间+4个随机数
return CreateRandomUtils.generateNumberStr(2) + System.currentTimeMillis() + CreateRandomUtils.generateNumberStr(4);
}
public static void main(String[] args) {
System.out.println(createSerialNumber());
}
}
......@@ -19,7 +19,6 @@ import com.gic.enterprise.response.EnterpriseRestResponse;
import com.gic.store.constant.StoreGroupConstant;
import com.gic.store.dto.StoreGroupDTO;
import com.gic.store.service.StoreGroupApiService;
import com.gic.store.utils.CommonResultControllerUtils;
import com.gic.store.utils.storegroup.ChangeListToTree;
import com.gic.store.web.qo.storegroup.StoreGroupQO;
......
Markdown is supported
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