| | |
| | | import com.iailab.framework.common.service.impl.BaseServiceImpl; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.framework.common.util.object.ConvertUtils; |
| | | import com.iailab.iems.common.utils.SerialNumUtils; |
| | | import com.iailab.module.pms.coalquality.modules.detection.dao.QualityQuickDao; |
| | | import com.iailab.module.pms.coalquality.modules.detection.dto.QualityQuickDTO; |
| | | import com.iailab.module.pms.coalquality.modules.detection.dto.QualityQuickItemDTO; |
| | |
| | | public class QualityQuickServiceImpl extends BaseServiceImpl<QualityQuickDao, QualityQuickEntity> |
| | | implements QualityQuickService { |
| | | |
| | | @Autowired |
| | | private SerialNumUtils serialNumUtils; |
| | | |
| | | private String BUSINESS_CODE = "QualityQuick"; |
| | | |
| | | @Autowired |
| | |
| | | |
| | | @Override |
| | | public void save(QualityQuickDTO dto) { |
| | | dto.setLsh(serialNumUtils.getByBusinessDate(BUSINESS_CODE, dto.getDatetime(), 4)); |
| | | //dto.setLsh(serialNumUtils.getByBusinessDate(BUSINESS_CODE, dto.getDatetime(), 4)); |
| | | QualityQuickEntity entity = ConvertUtils.sourceToTarget(dto, QualityQuickEntity.class); |
| | | insert(entity); |
| | | dto.getItemList().stream().forEach( |