Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d3f13e7cd8
|
|
@ -15,6 +15,8 @@ import com.bonus.gzgqj.manager.webResult.ServerResponse;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
|
@ -123,6 +125,7 @@ public class PartApplyServiceImpl implements PartApplyService {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public ServerResponse partOutInByIds(PartApplyAppVo data) {
|
||||
try {
|
||||
String id = data.getId();
|
||||
|
|
@ -168,6 +171,7 @@ public class PartApplyServiceImpl implements PartApplyService {
|
|||
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(), e);
|
||||
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
||||
}
|
||||
return ServerResponse.createErroe("出库失败");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue