| | |
| | | |
| | | 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 org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.mapper.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); |
| | | } |