| | |
| | | package com.ruoyi.basic.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | |
| | | throw new RuntimeException("不良品信息不存在"); |
| | | } |
| | | |
| | | entity.setAuditStatus(auditDto.getAuditStatus()); |
| | | entity.setAuditRemark(auditDto.getAuditRemark()); |
| | | entity.setAuditBy(SecurityUtils.getUsername()); |
| | | entity.setAuditTime(LocalDateTime.now()); |
| | | entity.setUpdateBy(SecurityUtils.getUsername()); |
| | | entity.setUpdateTime(LocalDateTime.now()); |
| | | String username = SecurityUtils.getUsername(); |
| | | LocalDateTime now = LocalDateTime.now(); |
| | | |
| | | entity.setAuditBy(username); |
| | | entity.setAuditRemark(auditDto.getAuditRemark()); |
| | | entity.setAuditStatus(auditDto.getAuditStatus()); |
| | | entity.setAuditTime(now); |
| | | return defectiveProductMapper.updateById(entity); |
| | | } |
| | | |