| | |
| | | import com.aps.core.mapper.ApsWeldSeamStatisticsMapper; |
| | | import com.aps.core.mapper.ApsWeldSeamTempMapper; |
| | | import com.aps.core.service.IApsWeldSeamService; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | //通过工单号查询是否存在数据 |
| | | ApsWeldSeam apsWeldSeam1 = apsWeldSeamMapper.selectApsWeldSeamByWorkOrderNo(apsWeldSeam.getWorkOrderNo()); |
| | | //当工单号存在则更新数据否则插入数据 |
| | | if (StringUtils.isNotEmpty(apsWeldSeam1.getId())) { |
| | | if (apsWeldSeam1!=null&&apsWeldSeam1.getId()!=null) { |
| | | apsWeldSeam.setId(apsWeldSeam1.getId()); |
| | | apsWeldSeamMapper.updateApsWeldSeam(apsWeldSeam); |
| | | } else { |