|
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
|
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
|
|
import com.op.common.core.utils.DateUtils;
|
|
|
|
|
import com.op.common.core.utils.uuid.IdUtils;
|
|
|
|
|
import com.op.common.security.utils.SecurityUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import com.op.quality.mapper.QcSampleRuleCodeMapper;
|
|
|
|
@ -57,6 +58,7 @@ public class QcSampleRuleCodeServiceImpl implements IQcSampleRuleCodeService {
|
|
|
|
|
public int insertQcSampleRuleCode(QcSampleRuleCode qcSampleRuleCode) {
|
|
|
|
|
qcSampleRuleCode.setId(IdUtils.fastSimpleUUID());
|
|
|
|
|
qcSampleRuleCode.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|
qcSampleRuleCode.setCreateBy(SecurityUtils.getUsername());
|
|
|
|
|
return qcSampleRuleCodeMapper.insertQcSampleRuleCode(qcSampleRuleCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -70,6 +72,7 @@ public class QcSampleRuleCodeServiceImpl implements IQcSampleRuleCodeService {
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public int updateQcSampleRuleCode(QcSampleRuleCode qcSampleRuleCode) {
|
|
|
|
|
qcSampleRuleCode.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
|
qcSampleRuleCode.setUpdateBy(SecurityUtils.getUsername());
|
|
|
|
|
return qcSampleRuleCodeMapper.updateQcSampleRuleCode(qcSampleRuleCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|