| | |
| | | |
| | | import java.util.List; |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import com.aps.common.core.utils.uuid.IdUtils; |
| | | import com.aps.common.security.utils.SecurityUtils; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.mapper.ApsPlantMapper; |
| | |
| | | * @date 2025-04-14 |
| | | */ |
| | | @Service |
| | | public class ApsPlantServiceImpl implements IApsPlantService |
| | | public class ApsPlantServiceImpl extends ServiceImpl<ApsPlantMapper, ApsPlant> implements IApsPlantService |
| | | { |
| | | @Autowired |
| | | private ApsPlantMapper apsPlantMapper; |
| | |
| | | * @return 工厂管理 |
| | | */ |
| | | @Override |
| | | public ApsPlant selectApsPlantById(Long id) |
| | | public ApsPlant selectApsPlantById(String id) |
| | | { |
| | | return apsPlantMapper.selectApsPlantById(id); |
| | | } |
| | |
| | | @Override |
| | | public int insertApsPlant(ApsPlant apsPlant) |
| | | { |
| | | apsPlant.setId(IdUtils.fastSimpleUUID()); |
| | | apsPlant.setCreateTime(DateUtils.getNowDate()); |
| | | apsPlant.setCreateBy(SecurityUtils.getUsername()); |
| | | return apsPlantMapper.insertApsPlant(apsPlant); |
| | | } |
| | | |
| | |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteApsPlantByIds(Long[] ids) |
| | | public int deleteApsPlantByIds(String[] ids) |
| | | { |
| | | return apsPlantMapper.deleteApsPlantByIds(ids); |
| | | } |
| | |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteApsPlantById(Long id) |
| | | public int deleteApsPlantById(String id) |
| | | { |
| | | return apsPlantMapper.deleteApsPlantById(id); |
| | | } |