Browse Source

增加事物提交

master
xyiege 3 years ago
parent
commit
15292fb18d
  1. 4
      src/main/java/cn/chjyj/szwh/service/impl/GoodsServiceImpl.java

4
src/main/java/cn/chjyj/szwh/service/impl/GoodsServiceImpl.java

@ -14,16 +14,15 @@ import cn.chjyj.szwh.service.GoodsService;
import cn.chjyj.szwh.utils.*;
import cn.chjyj.szwh.vo.GoodsDetailVo;
import cn.chjyj.szwh.vo.GoodsListVo;
import cn.chjyj.szwh.vo.OrderDetailVo;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.databind.json.JsonMapper;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.Transactional;
import java.sql.Time;
import java.sql.Timestamp;
@ -34,6 +33,7 @@ import java.time.format.DateTimeFormatter;
import java.util.*;
@Service
@Transactional
public class GoodsServiceImpl implements GoodsService {
private static Log log = LogFactory.getLog(GoodsServiceImpl.class);
@Autowired

Loading…
Cancel
Save