Merge remote-tracking branch 'origin/master'

highway
zhaoxiaolin 1 year ago
commit 9067f3772c

@ -21,6 +21,7 @@ import org.springframework.stereotype.Service;
import com.op.device.mapper.EquCheckItemMapper; import com.op.device.mapper.EquCheckItemMapper;
import com.op.device.domain.EquCheckItem; import com.op.device.domain.EquCheckItem;
import com.op.device.service.IEquCheckItemService; import com.op.device.service.IEquCheckItemService;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes; import org.springframework.web.context.request.ServletRequestAttributes;
@ -99,6 +100,7 @@ public class EquCheckItemServiceImpl implements IEquCheckItemService {
*/ */
@Override @Override
@DS("#header.poolName") @DS("#header.poolName")
@Transactional
public AjaxResult insertEquCheckItem(EquCheckItemDTO equCheckItemDTO) { public AjaxResult insertEquCheckItem(EquCheckItemDTO equCheckItemDTO) {
// 检验重复 // 检验重复
EquCheckItem checkItem = equCheckItemMapper.selectEquCheckItemByItemName(equCheckItemDTO.getItemName()); EquCheckItem checkItem = equCheckItemMapper.selectEquCheckItemByItemName(equCheckItemDTO.getItemName());
@ -169,6 +171,7 @@ public class EquCheckItemServiceImpl implements IEquCheckItemService {
*/ */
@Override @Override
@DS("#header.poolName") @DS("#header.poolName")
@Transactional
public AjaxResult updateEquCheckItem(EquCheckItemDTO equCheckItemDTO) { public AjaxResult updateEquCheckItem(EquCheckItemDTO equCheckItemDTO) {
EquCheckItem equCheckItem = new EquCheckItem(); EquCheckItem equCheckItem = new EquCheckItem();
BeanUtils.copyProperties(equCheckItemDTO, equCheckItem); BeanUtils.copyProperties(equCheckItemDTO, equCheckItem);

Loading…
Cancel
Save