| | |
| | | package com.aps.core.service.impl.ApsPlate; |
| | | |
| | | import java.util.List; |
| | | |
| | | import cn.hutool.core.util.IdUtil; |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import com.aps.common.security.utils.SecurityUtils; |
| | | import com.aps.core.domain.ApsPlate.ApsPlateStandardRequire; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.mapper.ApsPlateStandardRequireErrorMapper; |
| | |
| | | { |
| | | return apsPlateStandardRequireErrorMapper.deleteApsPlateStandardRequireErrorById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void saveRequireError(ApsPlateStandardRequire require, String message) { |
| | | ApsPlateStandardRequireError data = ApsPlateStandardRequireError.builder() |
| | | .id(IdUtil.getSnowflakeNextId()) |
| | | .requireId(require.getId()) |
| | | .batchNumber(require.getBatchNumber()) |
| | | .docNum(require.getDocNum()) |
| | | .itemNum(require.getBomLineCode()) |
| | | .orgCode(require.getOrgCode()) |
| | | .message(message) |
| | | .delFlag("0") |
| | | .build(); |
| | | data.setCreateBy(SecurityUtils.getUsername()); |
| | | data.setCreateTime(DateUtils.getNowDate()); |
| | | apsPlateStandardRequireErrorMapper.insertApsPlateStandardRequireError(data); |
| | | } |
| | | } |