| | |
| | | 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.QualityMediumDao; |
| | | import com.iailab.module.pms.coalquality.modules.detection.dto.QualityMediumDTO; |
| | | import com.iailab.module.pms.coalquality.modules.detection.entity.QualityMediumEntity; |
| | |
| | | import com.iailab.module.pms.coalquality.modules.detection.vo.MediumPageReqVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | @Service |
| | | public class QualityMediumServiceImpl extends BaseServiceImpl<QualityMediumDao, QualityMediumEntity> |
| | | implements QualityMediumService { |
| | | |
| | | @Autowired |
| | | private SerialNumUtils serialNumUtils; |
| | | |
| | | |
| | | private String BUSINESS_CODE = "QualityMedium"; |
| | | |
| | |
| | | |
| | | @Override |
| | | public void save(QualityMediumDTO dto) { |
| | | dto.setCode(serialNumUtils.getByBusinessDate(BUSINESS_CODE, dto.getRq(), 4)); |
| | | //dto.setCode(serialNumUtils.getByBusinessDate(BUSINESS_CODE, dto.getRq(), 4)); |
| | | QualityMediumEntity entity = ConvertUtils.sourceToTarget(dto, QualityMediumEntity.class); |
| | | entity.setCreateDate(new Date()); |
| | | // entity.setCreator(SecurityUser.getUserId().toString()); |